R/filter_gex_outliers.R
filter_pct_mito.Rd
Wrapper around scater::isOutlier, arguments type and nmads refer to the same thing. For mitochondrial reads, uses non-log transformed values for deciding cutoffs.
filter_pct_mito(sce, nmads, type, column = "pct_mito")
sce | SingleCellExperiment object |
---|---|
nmads | number of median absolute deviations from the median |
type | either "both", "lower", or "higher", referring to which side to filter on |
column | column in colData containing percentage of mitochondrial reads |
Boolean filter with TRUE for cells and FALSE for outliers. Contains attribute with number of median absolute deviations specified.
Ensure that add_pct_gene
has been run before this or that a column named pct_mito is present in colData(sce)
NULL#> NULL