A function to perform igraph clustering
igraphClustering( sce, metadata = "SNF_W", method = c("louvain", "walktrap", "spinglass", "optimal", "leading_eigen", "label_prop", "fast_greedy", "edge_betweenness"), ... )
sce | A singlecellexperiment object |
---|---|
metadata | indicates the meta data name of affinity matrix to virsualise |
method | A character indicates the method for finding communities from igraph. Default is louvain clustering. |
... | Other inputs for the igraph functions |
A vector indicates the membership (clustering) results
#> Calculating affinity matrix #> Performing SNFSNF_W_louvain <- igraphClustering(sce_control_subset, method = "louvain")