MAD_Stats {scCustomize} | R Documentation |
Median Absolute Deviation Statistics
Description
Get quick values for X x median absolute deviation for Genes, UMIs, %mito per cell grouped by meta.data variable.
Usage
MAD_Stats(
seurat_object,
group_by_var = "orig.ident",
default_var = TRUE,
mad_var = NULL,
mad_num = 2
)
Arguments
seurat_object |
Seurat object name. |
group_by_var |
Column in meta.data slot to group results by (default = "orig.ident"). |
default_var |
logical. Whether to include the default meta.data variables of: "nCount_RNA",
"nFeature_RNA", "percent_mito", "percent_ribo", "percent_mito_ribo", and "log10GenesPerUMI"
in addition to variables supplied to |
mad_var |
Column(s) in |
mad_num |
integer value to multiply the MAD in returned data.frame (default is 2). Often helpful when calculating a outlier range to base of of median + (X*MAD). |
Value
A data.frame.
Examples
## Not run:
mad_stats <- MAD_Stats(seurat_object = obj, group_by_var = "orig.ident")
## End(Not run)
[Package scCustomize version 2.1.2 Index]