Scrna seq qc

From openai/plugins · View interactive version

Scrna seq qc is an AI agent skill from the GitHub repository openai/plugins. Process, quality-control, annotate, and visualize single-cell or single-nucleus RNA-seq datasets across tissues and species. Use when Codex needs to build, adapt, or review a general scRNA-seq QC pipeline; choose dataset-appropriate cell-level filters from QC distributions; run required scDblFinder-

How to use this skill

Skill file

scRNA-seq QC

Start Here

Read references/qc-annotation-umap-heuristics.md before picking thresholds, annotation backends, or UMAP feature-selection rules.

Confirm what inputs exist before writing code:

Preserve provenance in the output: package versions, thresholds, threshold-justification plots, counts removed or flagged at each filter, annotation backend and reference, marker-gene selection heuristic, and any manual cluster exclusions.

Workflow

  1. Choose QC thresholds from the data, not from a fixed template.
  1. Run cell-level QC.
  1. Build a latent space and inspect residual artifacts.
  1. Annotate cells.
  1. Choose a general marker panel for global UMAP.
  1. Generate UMAP visualizations.
  1. Scale to large datasets without copying.

Deliverables

When implementing a pipeline, produce an auditable output set:

Embedded Runner

For 10x-style matrix bundles, a local runner is available:

python plugins/ngs-analysis/scripts/run_scrnaseq_post_count_qc.py --input-dir path/to/scrna_bundle

The input directory should contain matrix/, manifest.tsv, and dataset_metadata.json, unless explicit paths are supplied. Treat the runner as an auditable analysis surface: its marker-based fallback is PBMC-oriented when no matched reference is provided, so tissue-specific annotation and integration choices still require review.

The runner writes visualizations/index.html for portable artifact review, summary.md plus provenance/analysis_status.json for explicit completeness/blocker reporting, and auto-launches a localhost Marimo review app recorded in notebooks/marimo_server.json. It also writes notebooks/scrna_qc_review.marimo.py as a notebook backup over the generated PNG/CSV/H5AD outputs. Treat the notebook and review app as review layers, not as the source of truth; the run envelope and generated artifacts remain canonical.

Resources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.