clusterCenters: clusterCenters

Description Usage Arguments Value Author(s) Examples

View source: R/utils_plotting.R

Description

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.

Usage

1
clusterCenters(seurat, reduction, dim1, dim2)

Arguments

seurat

Seurat object, where dimensionality reduction has been applied, i.e. (after applying Seurat::RunTSNE() to the object).

Value

Data frame with three columns: Cluster, mean_tSNE_1, and mean_tSNE_2

Author(s)

Selin Jessa

Examples

1
clusterCenters(pbmc, reduction = "pca", dim1 = 1, dim2 = 3)

fungenomics/cytobox documentation built on Feb. 13, 2020, 10:51 a.m.