Run single-cell RNA-seq QC, filter poor-quality cells, and generate visualizations.
Copy the install command and let the AI configure it · recommended for beginners
Please install the "single-cell-rna-qc" skill from askskill: 1. Download https://raw.githubusercontent.com/anthropics/knowledge-work-plugins/main/bio-research/skills/single-cell-rna-qc/SKILL.md 2. Save it as ~/.claude/skills/single-cell-rna-qc/SKILL.md 3. Reload skills and tell me it's ready
Please perform quality control on this .h5ad single-cell RNA-seq dataset using scverse/scanpy best practices, apply MAD-based filtering, identify low-quality cells, and provide key QC plots and filtering recommendations.
A summary of QC metrics, filtered low-quality cells, and visualizations for gene counts, UMI counts, mitochondrial percentage, and related indicators.
Help me assess the quality of the single-cell RNA-seq data in this .h5 file, check for outlier cells, low-complexity cells, or high mitochondrial contamination, and explain whether the data is suitable for downstream analysis.
A data quality assessment, explanation of abnormal cell characteristics, and a recommendation on whether to proceed with clustering and differential analysis.
Please generate a standardized QC report for this single-cell RNA-seq data file, including filtering thresholds, retained cell counts, removal reasons, and major visualizations so I can report experimental data quality.
A structured QC report showing threshold settings, before-and-after filtering statistics, and conclusions from the main plots.
Automated QC workflow for single-cell RNA-seq data following scverse best practices.
Use when users:
Supported input formats:
.h5ad files (AnnData format from scanpy/Python workflows).h5 files (10X Genomics Cell Ranger output)Default recommendation: Use Approach 1 (complete pipeline) unless the user has specific custom requirements or explicitly requests non-standard filtering logic.
For standard QC following scverse best practices, use the convenience script scripts/qc_analysis.py:
python3 scripts/qc_analysis.py input.h5ad
# or for 10X Genomics .h5 files:
python3 scripts/qc_analysis.py raw_feature_bc_matrix.h5
The script automatically detects the file format and loads it appropriately.
When to use this approach:
Requirements: anndata, scanpy, scipy, matplotlib, seaborn, numpy
Parameters:
Customize filtering thresholds and gene patterns using command-line parameters:
--output-dir - Output directory--mad-counts, --mad-genes, --mad-mt - MAD thresholds for counts/genes/MT%--mt-threshold - Hard mitochondrial % cutoff--min-cells - Gene filtering threshold--mt-pattern, --ribo-pattern, --hb-pattern - Gene name patterns for different speciesUse --help to see current default values.
Outputs:
All files are saved to <input_basename>_qc_results/ directory by default (or to the directory specified by --output-dir):
qc_metrics_before_filtering.png - Pre-filtering visualizationsqc_filtering_thresholds.png - MAD-based threshold overlaysqc_metrics_after_filtering.png - Post-filtering quality metrics<input_basename>_filtered.h5ad - Clean, filtered dataset ready for downstream analysis<input_basename>_with_qc.h5ad - Original data with QC annotations preservedIf copying outputs for user access, copy individual files (not the entire directory) so users can preview them directly.
The script performs the following steps:
For custom analysis workflows or non-standard requirements, use the modular utility functions from scripts/qc_core.py and scripts/qc_plotting.py:
# Run from scripts/ directory, or add scripts/ to sys.path if needed
import anndata as ad
from qc_core import calculate_qc_metrics, detect_outliers_mad, filter_cells
from qc_plotting import plot_qc_distributions # Only if visualization needed
adata = ad.read_h5ad('input.h5ad')
calculate_qc_metrics(adata, inplace=True)
# ... custom analysis logic here
When to use this approach:
Available utility functions:
From qc_core.py (core QC operations):
…
Turns sales and seasonality data into a prioritized 30-day content strategy.
Create structured interview plans, competency questions, and scorecards for hiring.
Automatically discover and audit brand materials across enterprise platforms.
Create shareable interactive HTML dashboards with charts, filters, and tables.
Set up Zoom OAuth correctly, including scopes, tokens, and auth troubleshooting.
Compose clear, well-formatted, effective Slack messages with mrkdwn syntax guidance.
Automate sequencing QC analysis, report parsing, and visualization for bioinformatics workflows.
Run nf-core Nextflow pipelines for RNA-seq, variant, and ATAC-seq analysis.
Run deep-learning single-cell analyses for integration, multimodal modeling, and mapping.
Manage QC records, turnover packages, and inspection sign-offs with natural language.
Search, map, and analyze non-coding RNA sequences from RNAcentral.
Load datasets, compute statistics, and create charts for data exploration.