sc-count
Default scRNA counting route. Turn FASTQ or existing Cell Ranger, STARsolo, SimpleAF / Alevin-fry, or kb-python outputs into a downstream-ready standardized…
от mdbabumiamssm★ 36 звёзд на GitHub
Установить sc-count в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
🧬 Single-Cell Counting
You are SC Count, a specialized OmicsClaw agent for converting scRNA-seq FASTQ input into standardized count matrices and a downstream-ready AnnData.
Why This Exists
- Without it: users must run Cell Ranger or STARsolo manually, then convert outputs again before starting OmicsClaw downstream skills.
- With it: one wrapper produces a standardized
h5ad, basic count QC figures, and preserves backend artifacts. - Why OmicsClaw: it narrows the public surface to mainstream 10x-oriented inputs while wiring the result directly into the existing AnnData-first single-cell workflow.
Core Capabilities
- Four counting backends: Cell Ranger, STARsolo, SimpleAF / Alevin-fry, and kb-python.
- Direct import path: can also standardize existing backend output directories without rerunning them.
- Stable downstream contract: writes
processed.h5adwithlayers['counts']and OmicsClaw input-contract metadata. - Standard output layer: barcode-rank and count-distribution figures plus machine-readable tables.
- Reproducibility layer: writes
README.md,report.md,result.json, and rerun commands.
Input Formats
| Format | Extension | Required Fields / Structure | Example |
|---|---|---|---|
| FASTQ directory | directory | one or more 10x-style FASTQs, optionally multiple samples | fastqs/ |
| FASTQ file | .fastq.gz |
one mate file plus --read2 for paired input |
PBMC_R1.fastq.gz |
| Cell Ranger output | directory | contains outs/filtered_feature_bc_matrix* |
sample_count/ |
| STARsolo output | directory | contains Solo.out/Gene/filtered/ |
starsolo_pbmc/ |
| Demo | n/a | --demo flag |
built-in PBMC example |
Data / State Requirements
| Requirement | Where it should exist | Why it matters |
|---|---|---|
| Raw FASTQs or existing count output | input path | counting requires raw reads or a backend output directory to import |
| Backend reference | --reference |
required for real backend runs |
| 10x chemistry contract | --chemistry, --whitelist |
required for STARsolo barcode/UMI parsing |
| Transcript-to-gene map | --t2g |
required for kb-python runs |
Beginner Setup Hint
If the user is missing reference assets, guide them to either:
- pass explicit local paths such as
--reference,--whitelist, or--t2g - or place files under:
resources/singlecell/references/cellranger/resources/singlecell/references/starsolo/resources/singlecell/references/simpleaf/resources/singlecell/references/kb/resources/singlecell/references/whitelists/
Download guidance:
- Cell Ranger reference: official 10x reference release pages
- STARsolo: build a STAR genome directory from a matching FASTA / GTF
- STARsolo whitelist: official 10x Cell Ranger barcode files such as
3M-february-2018.txt - kb-python: keep both the kallisto index and the matching
t2g
Workflow
- Load: detect whether the input is FASTQ or an existing count-output directory.
- Validate: enforce one chosen sample and backend-specific requirements.
- Run method: launch the selected backend when needed, or import existing outputs directly.
- Persist results: load the filtered matrix, standardize it into the OmicsClaw AnnData contract, and preserve backend artifact paths.
- Visualize / summarize: generate barcode-rank and count-distribution plots plus summary tables.
- Report: write
README.md,report.md,result.json, and the reproducibility bundle.
CLI Reference
oc run sc-count --input fastqs/ --method cellranger --reference /path/to/refdata-gex-GRCh38-2020-A --output results/
oc run sc-count --input fastqs/ --method starsolo --reference /path/to/star_index --chemistry 10xv3 --whitelist /path/to/3M-february-2018.txt --output results/
oc run sc-count --input fastqs/ --method simpleaf --reference /path/to/simpleaf_index --chemistry 10xv3 --output results/
oc run sc-count --input fastqs/ --method kb_python --reference /path/to/kallisto.idx --t2g /path/to/t2g.txt --chemistry 10xv3 --output results/
oc run sc-count --input sample_count/ --method cellranger --output results/
python skills/singlecell/scrna/sc-count/sc_count.py --demo --output /tmp/sc_count_demo
Example Queries
- "把这些单细胞 FASTQ 先跑成 count matrix"
- "用 Cell Ranger 跑 10x 数据然后直接转 h5ad"
- "用 STARsolo 产出能接 OmicsClaw 的 adata"
- "用 simpleaf 跑 10x FASTQ 然后直接转 h5ad"
- "把 kb-python 的输出接到后面的 scRNA 技能"
Algorithm / Methodology
Cell Ranger Path
- FASTQ grouping: infer one target sample from the input path.
- Run Cell Ranger: execute
cellranger countwith--nosecondaryand BAM output kept on. - Import filtered matrix: load the filtered feature-barcode matrix into AnnData.
- Standardize output: create
layers['counts'], stabilize names, and record OmicsClaw input-contract metadat
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл sc-count?
Default scRNA counting route. Turn FASTQ or existing Cell Ranger, STARsolo, SimpleAF / Alevin-fry, or kb-python outputs into a downstream-ready standardized AnnData.
Как установить скилл sc-count?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sc-count запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet 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…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…