metabolomics-de
БесплатноБез исполняемых скриптовНе проверенLoad when running two-group metabolomics DE (t-test + log2FC + BH-FDR + PCA) on a feature × sample CSV using `--group-a-prefix` / `--group-b-prefix` (default…
от mdbabumiamssm★ 36 звёзд на GitHubОб этом скилле
metabolomics-de
When to use
The user has a feature × sample metabolomics CSV with column-name
prefixes encoding the two-group design (default ctrl for control,
treat for treatment) and wants univariate t-test + log2FC +
BH-FDR + a PCA scatter as the canonical "two-group differential
analysis" output.
--group-a-prefix and --group-b-prefix are user-tunable
(defaults ctrl and treat). For more test backends
(Wilcoxon / ANOVA / Kruskal) use metabolomics-statistics.
Inputs & Outputs
| Input | Format | Required |
|---|---|---|
| Feature × sample table | .csv with sample columns starting ctrl* and treat* (or matching the user-supplied prefixes) |
yes (unless --demo) |
| Group prefixes | --group-a-prefix <str> (default ctrl), --group-b-prefix <str> (default treat) |
no |
| Output | Path | Notes |
|---|---|---|
| Full DE results | tables/differential_features.csv |
per-feature pvalue, fdr (BH), log2fc, group means |
| Significant subset | tables/significant_features.csv |
filtered by hard-coded fdr < 0.05 |
| PCA scatter (when ≥ 3 samples per group) | figures/pca_scores.png |
best-effort, may be skipped on tiny inputs |
| Report | report.md + result.json |
n_features, n_significant |
Flow
- Load CSV (
--input <features.csv>) or generate a demo atoutput_dir/<demo>.csv(met_diff.py:279). - Filter group columns by prefix (
met_diff.py:287-288); raiseValueError("Could not find columns starting with '...' / '...'")at:291if either group is empty. - Run univariate t-test →
pvalue+ BH-adjustedfdr+ log2FC (met_diff.py:run_univariate). - Filter
fdr < 0.05(HARD-CODED,met_diff.py:303-304) →tables/significant_features.csv. - Best-effort PCA on
group_a_cols + group_b_cols→figures/pca_scores.png; failures are logged not raised. - Write
tables/differential_features.csv(met_diff.py:301) +tables/significant_features.csv(:305) + report + result.json.
Gotchas
- Default prefixes are
ctrlandtreat.met_diff.py:271-272defaults--group-a-prefix=ctrland--group-b-prefix=treat. Real input column names likeControl_1/Treated_1(capital, different word) need explicit--group-a-prefix Control_ --group-b-prefix Treated_. - Empty group ⇒
ValueError.met_diff.py:291-294raisesValueError("Could not find columns starting with '...' / '...'")when either filter returns no columns. Sanity-check the prefixes. - FDR threshold is HARD-CODED at 0.05.
met_diff.py:303-304filtersde_result[de_result["fdr"] < 0.05]— there is NO--alphaflag. Usemetabolomics-statisticsif you need a tunable significance threshold. --inputREQUIRED unless--demo.met_diff.py:282raisesValueError("--input required when not using --demo").- PCA is best-effort.
met_diff.py:309-310wrapsrun_pcaintry / except— failures (e.g. < 3 samples per group, all-NaN features) only log a warning. The DE table is still written. - Test backend is fixed at t-test (Welch). No
--methodflag here — for backend choice use siblingmetabolomics-statistics.
Key CLI
# Demo
python omicsclaw.py run metabolomics-de --demo --output /tmp/de_demo
# Real CSV with default ctrl_/treat_ prefixes
python omicsclaw.py run metabolomics-de \
--input quantified_features.csv --output results/
# Custom prefixes
python omicsclaw.py run metabolomics-de \
--input my_features.csv --output results/ \
--group-a-prefix Control_ --group-b-prefix Treated_
See also
references/parameters.md— every CLI flagreferences/methodology.md— t-test + log2FC + BH FDR conventions, PCA caveatsreferences/output_contract.md—tables/differential_features.csvschema- Adjacent skills:
metabolomics-statistics(parallel — tunable backends +--alpha),metabolomics-quantification(upstream — impute + normalise),metabolomics-normalization(upstream — normalise only),metabolomics-pathway-enrichment(downstream — pathway analysis on significant features)
Установить metabolomics-de в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл metabolomics-de?
Load when running two-group metabolomics DE (t-test + log2FC + BH-FDR + PCA) on a feature × sample CSV using `--group-a-prefix` / `--group-b-prefix` (default `ctrl` / `treat`). Skip when needing tunable test backends (use `metabolomics-statistics` for Wilcoxon / ANOVA / Kruskal) or for raw spectra.
Как установить скилл metabolomics-de?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл metabolomics-de запускает скрипты?
Нет, скилл состоит только из инструкций (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