single-cell-rna-qc

Filter low-quality cells from single-cell RNA-seq data using MAD-based outlier detection.

Updated Apr 8, 2026
One-click install
npx skills add https://github.com/sun2443/designer-skills --skill single-cell-rna-qc-sun2443
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: single-cell-rna-qc
Source: https://github.com/sun2443/designer-skills/tree/main/bio-research/skills/single-cell-rna-qc
Command: npx skills add https://github.com/sun2443/designer-skills --skill single-cell-rna-qc-sun2443

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Single-cell RNA-seq datasets often contain low-quality cells and noisy genes that can derail downstream analyses. This Skill automates robust QC and filtering so you can retain high-quality cells while minimizing arbitrary thresholds.

Core Features & Use Cases

  • MAD-based cell QC: Uses Median Absolute Deviation (MAD) outlier detection for total counts, detected genes, and mitochondrial percentage, optionally combined with a hard mitochondrial cutoff.
  • scverse/scanpy-aligned metrics & visuals: Generates comprehensive before/after plots and metric summaries following scverse best practices.
  • AnnData-ready outputs: Produces filtered .h5ad datasets plus QC-annotated .h5ad files for traceability and review.
  • Use cases: When preparing data for normalization, clustering, and cell type annotation; when you need to remove stressed/low-quality cells; and when you want scverse/scanpy-style QC diagnostics.

Quick Start

Tell the AI: "Run single-cell RNA-seq QC on my file dataset.h5ad and use the default scverse/scanpy pipeline, saving the results to a QC results folder."

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 single-cell RNA-seq QC and filter low-quality cells in an AnnData h5ad file?

To perform single-cell RNA-seq QC on an AnnData h5ad file, this Skill uses MAD-based outlier detection and scverse best practices to compute metrics like total counts, detected genes, and mitochondrial percentage, then exports a filtered dataset.

How does MAD filtering work for removing low-quality cells in scanpy workflows?

MAD filtering for single-cell RNA-seq data identifies outliers based on the Median Absolute Deviation of total counts, detected genes, and mitochondrial percentage, removing low-quality cells without relying on arbitrary hard thresholds.

Can I use this single-cell RNA-seq QC pipeline on 10X Cell Ranger h5 output files?

Yes, this single-cell RNA-seq QC pipeline accepts 10X Cell Ranger h5 output files alongside standard AnnData h5ad formats, automatically computing QC metrics and generating threshold visualizations for both.

What is the best way to visualize mitochondrial percentage thresholds during scRNA-seq quality control?

The best way to visualize mitochondrial percentage thresholds during scRNA-seq quality control is by generating before-and-after plots with threshold overlays, which this Skill produces by following scverse and scanpy visualization best practices.

Do I need to manually set hard cutoffs for mitochondrial percentage when filtering scRNA-seq data?

You do not need to manually set hard cutoffs for mitochondrial percentage when filtering scRNA-seq data, as this Skill primarily uses MAD-based outlier detection, though it optionally supports combining MAD filtering with a hard mitochondrial cutoff.

What QC metrics are computed when running scverse best practices on single-cell RNA-seq data?

When running scverse best practices on single-cell RNA-seq data, this Skill computes QC metrics including total counts, detected genes, and MT%, ribosomal, and hemoglobin pattern percentages to identify and remove low-quality cells.