Cell counts per cluster

cellCountsPerCluster(object, ...)

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

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

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

Arguments

object

Object.

interestingGroups

character. Groups of interest to use for visualization. Corresponds to factors describing the columns of the object.

...

Additional arguments.

Value

tbl_df. Grouped by ident column and arranged by n.

Note

Updated 2019-07-31.

Examples

data( Seurat, cell_data_set, package = "acidtest" ) ## Seurat ==== object <- Seurat x <- cellCountsPerCluster(object) 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
## cell_data_set === object <- cell_data_set x <- cellCountsPerCluster(object) print(x)
#> # A tibble: 4 x 5 #> # Groups: ident [4] #> ident sampleName interestingGroups n ratio #> <fct> <fct> <fct> <int> <dbl> #> 1 1 unknown unknown 81 1 #> 2 2 unknown unknown 57 1 #> 3 3 unknown unknown 35 1 #> 4 4 unknown unknown 27 1