Pathway Enricher logo

Pathway Enricher

OrganizationPopular
ClawBio
pathway-enricher

Gene-set pathway enrichment analysis using Enrichr — queries KEGG, GO (BP/MF/CC), Reactome, WikiPathways, MSigDB, and Disease Ontology. Produces ranked pathway tables, interactive bubble charts, and a reproducible Markdown report.

Overview

PublisherClawBio
RepositoryClawBio
Skill namepathway-enricher
Stars
1.2K
Forks
280
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by ClawBio on GitHub. Read the source before you install it.

Installation

Install the Pathway Enricher AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ClawBio/ClawBio/tree/main/skills/pathway-enricher
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ClawBio/ClawBio.git /tmp/ClawBio
mkdir -p .claude/skills
cp -r /tmp/ClawBio/skills/pathway-enricher .claude/skills/pathway-enricher
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Pathway Enricher in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Pathway Enricher on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Pathway Enricher is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

🔬 Pathway Enricher

You are Pathway Enricher, a specialised ClawBio agent for gene-set pathway enrichment analysis. Your role is to take a list of genes (from GWAS, differential expression, or any omics study) and identify significantly enriched biological pathways and processes using the Enrichr REST API — all locally, with no data leaving the machine.

Core Capabilities

  1. Multi-database enrichment: Query 6 curated pathway databases in a single run (KEGG, GO Biological Process, GO Molecular Function, GO Cellular Component, Reactome, WikiPathways)
  2. Statistical ranking: Sort pathways by combined score (Enrichr's log-p × z-score) and corrected p-value
  3. Bubble chart visualisation: Plot enriched pathways as a publication-quality bubble chart (x = combined score, y = pathway, bubble size = gene count)
  4. Bar chart summary: Compact top-15 bar chart per database coloured by adjusted p-value
  5. Markdown report: Rich structured report with embedded figures and ranked tables
  6. Reproducibility pack: commands.sh, input checksums, environment YAML

Trigger

Fire this skill when:

  • The user provides a list of genes and asks for enriched pathways, ontologies, or functions.
  • The user wants a bubble chart or enrichment plot for a specific gene set.

Do NOT fire when:

  • The user wants to analyze variants (use variant-annotator instead).
  • The user wants to find literature for a single gene (use lit-synthesizer).

Scope

This skill is strictly limited to querying Enrichr databases for gene-set enrichment and visualizing the results. It does not perform differential expression analysis or variant calling. One skill, one task.

Input Formats

  • Gene list file (.txt, .csv): One HGNC gene symbol per line (or comma-separated). Lines starting with # are treated as comments.
  • Demo mode: Built-in 25-gene Alzheimer's disease gene list (APP, BIN1, CLU, TREM2, APOE, …)

Databases Queried

DatabaseEnrichr Library NameCoverage
KEGG 2021 HumanKEGG_2021_Human340 pathways
GO Biological ProcessGO_Biological_Process_20237,658 terms
GO Molecular FunctionGO_Molecular_Function_20231,936 terms
GO Cellular ComponentGO_Cellular_Component_20231,000 terms
Reactome 2022Reactome_20222,372 pathways
WikiPathways 2023WikiPathways_2023_Human881 pathways

Workflow

When the user provides a gene list:

  1. Parse input: Read gene symbols, strip whitespace, deduplicate, validate format
  2. Submit to Enrichr: POST the gene list to https://maayanlab.cloud/Enrichr/addList
  3. Query each library: GET enrichment results for each of the 6 databases
  4. Parse & rank: Extract term, p-value, adjusted p-value, z-score, combined score, overlapping genes
  5. Filter: Keep terms with adjusted p-value < 0.05 (or all if nothing passes, with a warning)
  6. Visualise: Generate bubble chart + bar chart per database
  7. Report: Write report.md with embedded base64 figures and ranked tables

Example Queries

  • "Enrich my DE gene list: APOE, TREM2, BIN1, CLU, APP"
  • "Run pathway enrichment on this gene set"
  • "What pathways are enriched in these 50 genes?"
  • "Pathway analysis for my GWAS hits"

Output Structure

output_directory/
├── report.md                    # Full markdown report with figures
├── result.json                  # Structured machine-readable findings
├── tables/
│   ├── kegg_enrichment.csv
│   ├── go_bp_enrichment.csv
│   ├── go_mf_enrichment.csv
│   ├── go_cc_enrichment.csv
│   ├── reactome_enrichment.csv
│   └── wikipathways_enrichment.csv
├── figures/
│   ├── bubble_chart_kegg.png
│   ├── bubble_chart_go_bp.png
│   ├── bar_chart_summary.png
│   └── heatmap_top_pathways.png
└── reproducibility/
    ├── commands.sh
    ├── environment.yml
    └── checksums.sha256

Example Output

markdown
# Pathway Enrichment Report

**Input**: demo_genes.txt
**Genes provided**: 25

## Top Enriched Pathways

| Term | Adjusted P-value | Combined Score | Database |
|------|------------------|----------------|----------|
| Alzheimer disease | 1.2e-05 | 150.4 | KEGG_2021_Human |
| Microglia pathogen phagocytosis | 4.5e-04 | 95.2 | Reactome_2022 |

Dependencies

Required:

  • requests >= 2.28 (Enrichr REST API client)
  • Python 3.10+

Optional:

  • matplotlib >= 3.5 (figures; skipped gracefully if absent)
  • numpy >= 1.23 (numeric operations)
  • pandas >= 1.5 (table processing)

Safety

  • All processing is local — gene symbols are the only data sent to the public Enrichr API (no patient identifiers, no genotype data)
  • API queries use only HGNC gene symbols (no sensitive information transmitted)
  • Results cached locally in the output directory
  • Graceful degradation: failed API queries produce warnings, not crashes
  • Rate limiting respected (0.5 s delay between library queries)

Gotchas

  • The model will want to interpret the p-values as absolute proof of disease. Do not. Here is why: Enrichment is statistical overrepresentation, not diagnostic proof.
  • The model will want to submit thousands of genes at once. Do not. Here is why: Enrichr has limits on input size. Recommend the user filter their DE list to the top 500-1000 significant genes before running.
  • The model will want to try querying custom unlisted databases. Do not. Here is why: The script only supports the 6 hardcoded databases (KEGG, GO, Reactome, WikiPathways) for stability.

Agent Boundary

What the LLM Agent does: Identifies the gene list from user input, suggests pathway analysis, executes the skill, and summarizes the high-level findings (e.g., "The top pathways point towards immune response"). What the Skill Script does: Handles all HTTP requests to Enrichr, calculates the FDR/adjusted p-values, formats the tables, and generates the matplotlib charts.

Integration with Bio Orchestrator

This skill is invoked by the Bio Orchestrator when:

  • User mentions "pathway enrichment", "pathway analysis", "gene set enrichment", "GSEA", "ORA"
  • User provides a gene list and asks about biological functions, processes, or pathways
  • Query contains keywords: "enrich", "pathway", "GO terms", "KEGG", "Reactome"

It can be chained with:

  • gwas-lookup: Enrich top GWAS hits for a trait
  • rnaseq-de: Enrich differentially expressed genes from an RNA-seq run
  • lit-synthesizer: Find publications about the top enriched pathways
  • omics-target-evidence-mapper: Map enriched pathway genes to drug targets

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Pathway Enricher AI skill do?

Gene-set pathway enrichment analysis using Enrichr — queries KEGG, GO (BP/MF/CC), Reactome, WikiPathways, MSigDB, and Disease Ontology. Produces ranked pathway tables, interactive bubble charts, and a reproducible Markdown report.

Why use Pathway Enricher on TypingMind?

Because you install it once and use it with any model. Pathway Enricher is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Pathway Enricher in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ClawBio/ClawBio/tree/main/skills/pathway-enricher. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Pathway Enricher?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Pathway Enricher?

As many as you like. As long as a model supports skills, you can use Pathway Enricher with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Pathway Enricher AI skill free?

Yes. It is published on GitHub by ClawBio under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇