Description Usage Arguments Value Author(s) Examples
View source: R/utils_plotting.R
Get centers of clusters given a Seurat object, to use for labelling in tSNE space. The cluster center is defined as the median X and Y coordinate across cells in each cluster.
1 | clusterCenters(seurat, reduction, dim1, dim2)
|
seurat |
Seurat object, where dimensionality reduction has been applied, i.e. (after applying Seurat::RunTSNE() to the object). |
Data frame with three columns: Cluster, mean_tSNE_1, and mean_tSNE_2
Selin Jessa
1 | clusterCenters(pbmc, reduction = "pca", dim1 = 1, dim2 = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.