bio-pathway-enrichment-foundations
Chooses the enrichment generation before any tool runs, mapping the input shape to a method class - a pre-selected gene list plus a background to…
от FridrichMethod★ 17 звёзд на GitHub
Установить bio-pathway-enrichment-foundations в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Version Compatibility
Reference examples tested with: clusterProfiler 4.18+, org.Hs.eg.db 3.22+.
Before using code patterns, verify installed versions match. If versions differ:
- R:
packageVersion('<pkg>')then?function_nameto verify parameters
If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.
This skill is the conceptual spine for the category; it routes the per-tool calls to the sibling skills rather than running them, so the binding versions are the clusterProfiler stack the siblings share. Note that KEGG and WikiPathways query LIVE databases (internet-dependent, not reproducible across data releases) while GO and Reactome use local version-pinned annotation - record the database release and access date for any result.
Enrichment Foundations -- Choosing the Generation and Defending the Result
"Which pathways are enriched here?" -> Pick the enrichment GENERATION from the input shape, make the null explicit, and run the trustworthiness checklist - because an enrichment result is not a discovery, it is a claim about a gene list versus a specific database version under a null that was probably not chosen on purpose.
- R: assemble the input, decide ORA (
enrichGO/enrichKEGG) vs GSEA (gseGO/GSEA) by whether a ranking exists, then defend the background, FDR, and leading edge
Scope: the meta-decision - which generation (ORA/FCS/topology) is valid, which null each tool computes, which database fits the question, and whether the result survives the checklist. ORA mechanics -> go-enrichment. GSEA mechanics, ranking metric, CAMERA/ROAST -> gsea. Per-database content, IDs, topology -> kegg-pathways, reactome-pathways, wikipathways. Redundancy collapse and plots -> enrichment-visualization. The gene list / ranking statistic itself -> differential-expression/de-results.
The Single Most Important Modern Insight -- An Enrichment Result Is a Claim Conditioned on a Database, a Universe, and a Null, Not a Discovery
The same gene list, run against a different database version, with a different background universe, under a competitive instead of a self-contained null, with gene-permutation instead of phenotype-permutation, gives a different list of "enriched pathways" - and all of them can be technically valid p-values, because they answer DIFFERENT questions (Goeman & Buhlmann 2007 Bioinformatics 23:980). The decision-grade posture treats the deliverable as a defended claim, not a printout, and three facts drive every choice:
- The first decision is the GENERATION, and the input sets it, not taste. A pre-selected list with no ranking -> ORA (1st generation, hypergeometric). A ranked statistic for nearly all genes -> functional class scoring / GSEA (2nd generation), preferred over ORA for that input shape (do not binarize a ranking into a list to force ORA). A ranked list plus a curated signed signaling graph -> pathway topology / SPIA (3rd generation) (Khatri 2012 PLoS Comput Biol 8:e1002375).
- The null is usually wrong by default and unannounced. ORA and every clusterProfiler/fgsea preranked GSEA test a COMPETITIVE null by GENE sampling, which assumes genes are independent. They are not - co-regulated pathway genes are positively correlated, so the set-statistic variance is underestimated and the p-values are anti-conservative (Goeman & Buhlmann 2007). Treat these as a discovery screen; CAMERA (Wu & Smyth 2012 Nucleic Acids Res 40:e133) is the correlation-aware fix.
- The background, not the gene list, decides ORA significance. The hypergeometric p-value is fully determined by the universe (the denominator). Using the whole genome when only the expressed/testable genes were eligible to be DE is the single most common published error (Wijesooriya 2022 PLoS Comput Biol 18:e1009935), and clusterProfiler's default universe is silently all-annotated-genes.
The Three Generations (Khatri Taxonomy)
The classification every method falls into, set by the available input (Khatri 2012 PLoS Comput Biol 8:e1002375).
| Generation | Input required | Question / mechanism | Owns / route to |
|---|---|---|---|
| 1st - Over-Representation (ORA) | a gene LIST + a background universe | is set S over-represented among the hits more than chance? hypergeometric / Fisher on a 2x2 table | enrichGO/enrichKEGG/enrichPathway/enrichWP -> go-enrichment, kegg-pathways, reactome-pathways, wikipathways |
| 2nd - Functional Class Scoring (FCS) | a per-gene STATISTIC for (nearly) all genes, no cutoff | are set S genes systematically shifted along the ranking? running-sum ES + permutation | gseGO/gseKEGG/GSEA/fgsea -> gsea |
| 3rd - Pathway Topology (PT) | ranked list + a curated signed/directed graph | is the pathway IMPACTED given where in the cascade the change lands? perturbation propagation | SPIA/graphite (KEGG/Reactome, model |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- examples/method_selection_diagnostic.R
- usage-guide.md
FAQ
Что делает скилл bio-pathway-enrichment-foundations?
Chooses the enrichment generation before any tool runs, mapping the input shape to a method class - a pre-selected gene list plus a background to over-representation analysis (ORA, hypergeometric), a ranked statistic for all genes to gene set enrichment (GSEA), a signed signaling topology to pathway-topology (SPIA) - then making the null explicit (competitive vs self-contained, gene vs subject sampling) and running a trustworthiness checklist (testable-gene universe, FDR, redundancy collapse, leading-edge check, version reporting). Covers why every clusterProfiler GSEA is the inter-gene-correlation-uncorrected competitive null, why the background not the gene list decides ORA significance, and why no method is universally best. Use when deciding ORA vs GSEA vs topology, which gene-set DB, whether a result is trustworthy, or which null a tool computes. For ORA see go-enrichment, GSEA see gsea, databases kegg-pathways/reactome-pathways/wikipathways; the ranking comes from differential-expression/de-results.
Как установить скилл bio-pathway-enrichment-foundations?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bio-pathway-enrichment-foundations запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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…