sc-count
БесплатноБез исполняемых скриптовНе проверенLoad when turning scRNA FASTQ (or existing CellRanger/STARsolo/SimpleAF/kb-python output) into a downstream-ready AnnData. Skip when reads are already counted…
от mdbabumiamssm★ 36 звёзд на GitHubОб этом скилле
sc-count
When to use
The user has FASTQ files (or pre-existing tool output directories) and
wants per-cell counts in OmicsClaw's canonical AnnData contract. Four
backends share one CLI: cellranger, starsolo, simpleaf,
kb-python. When passed an already-counted directory the skill
re-canonicalises rather than re-counts. Pairs with sc-fastq-qc
upstream (read QC) and sc-multi-count downstream (merging multiple
samples).
Inputs & Outputs
| Input | Format | Required |
|---|---|---|
| Reads or counts | FASTQ path / dir, or existing CellRanger / STARsolo / SimpleAF / kb-python output dir | yes (unless --demo) |
| Reference | transcriptome / genome dir / index, depending on backend | only when running the backend (not for re-canonicalising existing output) |
| Output | Path | Notes |
|---|---|---|
| AnnData | processed.h5ad |
canonical contract; sample-label populated when --sample is used |
| Run summary | tables/count_summary.csv |
compact run-level summary |
| Backend summary | tables/backend_summary.csv |
backend-emitted metric/value pairs (always written) |
| Per-barcode metrics | tables/barcode_metrics.csv |
per-barcode count summary |
| Diagnostic figures | figures/barcode_rank.png, figures/count_distributions.png, figures/count_complexity_scatter.png |
always rendered |
| Report | report.md + result.json |
always written |
Flow
- Resolve
--input; if it's an existing CellRanger / STARsolo / SimpleAF / kb-python output dir, re-canonicalise instead of running the backend. - Otherwise validate backend prerequisites (chemistry, reference, t2g for kb-python, whitelist for STARsolo).
- Run the chosen backend against the FASTQ (and
--read2if explicit). - Load the resulting matrix into AnnData; canonicalise (
layers["counts"],adata.raw, gene-name harmonisation). - Render barcode-rank + count-distribution figures.
- Emit
processed.h5ad+report.md+result.json.
Gotchas
- Missing input path → hard fail.
sc_count.py:356raisesFileNotFoundError(f"Input path not found: {input_path}"). Common when the FASTQ dir is on a network mount that has not been resolved at run time. - STARsolo requires explicit chemistry.
sc_count.py:420raisesValueError("STARsolo runs require an explicit--chemistryvalue such as10xv3.")when chemistry is left at theautodefault. STARsolo currently supports10xv2,10xv3, and10xv4; pass one of those. - Backend prerequisites are validated up front.
sc_count.py:401,:423,:451raiseValueErrorfor missing--reference(CellRanger/STARsolo/simpleaf), missing--t2g(kb-python), or unsupported--chemistryfor STARsolo. No silent fallback to a different backend — pick a feasible one before invoking. - Re-canonicalising-existing-output is detected by directory shape, not a flag. If
--inputpoints at a CellRanger output dir (e.g. one withouts/raw_feature_bc_matrix/), the skill skips counting and just imports the matrix. No flag separates the two paths; verify by inspectingresult.json["data"]["execution"](empty list = re-canonicalise; populated = backend invoked) or by readingtables/backend_summary.csv(lists the backend metrics only when the backend ran).
Key CLI
# Demo (synthetic FASTQ + CellRanger-shaped output)
python omicsclaw.py run sc-count --demo --output /tmp/sc_count_demo
# CellRanger over FASTQ
python omicsclaw.py run sc-count \
--input fastq_dir/ --output results/ \
--reference cellranger_transcriptome --threads 16
# STARsolo (requires explicit chemistry)
python omicsclaw.py run sc-count \
--input fastq_dir/ --output results/ \
--reference star_genome_dir --chemistry 10xv3 --whitelist barcodes.tsv
# Re-canonicalise an existing CellRanger output directory
python omicsclaw.py run sc-count \
--input cellranger_output_dir/ --output results/
See also
references/parameters.md— every CLI flag and per-backend prerequisitereferences/methodology.md— backend selection guide, re-canonicalise vs re-run logicreferences/output_contract.md—processed.h5adschema + table layouts- Adjacent skills:
sc-fastq-qc(upstream — read-quality check before counting),sc-multi-count(downstream — merge multiple sample outputs),sc-standardize-input(parallel — for AnnData from outside OmicsClaw)
Установить sc-count в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл sc-count?
Load when turning scRNA FASTQ (or existing CellRanger/STARsolo/SimpleAF/kb-python output) into a downstream-ready AnnData. Skip when reads are already counted into AnnData (use sc-standardize-input) or for raw quality assessment only (use sc-fastq-qc).
Как установить скилл sc-count?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sc-count запускает скрипты?
Нет, скилл состоит только из инструкций (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