
Use MAD outlier detection on per-cell QC metrics
per_cell_qc_outlier.RdUse MAD outlier detection on per-cell QC metrics
Usage
per_cell_qc_outlier(
metric,
threshold = 3,
direction = c("twosided", "below", "above"),
r_standard = TRUE
)Arguments
- metric
Numerical vector. The QC metric to check for.
- threshold
Numeric. How many MADs in either direction to consider for outlier detection.
- direction
String. One of
c("twosided", "below", "above"). Which directionality to consider- r_standard
Boolean. If
TRUE, the MAD is scaled by 1.4826 likestats::mad(), sothresholdcounts standard deviations under normality. Set toFALSEto use the raw MAD (the previous behaviour).