1---2name: scrna-qc3description: <!--4---5<!--6# COPYRIGHT NOTICE7# This file is part of the "Universal Biomedical Skills" project.8# Copyright (c) 2026 MD BABU MIA, PhD <md.babu.mia@mssm.edu>9# All Rights Reserved.10#11# This code is proprietary and confidential.12# Unauthorized copying of this file, via any medium is strictly prohibited.13#14# Provenance: Authenticated by MD BABU MIA1516-->1718---19name: scrna-qc20description: Execute the MAD-based single-cell RNA-seq QC workflow (scripts + Python API) to filter low-quality cells and emit reports plus filtered AnnData files.21measurable_outcome: Produce filtered .h5ad files, before/after plots, and qc_summary.json within 20 minutes per dataset.22allowed-tools:23 - read_file24 - run_shell_command25---2627## At-a-Glance28- **description (10-20 chars):** QC autopilot29- **keywords:** scRNAseq, MAD, h5ad, QC, plots3031## Workflow321. Accept `.h5ad`, 10x `.h5`, or 10x directory inputs; set mitochondrial/ribosomal patterns as needed.332. Run `qc_analysis.py` (CLI) or call `qc_core` helpers to compute metrics, apply MAD thresholds, and filter cells/genes.343. Generate standard plots (metrics before/after, threshold overlays) plus filtered data artifacts.354. Document parameters (mad_counts/genes/mt, mt_threshold, min_cells, log1p flag) inside the summary JSON.365. Provide guidance on next steps (doublet detection, downstream analysis).3738## Guardrails39- Adjust MT% expectations for tissue context; avoid over-filtering rare populations.40- This workflow is QC only—doublet handling and batch correction stay separate.41- Keep reproducibility by storing command invocations and environment info.4243## References44- See `README.md`, `qc_core.py`, `qc_analysis.py`, and `qc_plotting.py` for API usage and schema details.454647<!-- AUTHOR_SIGNATURE: 9a7f3c2e-MD-BABU-MIA-2026-MSSM-SECURE -->