-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmpathSim.Rd
82 lines (71 loc) · 3.12 KB
/
mpathSim.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mpathSim.R
\name{mpathSim}
\alias{mpathSim}
\alias{mpathSim,character,GeneSetCollection,ANY-method}
\alias{mpathSim,missing,GeneSetCollection,ANY-method}
\alias{mpathSim,missing,list,ANY-method}
\alias{mpathSim,missing,list,missing-method}
\title{Calculates the Dice similarity between pathways}
\usage{
mpathSim(pathways, info, method = NULL, ...)
\S4method{mpathSim}{character,GeneSetCollection,ANY}(pathways, info, method = NULL, ...)
\S4method{mpathSim}{missing,GeneSetCollection,ANY}(pathways, info, method = NULL, ...)
\S4method{mpathSim}{missing,list,ANY}(pathways, info, method = NULL, ...)
\S4method{mpathSim}{missing,list,missing}(pathways, info, method = NULL, ...)
}
\arguments{
\item{pathways}{Pathways to calculate the similarity for}
\item{info}{A list of genes and the pathways they are involved or a
GeneSetCollection object}
\item{method}{To combine the scores of each pathway, one of \code{c("avg", "max", "rcmax", "rcmax.avg", "BMA")}, if NULL returns the matrix of
similarities.}
\item{...}{Other arguments passed to \code{\link[=combineScoresPar]{combineScoresPar()}}}
}
\value{
The similarity between those pathways or all the similarities
between each comparison.
}
\description{
Calculates the similarity between several pathways using dice similarity score.
If one needs the matrix of similarities between pathways set the argument
methods to \code{NULL}.
}
\section{Methods (by class)}{
\itemize{
\item \code{mpathSim(pathways = character, info = GeneSetCollection, method = ANY)}: Calculates the similarity between the provided pathways
of the GeneSetCollection using \code{combineScoresPar}
\item \code{mpathSim(pathways = missing, info = GeneSetCollection, method = ANY)}: Calculates all the similarities of the
GeneSetCollection and combine them using \code{combineScoresPar}
\item \code{mpathSim(pathways = missing, info = list, method = ANY)}: Calculates all the similarities of the list and
combine them using \code{combineScoresPar}
\item \code{mpathSim(pathways = missing, info = list, method = missing)}: Calculates all the similarities of the list
}}
\note{
\code{pathways} accept named characters, and then the output will have
the names
}
\examples{
if (require("reactome.db")) {
genes.react <- as.list(reactomeEXTID2PATHID)
(pathways <- sample(unique(unlist(genes.react)), 10))
mpathSim(pathways, genes.react, NULL)
named_paths <- structure(
c("R-HSA-112310", "R-HSA-112316", "R-HSA-112315"),
.Names = c(
"Neurotransmitter Release Cycle",
"Neuronal System",
"Transmission across Chemical Synapses"
)
)
mpathSim(named_paths, genes.react, NULL)
many_pathways <- sample(unique(unlist(genes.react)), 152)
mpathSim(many_pathways, genes.react, "avg")
} else {
warning("You need reactome.db package for this example")
}
}
\seealso{
\code{\link[=pathSim]{pathSim()}} For single pairwise comparison.
\code{\link[=conversions]{conversions()}} To convert the Dice similarity to Jaccard similarity
}