Command Palette

Search for a command to run...

Назад к скиллам
скилл № 32612

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от 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

  1. Four counting backends: Cell Ranger, STARsolo, SimpleAF / Alevin-fry, and kb-python.
  2. Direct import path: can also standardize existing backend output directories without rerunning them.
  3. Stable downstream contract: writes processed.h5ad with layers['counts'] and OmicsClaw input-contract metadata.
  4. Standard output layer: barcode-rank and count-distribution figures plus machine-readable tables.
  5. 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:

  1. pass explicit local paths such as --reference, --whitelist, or --t2g
  2. 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

  1. Load: detect whether the input is FASTQ or an existing count-output directory.
  2. Validate: enforce one chosen sample and backend-specific requirements.
  3. Run method: launch the selected backend when needed, or import existing outputs directly.
  4. Persist results: load the filtered matrix, standardize it into the OmicsClaw AnnData contract, and preserve backend artifact paths.
  5. Visualize / summarize: generate barcode-rank and count-distribution plots plus summary tables.
  6. 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

  1. FASTQ grouping: infer one target sample from the input path.
  2. Run Cell Ranger: execute cellranger count with --nosecondary and BAM output kept on.
  3. Import filtered matrix: load the filtered feature-barcode matrix into AnnData.
  4. Standardize output: create layers['counts'], stabilize names, and record OmicsClaw input-contract metadat
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

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), без исполняемых скриптов.

Похожие скиллы

Сравнить sc-count с