metabolomics-normalization
БесплатноБез исполняемых скриптовНе проверенLoad when normalising a feature × sample metabolomics CSV via median, quantile, total (sum), PQN (probabilistic quotient), or log methods — emits a normalised…
от mdbabumiamssm★ 36 звёзд на GitHubОб этом скилле
metabolomics-normalization
When to use
The user has a feature × sample metabolomics intensity table and wants normalisation only (no imputation). Five methods:
median(default) — divide each sample by its median.quantile— quantile normalisation across samples.total— divide by per-sample total (TIC).pqn— Probabilistic Quotient Normalisation (Dieterle 2006).log— log2(x+1) per-cell.
For combined imputation + normalisation use metabolomics-quantification.
Inputs & Outputs
| Input | Format | Required |
|---|---|---|
| Feature × intensity table | .csv (wide form: rows = features, columns = samples) |
yes (unless --demo) |
| Method | --method {median,quantile,total,pqn,log} (default median) |
no |
| Output | Path | Notes |
|---|---|---|
| Normalised table | tables/normalized.csv |
wide form, same shape as input |
| Report | report.md + result.json |
n_features, n_samples, method |
Flow
- Load CSV (
--input <features.csv>) or generate a demo (--demo). - Dispatch on
--method; reject unknown viaValueError("Unknown method: {method}. Choose from {SUPPORTED_METHODS}")atmetabolomics_normalization.py:151. - Apply the chosen normalisation; write
tables/normalized.csv(metabolomics_normalization.py:258) +report.md+result.json.
Gotchas
--methodchoices are exact:median/quantile/total/pqn/log.metabolomics_normalization.py:36definesSUPPORTED_METHODS. Aliases liketic(=total) are NOT accepted — passtotalexplicitly. (Note: siblingmetabolomics-quantificationacceptsticas a normalize choice; the two skills' vocabularies differ.)--inputREQUIRED unless--demo.metabolomics_normalization.py:248raisesValueError("--input required when not using --demo").pqnrequires non-zero reference values. Probabilistic Quotient Normalisation divides by per-feature reference (median sample); features with all zeros yield NaN quotients. Pre-filter zero-prevalent features.logislog2(x+1). Negative values raise / propagate NaN. Pre-clip upstream.- No imputation is performed. NaN values pass through normalisation untouched (most methods skipna;
quantilemay NaN-propagate). Pre-impute withmetabolomics-quantificationif NaNs are problematic. - Method-specific behaviour with NaN may differ.
median/totalusenp.nanmedian/np.nansum;quantilemay collapse rows with NaN;pqnexpects all-numeric.
Key CLI
# Demo (median normalize)
python omicsclaw.py run metabolomics-normalization --demo --output /tmp/norm_demo
# PQN
python omicsclaw.py run metabolomics-normalization \
--input features.csv --output results/ --method pqn
# Total (TIC)
python omicsclaw.py run metabolomics-normalization \
--input features.csv --output results/ --method total
# log2(x+1)
python omicsclaw.py run metabolomics-normalization \
--input features.csv --output results/ --method log
See also
references/parameters.md— every CLI flagreferences/methodology.md— per-method semantics, when each winsreferences/output_contract.md—tables/normalized.csvschema- Adjacent skills:
metabolomics-quantification(parallel — combined impute + normalise),metabolomics-xcms-preprocessing(upstream),metabolomics-peak-detection(upstream),metabolomics-statistics(downstream — multi-group testing),metabolomics-de(downstream — two-group DE)
Установить metabolomics-normalization в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл metabolomics-normalization?
Load when normalising a feature × sample metabolomics CSV via median, quantile, total (sum), PQN (probabilistic quotient), or log methods — emits a normalised wide-form table. Skip when also imputing (use `metabolomics-quantification`) or for raw spectra (run `metabolomics-xcms-preprocessing` first).
Как установить скилл metabolomics-normalization?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл metabolomics-normalization запускает скрипты?
Нет, скилл состоит только из инструкций (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