R/Statistics.R
Cells_per_Sample.Rd
Get data.frame containing the number of cells per sample.
Cells_per_Sample(seurat_object, sample_col = NULL)
Seurat object
column name in meta.data that contains sample ID information. Default is NULL and will use "orig.ident column
A data.frame
library(Seurat) num_cells <- Cells_per_Sample(seurat_object = pbmc_small, sample_col = "orig.ident")