Normalize the count data present in a given assay.
Returns a representative expression value for each identity class
PseudobulkExpression(object, ...)
# S3 method for Assay
PseudobulkExpression(
object,
assay,
category.matrix,
features = NULL,
layer = "data",
slot = deprecated(),
verbose = TRUE,
...
)
# S3 method for StdAssay
PseudobulkExpression(
object,
assay,
category.matrix,
features = NULL,
layer = "data",
slot = deprecated(),
verbose = TRUE,
...
)
# S3 method for Seurat
PseudobulkExpression(
object,
assays = NULL,
features = NULL,
return.seurat = FALSE,
group.by = "ident",
add.ident = NULL,
layer = "data",
slot = deprecated(),
method = "average",
normalization.method = "LogNormalize",
scale.factor = 10000,
margin = 1,
verbose = TRUE,
...
)
Seurat object
Arguments to be passed to methods such as CreateSeuratObject
The name of the passed assay - used primarily for warning/error messages
A matrix defining groupings for pseudobulk expression calculations; each column represents an identity class, and each row a sample
Features to analyze. Default is all features in the assay
Layer(s) to use; if multiple are given, assumed to follow the order of 'assays' (if specified) or object's assays
(Deprecated) See layer
Print messages and show progress bar
Which assays to use. Default is all assays
Whether to return the data as a Seurat object. Default is FALSE
Categories for grouping (e.g, "ident", "replicate", "celltype"); "ident" by default
(Deprecated) See group.by
The method used for calculating pseudobulk expression; one of: "average" or "aggregate"
Method for normalization, see NormalizeData
Scale factor for normalization, see NormalizeData
Margin to perform CLR normalization, see NormalizeData
Returns object after normalization
Returns a matrix with genes as rows, identity classes as columns.
If return.seurat is TRUE, returns an object of class Seurat
.