R/ClusterSet_class.R
subsample_by_ident.Rd
Given ncell, a target number, select ncell from each class of cell/column.
subsample_by_ident(object, ident = NULL, nbcell = TRUE, seed = 123)
a ClusterSet object.
A named vector. Names are cell/column names, values are classes/identity. Typically the result of the Seurat::Ident() function.
The number of cell to select.
A seed for subsampling.
# load a dataset