Description Usage Arguments Details Value
Perform k=means clustering on both genes and single cells
1 2 3 4 |
object |
Seurat object |
genes.use |
Genes to use for clustering |
k.genes |
K value to use for clustering genes |
k.cells |
K value to use for clustering cells (default is NULL, cells are not clustered) |
k.seed |
Random seed |
do.plot |
Draw heatmap of clustered genes/cells (default is FALSE). |
data.cut |
Clip all z-scores to have an absolute value below this. Reduces the effect of huge outliers in the data. |
k.cols |
Color palette for heatmap |
set.ident |
If clustering cells (so k.cells>0), set the cell identity class to its K-means cluster (default is TRUE) |
do.constrained |
FALSE by default. If TRUE, use the constrained K-means function implemented in the tclust package. |
assay.type |
Type of data to normalize for (default is RNA), but can be changed for multimodal analyses. |
... |
Additional parameters passed to kmeans (or tkmeans) |
K-means and heatmap are calculated on object@scale.data
Seurat object where the k-means results for genes is stored in object@kmeans.obj[[1]], and the k-means results for cells is stored in object@kmeans.col[[1]]. The cluster for each cell is stored in object@meta.data[,"kmeans.ident"] and also object@ident (if set.ident=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.