Get summary group expression in Seurat object. Can include mean, median, fraction (of expressing cells), sd, or cv. Calls scMiko::avgGroupExpression().

aggGroupExpression(
  so,
  which.data = "data",
  which.assay = DefaultAssay(so),
  which.center = "mean",
  which.group = "seurat_clusters",
  which.features = NULL,
  do.parallel = F,
  verbose = T
)

Arguments

so

Seurat Object

which.data

Character specfying which data slot. Default is "data".

which.assay

Character specigin which assay to use.

which.center

Character indicating which summary measure to use. Must be one of "mean", "median", "fraction", "sum", "sd", or "cv". If unspecified, default is "mean".

which.group

Character specfying group field in Seurat metadata. Default is "seurat_clusters".

do.parallel

Logical specifying whether to perform computations in parallel. Default is F. Uses future.apply package.

Value

data.frame (gene rows, group columns)

Author

Nicholas Mikolajewicz