proteomics-enrichment
БесплатноБез исполняемых скриптовНе проверенLoad when running over-representation analysis (ORA) on a list of proteins via Fisher's exact test against a built-in 8-pathway DEMO dictionary, with BH-FDR…
от mdbabumiamssm★ 36 звёзд на GitHubОб этом скилле
proteomics-enrichment
When to use
The user has a CSV listing proteins of interest (e.g. the
significant subset from proteomics-de, or the PTM-target list
from proteomics-ptm) and wants over-representation enrichment
via Fisher's exact test, with BH-adjusted FDR.
This is a demo-only enrichment. The pathway database is the
hard-coded 8-pathway DEMO_PATHWAYS dict at
prot_enrichment.py:40-49 (each pathway has 5 fixed members).
There is NO CLI flag to load a real KEGG / Reactome / MSigDB
library. For production proteomics enrichment, export your
significant-protein list and call bulkrna-enrichment (which has
real ORA + GSEA + ssGSEA backends with hosted libraries).
Inputs & Outputs
| Input | Format | Required |
|---|---|---|
| Protein list | .csv with protein_id column (or any first column treated as gene IDs) |
yes (unless --demo) |
| Method | --method ora (only choice) |
no |
| Species | --species <name> (default human, RECORDED ONLY — does not switch DBs) |
no |
| Background size | --background-size <int> (default = `max(union(input, pathway-genes), |
input |
| Output | Path | Notes |
|---|---|---|
| Enrichment results | tables/enrichment_results.csv |
per-pathway pvalue, fdr (BH-adjusted), gene counts |
| Report | report.md + result.json |
summary["n_significant"] (FDR < 0.05); summary["n_pathways_tested"] = 8 |
Flow
- Load CSV (
--input <proteins.csv>) or generate a demo (--demo). - Pick the gene-list column:
protein_idif present, otherwise the first column (prot_enrichment.py:256). - For each pathway in
DEMO_PATHWAYS(prot_enrichment.py:40-49), run Fisher's exact test (prot_enrichment.py:138-150); apply BH FDR adjustment (prot_enrichment.py:167). - Write
tables/enrichment_results.csv(prot_enrichment.py:267) +report.md+result.json(:277).
Gotchas
- Pathway database is HARD-CODED 8 demo pathways.
prot_enrichment.py:40-49defines 8 pathways × 5 genes each (e.g. cell-cycle, apoptosis, TCA-cycle). There is no CLI for loading real databases. Then_pathways_tested = 8inresult.json(:271) is a constant, not a function of input. For real enrichment, route tobulkrna-enrichment. - Method is Fisher's exact, not hypergeometric. Mathematically equivalent for over-representation, but the script and report (
prot_enrichment.py:4, 138-150) consistently say "Fisher's". Hypergeometric is the same distribution but the "Fisher's exact test" naming is what shows in the report. - Default background ≠ a real proteome size.
prot_enrichment.py:126-128setsbackground_size = max(len(gene_set | all_pathway_genes), len(gene_set) + 1)— for the demo's 8 pathways that's ~40 + n_input. Always pass--background-size N(e.g. 20000 for human, 8000 for your detected proteome) for real enrichment — the auto-default produces meaningless p-values on a real dataset. --speciesis RECORDED-ONLY.prot_enrichment.py:237-241accepts--speciesbut the value is never used to switch databases or filter pathways — it's logged intoresult.jsonfor reproducibility only.- Gene-list column auto-detection:
protein_idfirst, else first column.prot_enrichment.py:256usesgene_col = "protein_id" if "protein_id" in df.columns else df.columns[0]. If your CSV has multiple ID columns (gene,uniprot,symbol), onlyprotein_idis preferred — pre-rename the column you want enriched. --inputREQUIRED unless--demo.prot_enrichment.py:251raisesValueError("--input required when not using --demo").
Key CLI
# Demo (8-pathway DEMO_PATHWAYS dict)
python omicsclaw.py run proteomics-enrichment --demo --output /tmp/enr_demo
# Real protein list — pass real background size!
python omicsclaw.py run proteomics-enrichment \
--input significant.csv --output results/ \
--background-size 20000
# For real pathway databases, use bulkrna-enrichment instead:
# python omicsclaw.py run bulkrna-enrichment --input significant.csv ...
See also
references/parameters.md— every CLI flagreferences/methodology.md— Fisher's exact ORA, BH FDR, demo-DB caveatsreferences/output_contract.md—tables/enrichment_results.csvschema- Adjacent skills:
proteomics-de(upstream — produces significant protein lists),proteomics-ptm(upstream — PTM-target lists),proteomics-quantification(upstream — protein-level abundance),bulkrna-enrichment(parallel — REAL pathway databases + GSEA + ssGSEA)
Установить proteomics-enrichment в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл proteomics-enrichment?
Load when running over-representation analysis (ORA) on a list of proteins via Fisher's exact test against a built-in 8-pathway DEMO dictionary, with BH-FDR correction. Skip when needing a real pathway database (this skill is demo-only — use `bulkrna-enrichment` for real KEGG / Reactome / MSigDB) or for rank-based GSEA.
Как установить скилл proteomics-enrichment?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл proteomics-enrichment запускает скрипты?
Нет, скилл состоит только из инструкций (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