SeuratWrappers provides two functions for miQC-based quality control:Documentation Index
Fetch the complete documentation index at: https://mintlify.com/satijalab/seurat-wrappers/llms.txt
Use this file to discover all available pages before exploring further.
RunMiQC()— Fits a mixture model and marks cells as compromisedPlotMiQC()— Visualizes the fitted model and posterior probabilities
RunMiQC()
Syntax
Parameters
A Seurat object with mitochondrial percentage and feature count metadata.
Name of the metadata column containing percent mitochondrial reads.
Name of the metadata column containing the number of detected features.
Cells with posterior probability of being compromised above this threshold are marked for removal.
Type of regression model for the mixture components. One of
"linear", "spline", or "polynomial".Name of the
Misc slot in which the fitted flexmix model is stored.Print progress messages.
Fallback strategy when the mixture model cannot be fitted. One of:
"percentile"— filter bybackup.percentile"percent"— filter bybackup.percenthard cutoff"pass"— return the object without filtering"halt"— raise an error
Percentile cutoff for the
"percentile" backup option.Hard percent mitochondrial cutoff for the
"percent" backup option.Returns
A Seurat object with two new metadata columns:miQC.probability— posterior probability of each cell being compromisedmiQC.keep—"keep"or"discard"decision per cell
Misc(object, model.slot).
PlotMiQC()
Syntax
Parameters
A Seurat object that has already been processed with
RunMiQC().Metadata column name for mitochondrial percentage.
Metadata column name for number of features.
Name of the Misc slot containing the fitted flexmix model.
Metadata column to use for coloring points in the plot.