Calculate percent of expressing cells — Percent_Expressing (original) (raw)
Calculates the percent of cells that express a given set of features by various grouping factors
Percent_Expressing(
seurat_object,
features,
threshold = 0,
group_by = NULL,
split_by = NULL,
entire_object = FALSE,
layer = "data",
assay = NULL
)
Arguments
seurat_object
Seurat object name.
features
Feature(s) to plot.
threshold
Expression threshold to use for calculation of percent expressing (default is 0).
group_by
Factor to group the cells by.
split_by
Factor to split the groups by.
entire_object
logical (default = FALSE). Whether to calculate percent of expressing cells across the entire object as opposed to by cluster or by group_by
variable.
layer
Which layer to pull expression data from? Default is "data".
assay
Assay to pull feature data from. Default is active assay.
Examples
if (FALSE) {
percent_stats <- Percent_Expressing(seurat_object = object, features = "Cx3cr1", threshold = 0)
}