single-cell-rna-qc

Automate single-cell RNA-seq quality control with MAD outlier detection and filtering.

2|1|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/GACLove/feishu-aily-skills --skill single-cell-rna-qc-gaclove
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: single-cell-rna-qc
Source: https://github.com/GACLove/feishu-aily-skills/tree/main/skills/single-cell-rna-qc
Command: npx skills add https://github.com/GACLove/feishu-aily-skills --skill single-cell-rna-qc-gaclove

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Efficiently surfaces QC metrics and filters low-quality cells in single-cell RNA-seq data, enabling robust downstream analysis.

Core Features & Use Cases

  • MAD-based quality control for detecting outliers in total counts, gene counts, and mitochondrial content to preserve high-quality cells.
  • End-to-end workflow: calculates QC metrics, filters cells and genes, and provides QC visualizations for before/after filtering.
  • Use Case: A researcher processes a batch of scRNA-seq samples stored as .h5ad and quickly obtains a clean AnnData object ready for normalization and downstream analyses.

Quick Start

Load your AnnData file (h5ad) and run qc_analysis.py to generate QC metrics and plots.

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 quality control on scRNA-seq data to filter low-quality cells?

Perform scRNA-seq quality control by calculating QC metrics on an AnnData object and applying MAD-based outlier detection to filter low-quality cells based on total counts, gene counts, and mitochondrial content.

What is MAD-based outlier detection for single-cell RNA-seq data?

MAD-based outlier detection for single-cell RNA-seq data identifies low-quality cells by flagging deviations in total counts, gene counts, and mitochondrial content using median absolute deviation, preserving high-quality cells for downstream analysis.

How do I generate QC visualizations before and after filtering in scanpy?

Generate QC visualizations before and after filtering in scanpy by running an end-to-end qc workflow that calculates metrics, applies cell and gene filters, and uses matplotlib to plot the before-and-after filtering results.

Can I use this scRNA-seq QC workflow with .h5 file inputs?

Yes, you can use this scRNA-seq QC workflow with .h5 file inputs, as it fully supports loading and processing both standard .h5ad and .h5 file formats to generate a clean AnnData object.

Does this single-cell quality control approach follow scverse best practices?

Yes, this single-cell quality control approach follows scverse best practices, automating standard preprocessing QC, MAD-based outlier detection, and hard MT% thresholds using scanpy and anndata dependencies.

Why apply hard MT% thresholds when filtering scRNA-seq cells?

Apply hard MT% thresholds when filtering scRNA-seq cells to enforce strict limits on mitochondrial gene expression, complementing MAD-based outlier detection to effectively remove dead or dying cells from the dataset.