pathway-enrichment
Skill by K-Dense-AI
Runs pathway and gene-set enrichment analysis on gene lists or ranked gene data, using ORA, preranked GSEA and ssGSEA/GSVA. Aimed at researchers with differentially expressed genes, screen hits or cluster markers.
Install pathway-enrichment
Built from the published package, never by AI.
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/skills/pathway-enrichment ~/.claude/skills/pathway-enrichmentRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/scientific-agent-skills/skills/pathway-enrichment ~/.gemini/antigravity-cli/skills/pathway-enrichmentAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Pathway Enrichment is an agent skill for running pathway and gene-set enrichment analysis on gene lists or ranked gene data. It covers over-representation analysis (ORA) with Enrichr, Fisher or hypergeometric tests, and preranked Gene Set Enrichment Analysis (GSEA). It also covers single-sample scoring with ssGSEA and GSVA. It uses gseapy, g:Profiler, and gene-set libraries such as MSigDB, GO, KEGG, Reactome and WikiPathways.
The skill guides the user through choosing between ORA and GSEA, mapping gene IDs, choosing a background universe, correcting for multiple testing, reducing redundant terms, and producing dotplots and publication-ready tables. A helper script, run_enrichment.py, runs ORA or GSEA end to end and saves run metadata. It is aimed at researchers who have differential expression, screen or cluster marker results and want to know which biological pathways are over-represented.
Written from the project's SKILL.md and checked against it.
What it can do
- ORA on gene listsTests which gene sets a thresholded gene list overlaps more than chance, using Enrichr or g:Profiler.
- Preranked GSEATests whether gene sets are concentrated toward the top or bottom of a full ranked gene list.
- ssGSEA and GSVA scoringScores gene-set activity per sample or cell using gseapy.
- Gene ID mappingGuides matching gene identifiers to the namespace used by the selected gene-set library.
- Background universe selectionExplains how to choose the set of genes that could have been detected in the assay.
- Multiple-testing correctionDescribes the correction method returned by each tool and how to report the cutoff.
- Redundancy reductionCollapses near-duplicate GO terms with enrichment maps, leading-edge overlap or parent terms.
- Plots and tablesBuilds dotplots, bar plots, enrichment maps, GSEA running-score plots and publication tables.
- run_enrichment.py helperRuns ORA or GSEA from a gene list, DESeq2 CSV or rank file and writes a table, dotplot and metadata.
What you need
- Python 3.12 or later
- gseapy 1.3.1
- numpy, pandas and matplotlib
- Network access for Enrichr, g:Profiler and MSigDB downloads
Try asking
- Run ORA on my list of differentially expressed genes using Hallmark and GO sets
- Run preranked GSEA on my DESeq2 results CSV with a fixed seed
- Which Reactome pathways are over-represented in my CRISPR screen hits?
Good to know
- Online analyses need network access; local GMT workflows run offline.
- Enrichr results follow the service response schema, which omits Overlap in speedrichr output.
- The BioMart service was unavailable during the source's review, so its output schema needs validation.
- Nonhuman runs need explicit library names because the organism option does not convert genes.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/pathway-enrichment/SKILL.md, skills/pathway-enrichment/scripts/run_enrichment.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md16 KB -
references/databases-and-gene-sets.md9 KB -
references/gseapy.md10 KB -
references/interpretation.md7 KB -
references/verified-api.md8 KB
Show all 6 files
-
scripts/run_enrichment.py13 KB
Alternatives to pathway-enrichment
All alternatives →Searches arXiv for scientific papers and preprints, extracts their metadata and abstracts, and downloads PDF or HTML full text. Suited to users who need research papers, literature or specific arXiv IDs.
Downloads AlphaFold predicted structures and PAE matrices for a UniProt ID, then reports pLDDT confidence, domain boundaries and disorder. Built for users who already have a UniProt accession.
Queries the QuickGO and Evidence & Conclusion Ontology REST API to map genes to Gene Ontology terms. Built for researchers doing functional annotation and GO hierarchy exploration.
Connects an AI assistant to Peloton to browse fitness classes, check live and archived schedules, and manage workouts. Built for Peloton users who want to plan rides from their assistant.
Queries NCBI Gene through the E-utilities and Datasets API. It helps researchers search genes by symbol or ID, retrieve gene details, and run batch lookups for annotation and functional analysis.
Prepares and launches nf-core/pacsomatic runs for matched tumor-normal PacBio HiFi data starting from unaligned BAM files. It generates samplesheets and pinned launch artifacts, then runs locally or submits to a scheduler.
Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database
pathway-enrichment: common questions
When should I use ORA instead of GSEA?
Use ORA for a thresholded hit list such as DE genes or screen hits. Use preranked GSEA when you have a full ranked list with a score for every tested gene.
Which score should I rank genes by for preranked GSEA?
The source recommends the signed Wald statistic from DESeq2 (the stat column). It advises against ranking by log2FoldChange because it is noisy for low-count genes.
Why does my enrichment show nothing significant?
The source says a silent gene ID mismatch is the most common cause. It advises matching the identifiers in the selected library and mapping the query and background the same way.
How do I install pathway-enrichment?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is pathway-enrichment free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is pathway-enrichment safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to pathway-enrichment?
Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.
