Compute the mean counts per group of cells for a given assay

AverageCounts(object, assay = NULL, group.by = NULL, verbose = TRUE)

Arguments

object

A Seurat object

assay

Name of assay to use. Default is the active assay

group.by

Grouping variable to use. Default is the active identities

verbose

Display messages

Value

Returns a dataframe

Examples

AverageCounts(atac_small)
#> Computing average counts per group
#>      1      0 
#> 162.80 118.74