View source: R/find_communities.R
find_communities | R Documentation |
Build a KNN graph and run Louvain algorithm for community detection.
find_communities( pca_o, nb_pcs = 10, k = 100, gamma = 1, nreps = 1, nb_cores = 1 )
pca_o |
the output of |
nb_pcs |
the number of PCs to use. Default 10. |
k |
the number of nearest neighbor for the KNN graph. Default 100. |
gamma |
a vector of gamma. Default 1. |
nreps |
the number of repetition for each gamma, Default 1. |
nb_cores |
the number of processors to use. Default is 1. |
a list with:
comm |
a data.frame with two columns: 'cell' and 'community'. |
comm.all |
a matrix with communities for each gamma |
gamma |
the list of input gamma corresponding to each comm.all column. |
best.gamma |
the gamma resulting on the highest ARI mean |
ari.df |
data.frame with ARI stats for each gamma |
Jean Monlong
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.