AvgExpression: Calculate Avg Expression

View source: R/SeuratUtils.R

AvgExpressionR Documentation

Calculate Avg Expression

Description

This is a wrapper around Seurat::AverageExpression, which computes the AverageExpression per group (all assays), then flattens this to a single data frame. It also saves library size and total cells per group.

Usage

AvgExpression(seuratObj, groupField, layer = "counts")

Arguments

seuratObj

The seurat object

groupField

The field on which to group. Must be present in seuratObj@meta.data

layer

The layer on which to calculate average expression


bimberlabinternal/CellMembrane documentation built on Nov. 15, 2024, 9:34 p.m.