auto_subset | R Documentation |
Use median and standard deviation to subset a Seurat object based on specific features
auto_subset(
sobject,
sd_down = 1,
sd_up = 2,
make_plots = TRUE,
features = c("nCount_RNA", "nFeature_RNA"),
sample_name = NULL
)
sobject |
Seurat object |
sd_down |
Number of standard deviations below the median to subset |
sd_up |
Number of standard deviations above the median to subset |
make_plots |
Whether to make plots of the features before and after subsetting |
features |
Vector of features to use for subsetting |
sample_name |
Name of sample to use in plot titles |
A Seurat object
## Not run:
filtered <- auto_subset(SeuratObject::pbmc_small)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.