enrichment

enrichment is a skill for Claude Code, Codex from inflexa-ai/inflexa. It costs 29 tokens per session (1,830 once invoked), scanned A, original, Apache-2.0.

A guide for finding biological pathways or gene groups associated with gene-expression results. It explains methods such as GSEA, which uses a ranked gene list, ORA, which tests an unranked list, and per-sample pathway scoring.

In plain words
What is it for?
Use it to test enriched pathways, score pathway activity per sample, and infer transcription-factor activity from ranked or selected gene lists.
Why use it?
It helps match the method to the form of the input and avoids unreliable results from missing background genes or unavailable online databases. It also distinguishes group-level enrichment from pathway scores for individual samples.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to test enriched pathways, score pathway activity per sample, and infer transcription-factor activity from ranked or selected gene lists.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/inflexa-ai/inflexa/enrichment
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add inflexa-ai/inflexa --skill enrichment
Clone the repo
git clone --depth 1 https://github.com/inflexa-ai/inflexa

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for enrichment

README.md
[![agentmods](https://agentmods.dev/badge/skills/inflexa-ai/inflexa/enrichment/github.svg)](https://agentmods.dev/skills/inflexa-ai/inflexa/enrichment)
Your own site
<a href="https://agentmods.dev/skills/inflexa-ai/inflexa/enrichment"><img src="https://agentmods.dev/badge/skills/inflexa-ai/inflexa/enrichment/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for enrichment

Your own site · 80×15
<a href="https://agentmods.dev/skills/inflexa-ai/inflexa/enrichment"><img src="https://agentmods.dev/badge/skills/inflexa-ai/inflexa/enrichment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,830 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.01830
Opus 5 $0.00015 $0.00915
Sonnet 5 $0.00006 $0.00366
Haiku 4.5 $0.00003 $0.00183

Measured yesterday against content hash db628e378994, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

enrichment scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/enrichment/SKILL.md · 113 lines

How it starts

The opening of the file, as written. The whole thing — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Enrichment & Functional Annotation

This skill guides method selection and execution for gene set enrichment, over-representation analysis, per-sample pathway scoring, and transcription factor activity inference.

Method Selection Decision Tree

Choose the method based on your input data and analytical goal:

  1. Input is a ranked gene list (with scores, fold-changes, or test statistics)

    • Use GSEA via gseapy.prerank() (Python) or fgsea::fgsea() (R via rpy2).
    • Rank by signed statistic (e.g., sign(log2FC) * -log10(pvalue)), not by p-value alone.
  2. Input is an unranked gene list (e.g., DE genes at FDR < 0.05)

    • Use ORA via gseapy.enrich() (Python) or clusterProfiler::enrichGO() (R via rpy2). Do NOT use enrichKEGG() — KEGG is not staged and the call needs network access it will not get.
    • Pass gene sets as a file resolved from the reference data available to you, never as an Enrichr library name string — those trigger HTTP requests and fail.
    • ALWAYS supply the background gene set (all expressed/detected genes).
  3. Need per-sample pathway activity scores

    • Use ssGSEA via gseapy.ssgsea() for MSigDB-style gene sets.
    • Use GSVA via gsva() (R via rpy2) when downstream analysis expects continuous scores per pathway per sample.
  4. Pathway activity on AnnData (single-cell or bulk)

    • Use decoupler dc.mt.ulm() or dc.mt.mlm() with the PROGENy model.
    • Results integrate directly into adata.obsm (score_ulm / padj_ulm) for downstream plotting and clustering.
  5. Transcription factor activity inference

    • Use decoupler with CollecTRI regulon resource (NOT enrichment databases).
    • This is TF activity, not pathway enrichment -- use the correct framing.

Gene Set Database Selection

Ask for a database by name and resolve it from the reference data available to you — never assume a path, a filename, or a format. What is provisioned varies per environment, so confirm what you have before committing to a method.

Read the full file on GitHub · 113 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 113 lines · 29 tokens per session scan A db628e378994

Subscribe to this mod's changes

enrichment is a skill published in the GitHub repository inflexa-ai/inflexa (33 stars, last pushed yesterday), licensed Apache-2.0. It adds 29 tokens to every session and 1,830 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-09.

Related

Other skills, from other repositories

bulkrna-enrichment

Load when running pathway / GO term enrichment on a bulk RNA-seq DE result list. Skip when the input is single-cell (use sc-enrichment); the input is spatial (use spatial-enrichment); metabolite pathways (use metabolomics-pathway-enrichment).

TianGzlab/OmicsClaw · 59 tokens

sc-enrichment

Load when running bulk-style pathway enrichment (ORA / GSEA / GSEA-R / GSVA-R) on a per-group ranked DE / marker list against a gene-set library. Skip when computing per-cell pathway scores in-place (use sc-pathway-scoring); de-novo gene-program discovery (use sc-gene-programs).

TianGzlab/OmicsClaw · 71 tokens

spatial-enrichment

Pathway and gene set enrichment analysis for spatial transcriptomics data.

ShangBioLab/SpatialClaw · 18 tokens

spatial-enrichment

Load when running pathway / gene-set enrichment per cluster on a preprocessed spatial AnnData via Enrichr (over-representation), GSEA (preranked), or ssGSEA (per-cell scores). Skip when ranking spatially variable genes (use spatial-genes); comparing pathways across conditions (use spatial-condition).

TianGzlab/OmicsClaw · 69 tokens

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); rank-based GSEA.

TianGzlab/OmicsClaw · 70 tokens

metabolomics-pathway-enrichment

Load when running over-representation analysis (ORA) on a metabolite list via Fisher's exact test against a built-in 9-pathway DEMO dictionary, BH-FDR adjusted. Skip when needing real KEGG / Reactome (this skill is demo-only); mummichog / fella topology methods (CLI accepts them but only ORA runs).

TianGzlab/OmicsClaw · 84 tokens