sc-qc
БесплатноБез исполняемых скриптовНе проверенLoad when computing per-cell QC metrics (n_genes, total counts, mt%, ribo%) on a single-cell AnnData before filtering. Skip when reads are still raw FASTQ…
от mdbabumiamssm★ 36 звёзд на GitHubОб этом скилле
sc-qc
When to use
The user has a single-cell AnnData (post-counting / post-standardisation)
and wants to review cell quality — counts, detected genes, mitochondrial
percentage, ribosomal percentage — before any filtering. This skill
reports, it does not remove cells. Use sc-filter to actually drop
cells based on these metrics.
Inputs & Outputs
| Input | Format | Required |
|---|---|---|
| Single-cell AnnData | .h5ad |
yes (unless --demo) |
| Output | Path | Notes |
|---|---|---|
| QC summary | tables/qc_metrics_summary.csv |
one row per metric, with stats |
| Per-cell metrics | tables/qc_metrics_per_cell.csv |
one row per cell |
| Top expressed genes | tables/highest_expr_genes.csv |
by mean expression |
| Diagnostic figures | figures/qc_violin.png, figures/qc_scatter.png |
always rendered |
| Provenance | result.json |
summary includes n_cells, n_genes, expression_source |
| Report | report.md |
always written |
Flow
- Load AnnData via the shared single-cell loader.
- Detect mitochondrial / ribosomal gene patterns from species hint (or
var_namesheuristic). - Compute per-cell QC metrics with
scanpy.pp.calculate_qc_metrics. - Emit summary stats + per-cell metrics tables.
- Render violin + scatter figures and
tables/highest_expr_genes.csv. - Emit
report.md+result.json(no cell filtering performed).
Gotchas
- No filtering happens here. Despite the name,
sc-qcdoes not remove cells or genes — it computes metrics and produces figures. Runsc-filternext with thresholds chosen from the QC violins. Theresult.jsonsummarycarriesn_cells/n_genesas observed, not as filtered. - Input file missing → hard fail.
sc_qc.py:635raisesFileNotFoundErrorwhen--inputdoes not resolve. Pre-flight your path before the skill, especially in batch pipelines. expression_sourcerecords which matrix the run used.result.json["summary"]["expression_source"]readslayers.counts,adata.raw, oradata.Xdepending on what the loader picked; QC fractions (mt%, ribo%) are only meaningful on a count-like source. Verify after every run, especially if the input came from outsidesc-standardize-input.
Key CLI
# Demo (built-in PBMC3K)
python omicsclaw.py run sc-qc --demo --output /tmp/sc_qc_demo
# Real run
python omicsclaw.py run sc-qc --input processed.h5ad --output results/
# With R Enhanced figures
python omicsclaw.py run sc-qc --input processed.h5ad --output results/ --r-enhanced
See also
references/parameters.md— every CLI flag and tuning hintreferences/methodology.md— mt/ribo gene-pattern detection, scanpy QC parametersreferences/output_contract.md— table column schemas + figure roles- Adjacent skills:
sc-standardize-input(upstream — required if input is external),sc-filter(next step — actually removes cells),sc-doublet-detection(parallel — finds doublets)
Установить sc-qc в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл sc-qc?
Load when computing per-cell QC metrics (n_genes, total counts, mt%, ribo%) on a single-cell AnnData before filtering. Skip when reads are still raw FASTQ (use sc-fastq-qc) or you want to filter cells now (use sc-filter).
Как установить скилл sc-qc?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sc-qc запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic