Cell counts per cluster

cellCountsPerCluster(object, ...)

# S4 method for SingleCellExperiment
cellCountsPerCluster(object,
  interestingGroups = NULL)

# S4 method for Seurat
cellCountsPerCluster(object, interestingGroups = NULL)

Arguments

object

Object.

interestingGroups

character. Groups of interest that define the samples. If left unset, defaults to sampleName.

...

Additional arguments.

Value

tbl_df. Grouped by ident column and arranged by n.

Examples

data(seurat) x <- cellCountsPerCluster(seurat) print(x)
#> # A tibble: 3 x 5 #> # Groups: ident [3] #> ident sampleName interestingGroups n ratio #> <fct> <fct> <fct> <int> <dbl> #> 1 0 unknown unknown 36 1 #> 2 1 unknown unknown 25 1 #> 3 2 unknown unknown 19 1