sc-standardize-input
Start here if you already have an external single-cell h5ad. Fixes the AnnData contract so downstream OmicsClaw scRNA skills can use it safely.
от mdbabumiamssm★ 36 звёзд на GitHub
Установить sc-standardize-input в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Single-Cell Input Standardization
You are SC Standardize Input, the OmicsClaw skill for explicitly exporting the same canonical AnnData contract that downstream scRNA skills should use internally when they auto-prepare compatible inputs.
Data / State Requirements
- Input: Any single-cell data file (.h5ad, .h5, .loom, .csv, .tsv, or 10X mtx directory)
- Matrix expectation: Raw counts preferred; the skill searches
layers['counts'],adata.raw, andadata.Xfor count-like data - No upstream step required: This is the first step in the pipeline
- No clustering or labels required
What This Skill Does
- loads user input through the shared single-cell loader
- auto-detects species from gene name conventions (UPPER = human, Title = mouse)
- chooses the best available count-like expression source (
layers['counts'],adata.raw, oradata.X) - standardizes feature names for downstream QC and analysis
- ensures
adata.layers['counts']exists as the canonical raw-count layer - writes a count-like snapshot to
adata.raw - records provenance and matrix semantics in
adata.uns['omicsclaw_input_contract']andadata.uns['omicsclaw_matrix_contract'] - saves a downstream-ready
processed.h5ad
What This Skill Does Not Do
- it does not filter cells or genes
- it does not normalize or cluster the data
- it does not run biological analysis; it only stabilizes the input contract
- it does not magically make normalized-expression methods ready; those usually still need
sc-preprocessing
Recommended Usage
Run this skill explicitly when:
- users provide arbitrary
.h5adfiles from outside OmicsClaw - raw counts may live in
adata.raworlayers['counts']instead ofadata.X - gene identifiers may need harmonization before QC or downstream scRNA skills
- you want to inspect or save the canonicalized object itself before running analysis
Workflow
- Load: read input via shared multi-format loader
- Preflight: validate non-empty input; detect species
- Canonicalize: select best count-like matrix, standardize gene names
- Persist contracts: write
omicsclaw_input_contractandomicsclaw_matrix_contract - Export: save
processed.h5ad - Report: generate
report.mdandresult.jsonwith diagnostics
CLI
# Basic usage (species auto-detected)
python omicsclaw.py run sc-standardize-input --input <data.h5ad> --output <dir>
# Explicit species
python omicsclaw.py run sc-standardize-input --input <data.h5ad> --output <dir> --species mouse
# Demo mode
python omicsclaw.py run sc-standardize-input --demo --output /tmp/demo
Parameters
| Flag | Default | Description |
|---|---|---|
--input |
(required unless --demo) |
Input file path |
--output |
(required) | Output directory |
--species |
auto |
Species hint: auto, human, or mouse |
--demo |
false | Run with built-in PBMC3K demo data |
Output Contract
adata.X=raw_countsadata.layers['counts']=raw_countsadata.raw=raw_counts_snapshotadata.uns['omicsclaw_matrix_contract']records all of the above explicitly
Workflow Position
- Upstream step: Used when input comes from external tools (not from
sc-count); converts arbitrary formats into the OmicsClaw canonical contract - Usual next step:
sc-qcfor quality assessment
Next Step
After standardization, run one of:
sc-qcto compute and visualize quality control metricssc-preprocessingto normalize, find HVGs, compute PCA/UMAP, and clustersc-doublet-detectionif doublet removal is needed before preprocessing
CLI Parameters
| Flag | Type | Default | Description |
|---|---|---|---|
--input |
path | — | Input file path (.h5ad, .h5, .loom, .csv, .tsv, or 10X mtx directory); required unless --demo |
--output |
path | — | Output directory (required) |
--demo |
flag | false |
Run with built-in PBMC3K demo data |
--species |
enum | auto |
Species hint for gene name conventions: auto, human, mouse |
--r-enhanced |
flag | false |
Accepted for CLI consistency; no R Enhanced plots are generated by this skill |
R Enhanced Plots
This skill has no R Enhanced plots. --r-enhanced is accepted for CLI consistency but produces no additional output. The skill's purpose is input canonicalization, not visualization.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл sc-standardize-input?
Start here if you already have an external single-cell h5ad. Fixes the AnnData contract so downstream OmicsClaw scRNA skills can use it safely.
Как установить скилл sc-standardize-input?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sc-standardize-input запускает скрипты?
Нет, скилл состоит только из инструкций (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…