single-cell-rna-qc

Filter low-quality cells in single-cell RNA-seq data using MAD-based thresholds.

1|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/ilove323/comlan-skills --skill single-cell-rna-qc-ilove323
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: single-cell-rna-qc
Source: https://github.com/ilove323/comlan-skills/tree/main/bio-research/skills/single-cell-rna-qc
Command: npx skills add https://github.com/ilove323/comlan-skills --skill single-cell-rna-qc-ilove323

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires anndata, scanpy, numpy, scipy, matplotlib, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill automates quality control for single-cell RNA-seq data following scverse best practices, performing MAD-based filtering and producing QC visualizations and annotated datasets.

Core Features & Use Cases

  • QC metric computation: calculates total counts, detected genes, and mitochondrial/ribosomal content with standardized metrics.
  • MAD-based filtering workflow: identifies outliers and applies hard MT thresholds to deliver clean data ready for downstream analysis.
  • Outputs for downstream analysis: generates filtered .h5ad data and QC plots, plus annotated data retained with QC metadata.

Quick Start

Run python3 scripts/qc_analysis.py data.h5ad to perform end-to-end QC and produce filtered datasets and visualizations.

Frequently Asked Questions about single-cell-rna-qc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform MAD-based quality control on single-cell RNA-seq data?

MAD-based quality control for single-cell RNA-seq data identifies and filters low-quality cells by applying Median Absolute Deviation thresholds to total counts, detected genes, and mitochondrial content, producing clean QC-annotated datasets.

What is MAD filtering for low-quality cells in scRNA-seq?

MAD filtering for scRNA-seq identifies outlier cells based on deviations from the median across QC metrics like total counts and mitochondrial content, removing technical artifacts while retaining biologically viable cells for downstream analysis.

Can I use scanpy and anndata to automate single-cell RNA-seq quality control?

Yes, this Skill uses scanpy and anndata to automate single-cell RNA-seq quality control, calculating standardized metrics and generating filtered .h5ad outputs and QC visualizations without requiring manual threshold tuning.

Does this single-cell QC workflow handle per-sample variations in AnnData objects?

Yes, the single-cell QC workflow handles per-sample variations by applying MAD-based thresholds independently, ensuring accurate outlier detection across heterogeneous samples within a single AnnData object.

What visualizations are generated for single-cell RNA-seq quality control?

Single-cell RNA-seq quality control generates standard QC plots visualizing total counts, detected genes, and mitochondrial content distributions, helping verify filtering thresholds and assess dataset quality before downstream analysis.

What is the best way to filter cells by mitochondrial content in scRNA-seq?

Filtering cells by mitochondrial content in scRNA-seq is best handled by applying MAD-based thresholds alongside hard cutoffs, automatically identifying high-mitochondria cells indicative of cell damage while preserving healthy populations.