Description Usage Arguments Value Examples
Group cells into clusters based on graph-based community detection on approximate nearest neighbors
| 1 2 | getComMembership(mat, k, method = igraph::cluster_walktrap, verbose = TRUE,
  details = FALSE)
 | 
| mat | Matrix of cells as columns. Features as rows (such as PCs). | 
| k | K-nearest neighbor parameter. | 
| method | Community detection method from igraph. (default: igraph::cluster_walktrap) | 
| verbose | Verbosity (default: TRUE) | 
| details | Whether to return just community annotation or entended details including graph and graph modularity | 
Vector of community annotations
| 1 2 3 4 5 6 7 8 | {
data(pbmcA)
cd <- pbmcA[, 1:500]
mat <- cleanCounts(cd)
mat <- normalizeVariance(mat)
pcs <- getPcs(mat)
com <- getComMembership(pcs, k=30)
}
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.