Description Usage Arguments Details Examples
View source: R/cluster_cells.R
This will perform clustering on your single cell data.
1 2 3 4 5 6 7 8 9 10 11 |
input |
the input ex_sc |
lem |
the LEM within ReducedDims() |
dims |
either "2d" or "Comp" |
method |
can either be "spectral" or "density" which is on 2d |
embedding |
if method is 2D, an embedding must be provided |
num_clust |
the number of clusters. Required for spectral but optional for density. |
name |
name of the colData cluster column |
s |
the number of standard deviations from the curve to select cluster centers |
This will perform clustering on either the high dimensional PCA / ICA components if dimension = Comp, or the 2d tsne result if method = density. Typically spectral clustering works much better on higher dimensional data, which density based clustering works better on 2d data.
1 | ex_sc_example <- cluster_sc(input = ex_sc_example, dimension = "Comp", method = "spectral", num_clust = 6)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.