metabolomics-quantification
БесплатноБез исполняемых скриптовНе проверенLoad when imputing missing values (min / median / KNN) and normalising (TIC / median / log) a feature × sample metabolomics CSV. Skip when only normalisation…
от mdbabumiamssm★ 36 звёзд на GitHubОб этом скилле
metabolomics-quantification
When to use
The user has a feature × sample metabolomics intensity table and
wants missing-value imputation followed by normalisation, in a
single pass. Imputation: min (1/2 of column min), median
(per-column median), knn (sklearn KNNImputer). Normalisation:
tic (Total Ion Current per sample), median (per-sample
median), log (log2(x+1)).
Sample columns are auto-detected by name prefix sample /
intensity. For just normalisation use metabolomics-normalization;
for raw LC-MS use metabolomics-xcms-preprocessing.
Inputs & Outputs
| Input | Format | Required |
|---|---|---|
| Feature × intensity table | .csv with sample columns starting sample or intensity |
yes (unless --demo) |
| Imputation | --impute {min,median,knn} (default min) |
no |
| Normalisation | --normalize {tic,median,log} (default tic) |
no |
| Output | Path | Notes |
|---|---|---|
| Quantified features | tables/quantified_features.csv |
imputed + normalised feature × sample table |
| Report | report.md + result.json |
n_features, n_samples, impute, normalize |
Flow
- Load CSV (
--input <features.csv>) or generate a demo (--demo). - Auto-detect sample columns via
c.startswith("sample") or c.startswith("intensity")(met_quantify.py:72-84); raiseValueError("Could not auto-detect sample columns in the input file.")at:174if none found. - Impute missing values per
--impute(min/median/knn); reject unknown method at:187withValueError("Unknown impute method: ..."). - Normalise per
--normalize(tic/median/log); reject unknown method at:193. - Write
tables/quantified_features.csv(met_quantify.py:294) +report.md+result.json.
Gotchas
- Sample-column auto-detection is case-SENSITIVE prefix match.
met_quantify.py:74-84usesc.startswith("sample") or c.startswith("intensity").Sample_1(capital S) does NOT match — pre-rename to lowercase or usemetabolomics-peak-detection's--sample-prefix(no equivalent flag here). - No sample columns ⇒
ValueError.met_quantify.py:174raisesValueError("Could not auto-detect sample columns in the input file.")after both detection passes fail. --inputREQUIRED unless--demo.met_quantify.py:286raisesValueError("--input required when not using --demo").knnimputation requires sklearn. Available by default in OmicsClaw env. Imputes usingKNNImputer(n_neighbors=5).lognormalisation islog2(x+1). Zero → 0 (preserves zeros); negative values raise (silently propagate NaN). Pre-clip negatives upstream.- Imputation runs BEFORE normalisation. This means
minimputation uses unnormalised column min — re-running with a different--normalizedoes NOT change imputed-cell values. To get norm-aware imputation, runmetabolomics-normalizationstandalone first, then use--impute medianhere on already-normalised data.
Key CLI
# Demo
python omicsclaw.py run metabolomics-quantification --demo --output /tmp/quant_demo
# Real intensity table (default min impute + TIC normalize)
python omicsclaw.py run metabolomics-quantification \
--input features.csv --output results/
# KNN impute + median normalize
python omicsclaw.py run metabolomics-quantification \
--input features.csv --output results/ \
--impute knn --normalize median
# log2(x+1) only
python omicsclaw.py run metabolomics-quantification \
--input features.csv --output results/ \
--impute median --normalize log
See also
references/parameters.md— every CLI flagreferences/methodology.md— imputation / normalisation method semanticsreferences/output_contract.md—tables/quantified_features.csvschema- Adjacent skills:
metabolomics-xcms-preprocessing(upstream),metabolomics-peak-detection(upstream),metabolomics-normalization(parallel — normalisation only),metabolomics-statistics(downstream — multi-group testing),metabolomics-de(downstream — two-group DE)
Установить metabolomics-quantification в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл metabolomics-quantification?
Load when imputing missing values (min / median / KNN) and normalising (TIC / median / log) a feature × sample metabolomics CSV. Skip when only normalisation is needed (use `metabolomics-normalization`) or when the input is raw spectra (run `metabolomics-xcms-preprocessing` first).
Как установить скилл metabolomics-quantification?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл metabolomics-quantification запускает скрипты?
Нет, скилл состоит только из инструкций (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