proteomics-de
Load when computing two-group differential protein abundance (group2 vs group1, log2FC + p-value + BH-adjusted FDR) via Welch t-test, equal-variance t-test…
от lilinji★ 18 звёзд на GitHub
Установить proteomics-de в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
proteomics-de
When to use
The user has a wide protein × sample CSV (rows = proteins as index, columns = samples) and wants two-group differential abundance. Three backends:
ttest(default) — Student's two-sample t-test (equal variance).welch— Welch's t-test (unequal variance).mann_whitney— non-parametric Mann-Whitney U.
All return per-protein log2fc (group2 vs group1), pvalue, and
BH-adjusted padj. --alpha controls significance threshold for
the tables/significant.csv shortlist; --log2fc-threshold
optionally adds an absolute log2FC filter.
For multi-condition DE, run pairwise contrasts manually. For label-based TMT linear-mixed models, use MSstats / limma in R.
Inputs & Outputs
Inputs
- File types:
.csv - Accepts artifact
proteomics.abundance_matrix(csv)
Outputs
tables/differential_abundance.csvtables/significant.csvreport.mdresult.json- Produces artifact
proteomics.differential_resultsastables/differential_abundance.csv(csv)
Flow
- Load CSV with
pd.read_csv(args.input_path, index_col=0)(proteomics_de.py:289); split columns at midpoint — first half = group1, second half = group2 (:290-292). NO CLI flag for prefix/suffix. - Dispatch on
--method(proteomics_de.py:295); per-protein test →log2fc(mean(log2(g2)) − mean(log2(g1))) + rawpvalue. - Apply BH FDR adjustment (
proteomics_de.py:137/:178) →padjcolumn. - Filter
padj < args.alpha(and|log2fc| ≥ args.log2fc_thresholdif > 0) →tables/significant.csv. - Write
tables/differential_abundance.csv(proteomics_de.py:299) +tables/significant.csv(:306) +report.md+result.json(:322).
Gotchas
- Group assignment is by COLUMN POSITION — first half / second half.
proteomics_de.py:290-292splitsdata.columns[:mid]vsdata.columns[mid:]. There is NO CLI flag for control / treatment prefixes; if your CSV columns are interleaved, pre-sort them. Demo usescontrol_1..Nthentreatment_1..N(:204-205). - Index column 0 is treated as the protein ID.
pd.read_csv(args.input_path, index_col=0)(proteomics_de.py:289) is unconditional — make sure your protein-ID column is the FIRST column in the CSV. - Unknown
--methodraisesValueError.proteomics_de.py:192rejects values outside("ttest", "welch", "mann_whitney")— argparsechoices=enforces this at parse time too. --inputREQUIRED unless--demo.proteomics_de.py:288raisesValueError("--input required").- log2FC direction: group2 minus group1. Positive
log2fcmeans group2 > group1. If your "control" is in the second half of columns, you'll get inverted signs — the script does NOT auto-detect direction. - NaN handling differs per backend.
ttest/welch(proteomics_de.py:116-118) drop rows where either group's mean is non-finite (np.isfinitefilter).mann_whitney(:150-151) additionally drops0values (g1 > 0,g2 > 0) — small placeholder intensities silently disappear from Mann-Whitney runs but stay in t-test runs. Pre-impute zeros if you need consistent behaviour.
Key CLI
# Demo
python omicsclaw.py run proteomics-de --demo --output /tmp/de_demo
# Real CSV (first half = group1, second half = group2)
python omicsclaw.py run proteomics-de \
--input protein_abundance.csv --output results/ \
--method welch --alpha 0.05 --log2fc-threshold 1.0
# Mann-Whitney (non-parametric)
python omicsclaw.py run proteomics-de \
--input protein_abundance.csv --output results/ \
--method mann_whitney --alpha 0.01
See also
references/parameters.md— every CLI flagreferences/methodology.md— t-test / Welch / Mann-Whitney trade-offs, BH FDRreferences/output_contract.md—tables/differential_abundance.csvschema- Adjacent skills:
proteomics-quantification(upstream — produces protein abundance),proteomics-data-import(upstream — schema normalisation),proteomics-enrichment(downstream — pathway enrichment on significant proteins),proteomics-ptm(parallel — PTM site analysis)
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- proteomics_de.py
- references/methodology.md
- references/output_contract.md
- references/parameters.md
- skill.yaml
FAQ
Что делает скилл proteomics-de?
Load when computing two-group differential protein abundance (group2 vs group1, log2FC + p-value + BH-adjusted FDR) via Welch t-test, equal-variance t-test, or Mann-Whitney on a wide protein × sample CSV. Skip when you need multi-condition DE (run pairwise contrasts manually); label-based TMT linear-mixed models.
Как установить скилл proteomics-de?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл proteomics-de запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
AnthropicCreate 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…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…