clustcells | R Documentation |
R implementation of the PhenoGraph algorithm
clustcells( data, from.embedded = F, k = 15, dist.method = "manhattan", nt = 2, community.algo = "louvian", store.graph = T, seed = 180582, verbose = TRUE, resolution = 0.8, n.start = 10, n.iter = 10 )
data |
list; Input data (gficf object) |
from.embedded |
logical; Use embeddedd (UMAP or tSNA) space for clustering cells. Best results are usually obtained not using the embedded space. |
k |
integer; number of nearest neighbours (default:15) |
dist.method |
character; Dist to use for K-nn. Type of distance metric to use to find nearest neighbors. One of:
|
nt |
integer; Number of cpus to use for k-nn search |
community.algo |
characthers; Community algorithm to use for clustering. Supported are:
|
store.graph |
logical; Store produced phenograph in the gficf object |
seed |
integer; Seed to use for replication. |
verbose |
logical; Increase verbosity. |
resolution |
Value of the resolution parameter, use a value above (below) 1.0 if you want to obtain a larger (smaller) number of communities (used only for leiden and louvian 2 or 3 methods). |
n.start |
Number of random starts (used only for louvian 2 or 3 methods). |
n.iter |
Maximal number of iterations per random start (used only for louvian 2 or 3 methods). |
A custom R implementation of the PhenoGraph (http://www.cell.com/cell/abstract/S0092-8674(15)00637-6) algorithm, which is a clustering method designed for high-dimensional single-cell data analysis. It works by creating a graph ("network") representing phenotypic similarities between cells by calclating the Jaccard coefficient between nearest-neighbor sets, and then identifying communities using the well known Louvain method (https://sites.google.com/site/findcommunities/) in this graph.
That version used PCA or LSA reduced meta-cells and multithreading annoy version for K-nn search (from uwot package).
the updated gficf object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.