sc-multi-count
БесплатноБез исполняемых скриптовНе проверенLoad when merging multiple single-sample scRNA-seq count matrices (one per sample-from-sc-count) into a single downstream-ready AnnData with sample labels…
от mdbabumiamssm★ 36 звёзд на GitHubОб этом скилле
sc-multi-count
When to use
The user has run sc-count (or another counting backend) on multiple
samples separately and now needs them merged into one AnnData with a
canonical sample-label column for downstream batch-aware analysis.
Replaces cellranger aggr for the OmicsClaw pipeline — preserves the
canonical AnnData contract instead of re-counting.
Inputs & Outputs
| Input | Format | Required |
|---|---|---|
| Per-sample inputs | repeated --input <path> flag, one per sample (action="append") |
yes (unless --demo); minimum two paths |
| Output | Path | Notes |
|---|---|---|
| Merged AnnData | processed.h5ad |
adds obs["sample"] from filename or label arg |
| Per-barcode summary | tables/barcode_metrics.csv |
per-barcode count summary with sample labels |
| Per-sample summary | tables/per_sample_summary.csv |
per-sample summary statistics |
| Diagnostic figures | figures/barcode_rank.png, figures/count_distributions.png, figures/count_complexity_scatter.png, figures/sample_composition.png |
always rendered |
| Report | report.md + result.json |
always written |
Flow
- Collect per-sample AnnData paths from each
--input <path>flag (action="append"); paired--sample-id <id>flags assign sample labels. - Load each, normalise the single-cell contract (
layers["counts"],adata.raw, gene name harmonisation). - Stack with explicit sample-label per cell.
- Write merged AnnData; emit per-sample / per-barcode summary tables.
- Render barcode-rank + composition figures.
- Emit
report.md+result.json.
Gotchas
--inputisaction="append"— repeat the flag, do not comma-split.sc_multi_count.py:315declares--inputwithaction="append". Pass--input s1.h5ad --input s2.h5ad --input s3.h5ad; a single comma-separated value (--input s1.h5ad,s2.h5ad) is treated as one literal path that does not exist and triggersFileNotFoundError. No directory expansion.- At least two
--inputpaths are required.sc_multi_count.py:335callsparser.error("At least two --input paths required when not using --demo.")if you pass zero or one. For a single-sample run you don't need this skill — just use the upstreamsc-countoutput directly. - Missing input file → hard fail.
sc_multi_count.py:346raisesFileNotFoundErrorwhen any individual--inputpath does not resolve. In batch pipelines, a single mistyped sample name aborts the whole merge — pre-flight your file list. --r-enhancedis accepted but produces no R plots. This skill emits Python figures only; the flag exists for CLI consistency.- No within-sample re-counting. This is a stitching skill — it stacks already-canonical AnnData objects. If a per-sample input has a non-canonical matrix layout, run
sc-standardize-inputon each before this; otherwise the merged contract may surface incoherent per-cell metrics downstream.
Key CLI
# Demo (built-in two synthetic samples)
python omicsclaw.py run sc-multi-count --demo --output /tmp/sc_multi_demo
# Three samples — repeat --input per file
python omicsclaw.py run sc-multi-count \
--input s1.h5ad --input s2.h5ad --input s3.h5ad \
--output results/
# With explicit per-sample labels (paired with --input order)
python omicsclaw.py run sc-multi-count \
--input s1.h5ad --sample-id ctrl_a \
--input s2.h5ad --sample-id ctrl_b \
--input s3.h5ad --sample-id treat_a \
--output results/
See also
references/parameters.md— every CLI flag and tuning hintreferences/methodology.md— sample-label derivation, contract harmonisation rulesreferences/output_contract.md— mergedobsschema, table layout- Adjacent skills:
sc-count(upstream — produces single-sample AnnData inputs),sc-standardize-input(per-sample contract canonicaliser, run before this when inputs are external),sc-batch-integration(downstream — corrects batch effects in the merged AnnData)
Установить sc-multi-count в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл sc-multi-count?
Load when merging multiple single-sample scRNA-seq count matrices (one per sample-from-sc-count) into a single downstream-ready AnnData with sample labels. Skip when input is one already-merged AnnData (use sc-standardize-input) or for FASTQ→counts on each sample (use sc-count first).
Как установить скилл sc-multi-count?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sc-multi-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