single-cell-rna-qc
Quality-control single-cell RNA-seq count matrices — compute per-cell QC metrics (total counts, detected genes, mitochondrial fraction) and filter low-quality…
Skill by Garhorne0813
Chalk Labs
Need help deploying single-cell-rna-qc?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/garhorne0813-single-cell-rna-qc
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: data
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/single-cell-rna-qc
What's inside
- Skill name
single-cell-rna-qc- Description
- Quality-control single-cell RNA-seq count matrices — compute per-cell QC metrics (total counts, detected genes, mitochondrial fraction) and filter low-quality cells using median-absolute-deviation (MAD) outlier detection with a configurable mitochondrial cap. Use when the user asks to QC, filter, or assess single-cell RNA-seq data, detect low-quality cells, or follow scverse/scanpy best practices. Core pipeline is numpy/scipy only; scanpy-based extensions are documented but optional.
- License
- Apache-2.0
- Instructions
- 88 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (5)
- SKILL.md
- single_cell_rna_qc.py
- fixtures.json · tests/
- single_cell_rna_qc_test.py · tests/
- skill-content.test.ts · tests/
SKILL.md (first lines)
# Single-cell RNA-seq quality control
Compute per-cell QC metrics and filter low-quality cells with MAD-based
outlier detection. Core pipeline runs on a plain counts CSV with
numpy/scipy — no scanpy required.
## When to use
- QC or filtering of single-cell RNA-seq count data
- Detect low-quality cells (low counts, low gene detection, high
mitochondrial fraction)
- Assess data quality before downstream analysis
- Follow scverse/scanpy QC conventions
Supported input: a counts matrix as CSV with **rows = genes** and
**columns = cells**, plus a gene-identifier first column (header
`gene`/`genes`/`symbol`/`feature`, auto-detected). Pass `--no-gene-column`
for a plain numeric matrix. For `.h5ad` / 10x `.h5` inputs, see the scanpy
extension path below.
## Core pipeline (numpy/scipy)
```bash
python3 single_cell_rna_qc.py counts.csv \
--output-metrics qc_metrics.json \
--output-filtered counts.filtered.csv
```
What the script does, in order:
1. **Load** the counts matrix (cells x genes), detecting the gene column.
2. **QC metrics per cell**:
- `total_counts` — total UMI/counts per cell
- `n_genes` — number of detected genes (count > 0)
- `pct_mito` — percentage of counts from mitochondrial genes
(prefixes `MT-`/`mt-`/`MTRNR`, case-insensitive)
3. **Filter** — keep a cell when ALL hold:
- `|log1p(total_counts) − median| ≤ n_mads × 1.4826 × MAD` (default 3 MAD)
- same MAD rule on `n_genes`
- `pct_mito ≤ max-pct-mito` (default 20%; pass `--max-pct-mito -1` to
disable the mito cap)
4. **Report** — JSON summary with cells kept/removed and median metrics
before/after (input vs. kept), plus the filtered counts CSV.
The MAD rule follows the scanpy/scverse convention (`sc.pp.filter_cells` +
outlier detection on log-transformed totals). The script never silently
changes the input: the original matrix is never overwritten, and the output
CSV is always a new file.
## Interpretation guardrails
- Report the JSON summary as-is; do not invent p-values or "quality grades".
- If `cells_removed` is extreme (>50%), say so and suggest checking the
input for batch effects or multi-sample pooling before filtering harder.
- The mito cap is a **default**, not a law: for datasets where high mito is
biologically expected (e.g. stressed or low-input samples), re-run with a
higher cap or none, and state the choice in the response.
- Only the metrics you computed may appear in the report — no phantom
doublet or ambient-RNA statistics.
## Scanpy extension path (optional)
When the user has `.h5ad` / 10x `.h5` files or wants embeddings/marker
workflows, and `scanpy` is installed, use the standard scverse workflow:
`sc.read_*` → `sc.pp.filter_cells` / `sc.pp.calculate_qc_metrics` (with
`var_names="mt-"` mito detection) → MAD outlier removal → `sc.pl.highly_variable_genes`
and QC violin plots. Verify scanpy availability first; if it is missing,
state that the CSV pipeline above remains available and never fabricate
scanpy output.
## Output conventions
Always end with a compact metrics block:
```text
QC SUMMARY
cells: <kept>/<input> (removed <n>)
median total_counts: <input> -> <kept>
median n_genes: <input> -> <kept>
median pct_mito: <input> -> <kept>
filter: <n_mads> MAD + mito cap <cap>%
filtered matrix: <path>
```
Include the JSON path and filtered CSV path in the reply so the user can
inspect them in the workspace.From Garhorne0813/pi-science, Apache-2.0.
More from Garhorne0813/pi-science
- 0.587score
literature-review
Garhorne0813
Find, verify, and synthesize scientific literature with traceable citations.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
auto-research
Garhorne0813
Investigate scientific evidence with a lightweight literature workflow, or run bounded experiments with task-specific evaluation and reproducible checkpoints.
SkillAFreshness: A★ 1Claude Code +9 - 0.547score
latex-pdf
Garhorne0813
Generate LaTeX documents and compile them to PDF.
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
scientific-problem-selection
Garhorne0813
Guide scientists through structured research problem selection — pitch new ideas, troubleshoot stuck projects, or make strategic research decisions.
SkillBFreshness: B★ 1Claude Code +9 - 0.497score
publication-figures
Garhorne0813
Generate publication-grade scientific figures with a validated shared palette, consistent typography, and render-time quality checks.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
stats-integrity
Garhorne0813
Enforce statistical analysis integrity — execute-don't-interpret boundary, fixed random seeds, preregistration plan checks, and reproducible estimation.
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
traceability-review
Garhorne0813
Audit a scientific report, manuscript, or analysis in the workspace for traceability — resolving citations, flagging numbers with no source, and checking…
SkillCFreshness: C★ 1Claude Code +9 - 0.489score
figure-style
Garhorne0813
Create publication-ready scientific figures with data fidelity, legible labels, reproducible styling, and render-time quality checks.
SkillCFreshness: C★ 1Claude Code +9 - 0.489score
materials-phase-analysis
Garhorne0813
Analyze phase-diagram JSON and related composition data, explaining convex-hull stability, phase labels, and uncertainty without inventing missing…
SkillCFreshness: C★ 1Claude Code +9 - 0.489score
figure-composer
Garhorne0813
Compose a multi-panel scientific figure from existing panel images, preserve panel labels and layout metadata, and run the artifact verifier after export.
SkillCFreshness: C★ 1Claude Code +9 - 0.489score
molecule-qc
Garhorne0813
Quality-check molecular structure files and SMILES for parseability, atom counts, valence warnings, and explicit missing or ambiguous fields.
SkillCFreshness: C★ 1Claude Code +9 - 0.489score
pdf-explore
Garhorne0813
Explore an attached scientific PDF or report across multiple pages, extracting methods, values, figures, tables, and cited evidence with page-level references.
SkillCFreshness: C★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 1
- Open issues
- 15
- Last commit (this folder)
- Aug 3, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/Garhorne0813/pi-science
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Garhorne0813
- 0.587score
literature-review
Garhorne0813
Find, verify, and synthesize scientific literature with traceable citations.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
auto-research
Garhorne0813
Investigate scientific evidence with a lightweight literature workflow, or run bounded experiments with task-specific evaluation and reproducible checkpoints.
SkillAFreshness: A★ 1Claude Code +9 - 0.547score
scientific-problem-selection
Garhorne0813
Guide scientists through structured research problem selection — pitch new ideas, troubleshoot stuck projects, or make strategic research decisions.
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
latex-pdf
Garhorne0813
Generate LaTeX documents and compile them to PDF.
SkillBFreshness: B★ 1Claude Code +9 - 0.497score
stats-integrity
Garhorne0813
Enforce statistical analysis integrity — execute-don't-interpret boundary, fixed random seeds, preregistration plan checks, and reproducible estimation.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
publication-figures
Garhorne0813
Generate publication-grade scientific figures with a validated shared palette, consistent typography, and render-time quality checks.
SkillCFreshness: C★ 1Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get single-cell-rna-qc running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
single-cell-rna-qc skill. Agent Mart. https://agentmart.dev/skills/garhorne0813-single-cell-rna-qc (last updated 2026-10-24)