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

avgGroupExpression(
  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 specifying which data slot. Default is "data".

which.assay

Character specifying which assay to use.

which.center

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

which.group

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

which.features

Character specifying which genes to include. All if unspecified.

do.parallel

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

verbose

Logical

Value

data.frame (gene rows, group columns)

Author

Nicholas Mikolajewicz