sc-standardize-input
БесплатноБез исполняемых скриптовНе проверенLoad when an external single-cell h5ad/h5/loom/mtx needs to be canonicalised onto the OmicsClaw AnnData contract before downstream scRNA skills run. Skip when…
от mdbabumiamssm★ 36 звёзд на GitHubОб этом скилле
sc-standardize-input
When to use
The user has a single-cell expression file from outside OmicsClaw (a public
.h5ad, a 10X mtx directory, a .loom, etc.) and needs the canonical
AnnData contract every downstream scRNA skill assumes: raw counts in
layers["counts"] and adata.raw, harmonised feature names, and a
uns["omicsclaw_matrix_contract"] provenance record. Run this once before
sc-qc / sc-preprocessing / etc.
Inputs & Outputs
| Input | Format | Required |
|---|---|---|
| Single-cell expression | .h5ad, .h5, .loom, .csv, .tsv, or 10X mtx dir |
yes (unless --demo) |
| Output | Path | Notes |
|---|---|---|
| Canonicalised AnnData | processed.h5ad |
adata.X = counts; layers["counts"] + adata.raw populated |
| Provenance | result.json |
summary includes warnings, contract metadata |
| Report | report.md |
always written |
Flow
- Load via the shared multi-format single-cell loader.
- Pre-flight: validate non-empty input; auto-detect species from gene name case (UPPER → human, Title → mouse).
- Pick the best count-like matrix among
layers["counts"],adata.raw, andadata.X(orchestrated bycanonicalize_singlecell_adatainskills/singlecell/_lib/adata_utils.py:389, which calls thematrix_looks_count_likeheuristic at_lib/adata_utils.py:255). - Harmonise feature names (Ensembl ↔ symbol, deduplicate).
- Persist
uns["omicsclaw_input_contract"]+uns["omicsclaw_matrix_contract"]. - Save
processed.h5ad; emitreport.md+result.json.
Gotchas
--r-enhancedis accepted but produces no R plots.sc_standardize_input.py:250declares the flag for CLI consistency; this skill is input canonicalisation, not visualisation. Pass it freely, but expect no R Enhanced figures.- Count-source selection is heuristic, not declarative. The skill scans
layers["counts"]→adata.raw→adata.Xand picks the first that passes amatrix_looks_count_likecheck. If the input is already log-normalised everywhere, the heuristic can mis-classify and fall through toadata.X; verifyresult.json["summary"]["warnings"]after every run. - Species auto-detect is gene-case-based. UPPER-case symbols → human, Title-case → mouse. Non-standard gene-name conventions (Ensembl IDs only, lowercase) silently fall through to the
autodefault. Pass--species humanor--species mouseexplicitly when working with non-symbol matrices. - No filtering, no normalisation, no clustering. Even if
result.jsonlooks complete, the output is still raw counts in canonical form — runsc-qcandsc-preprocessingnext.
Key CLI
# Demo (built-in PBMC3K)
python omicsclaw.py run sc-standardize-input --demo --output /tmp/sc_std_demo
# Real run with species hint
python omicsclaw.py run sc-standardize-input \
--input external.h5ad --output results/ --species mouse
See also
references/parameters.md— every CLI flag and tuning hintreferences/methodology.md— count-source heuristic, species detection logicreferences/output_contract.md— exactprocessed.h5ad+result.jsonshape- Adjacent skills:
sc-count(FASTQ → AnnData; skip standardisation when used),sc-qc(next step),sc-preprocessing(full normalise+cluster pipeline)
Установить sc-standardize-input в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл sc-standardize-input?
Load when an external single-cell h5ad/h5/loom/mtx needs to be canonicalised onto the OmicsClaw AnnData contract before downstream scRNA skills run. Skip when data already came from sc-count (already canonical), or for bulk RNA-seq (use bulkrna-qc) or spatial (use spatial-preprocess).
Как установить скилл sc-standardize-input?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sc-standardize-input запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic