This function compares two community detection algorithms.
Is the parallelized and faster version of robinCompare
robinCompareFast(
graph,
method1 = c("walktrap", "edgeBetweenness", "fastGreedy", "leadingEigen", "louvain",
"spinglass", "labelProp", "infomap", "optimal", "leiden", "other"),
args1 = list(),
method2 = c("walktrap", "edgeBetweenness", "fastGreedy", "leadingEigen", "louvain",
"spinglass", "labelProp", "infomap", "optimal", "leiden", "other"),
args2 = list(),
measure = c("vi", "nmi", "split.join", "adjusted.rand"),
FUN1 = NULL,
FUN2 = NULL,
verbose = TRUE,
BPPARAM = BiocParallel::bpparam()
)
A list object with two matrices: - the matrix "Mean1" with the means of the procedure for the first method - the matrix "Mean2" with the means of the procedure for the second method
The output of prepGraph.
The first clustering method, one of "walktrap", "edgeBetweenness", "fastGreedy", "louvain", "spinglass", "leadingEigen", "labelProp", "infomap","optimal".
A list
of arguments to be passed to the method1
(see i.e. cluster_leiden for a list of possible method parameters).
The second custering method one of "walktrap", "edgeBetweenness","fastGreedy", "louvain", "spinglass", "leadingEigen", "labelProp", "infomap","optimal".
A list
of arguments to be passed to the method2
(see i.e. cluster_leiden for a list of possible method parameters).
The stability measure, one of "vi", "nmi", "split.join", "adjusted.rand" all normalized and used as distances. "nmi" refers to 1- nmi and "adjusted.ran" refers to 1-adjusted.rand.
personal designed function when method1
is "others".
see methodCommunity
.
personal designed function when method2
is "others".
see methodCommunity
.
flag for verbose output (default as TRUE).
the BiocParallel object of class bpparamClass
that
specifies the back-end to be used for computations. See
bpparam
for details.