Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Perform gene set enrichment analysis using the Enrichr API
.claude/skills/brycewang-stanford-enrichr-api/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-19 | ✗→✓ | ▲ Improved | 113% | 0% |
| case-20 | ✗→✓ | ▲ Improved | 114% | 0% |
| case-01 | ✓→✓ | = Same ✓ | 11% | 0% |
| case-02 | ✓→✓ | = Same ✓ | 93% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 174% | 0% |
Enrichr is the most widely used gene set enrichment analysis tool, developed by the Ma'ayan Lab at the Icahn School of Medicine at Mount Sinai. It tests whether a user-supplied gene list is statistically over-represented in curated gene set libraries spanning pathways, ontologies, transcription factor targets, disease associations, and cell types. The API provides access to 225 background libraries covering over 500,000 annotated gene sets. Free, no authentication required.
Enrichr uses a submit-then-query pattern:
/addList -- returns a userListId token/enrich using that token and a chosen libraryThe userListId persists on the server, so you can run multiple library queries against the same submission without re-uploading.
https://maayanlab.cloud/Enrichrbashcurl -X POST "https://maayanlab.cloud/Enrichr/addList" \ -F "list=BRCA1 BRCA2 TP53 EGFR MYC PTEN AKT1 KRAS PIK3CA RAF1" \ -F "description=cancer_genes"
Response:
json{ "shortId": "8619200cc78f1513ff1029a04af90ad7", "userListId": 124544426 }
Genes are newline-separated. The request must use multipart/form-data (the -F flag), not application/x-www-form-urlencoded.
bashcurl "https://maayanlab.cloud/Enrichr/enrich?userListId=124544426&backgroundType=KEGG_2021_Human"
Response (first 3 of 143 results):
json{ "KEGG_2021_Human": [ [1, "Breast cancer", 3.37e-22, 198530.0, 9815800.25, ["PIK3CA","MYC","PTEN","AKT1","KRAS","BRCA1","BRCA2","RAF1","TP53","EGFR"], 4.82e-20, 0, 0], [2, "Endometrial cancer", 1.35e-19, 1595.2, 69306.12, ["PIK3CA","MYC","PTEN","AKT1","KRAS","RAF1","TP53","EGFR"], 9.68e-18, 0, 0], [3, "Central carbon metabolism in cancer", 6.66e-19, 1285.68, 53809.88, ["PIK3CA","MYC","PTEN","AKT1","KRAS","RAF1","TP53","EGFR"], 3.17e-17, 0, 0] ] }
Each result array contains: [rank, term_name, p_value, z_score, combined_score, overlapping_genes, adjusted_p_value, old_p_value, old_adjusted_p_value].
bashcurl "https://maayanlab.cloud/Enrichr/view?userListId=124544426"
json{ "genes": ["PIK3CA","MYC","AKT1","PTEN","BRCA1","KRAS","BRCA2","EGFR","TP53","RAF1"], "description": "cancer_genes" }
bashcurl "https://maayanlab.cloud/Enrichr/export?userListId=124544426&backgroundType=KEGG_2021_Human&filename=results" \ -o enrichr_results.txt
bashcurl "https://maayanlab.cloud/Enrichr/datasetStatistics"
Returns metadata for all 225 libraries, each entry containing libraryName, numTerms, geneCoverage, and genesPerTerm.
| Library | Terms | Genes | |---------|-------|-------| | KEGG_2026 | 352 | 8,110 | | KEGG_2021_Human | 320 | 8,078 | | WikiPathways_2024_Human | 829 | 8,281 | | Reactome_Pathways_2024 | 2,105 | 11,671 | | BioCarta_2016 | 237 | 1,348 |
| Library | Terms | Genes | |---------|-------|-------| | GO_Biological_Process_2025 | 5,343 | 14,674 | | GO_Molecular_Function_2025 | 1,174 | 11,484 | | GO_Cellular_Component_2025 | 468 | 11,501 |
| Library | Terms | Genes | |---------|-------|-------| | DisGeNET | 9,828 | 17,464 | | GWAS_Catalog_2025 | 2,369 | 15,030 | | ClinVar_2025 | 609 | 3,481 | | OMIM_Disease | 90 | 1,759 | | Human_Phenotype_Ontology | 1,779 | 3,096 |
| Library | Terms | Genes | |---------|-------|-------| | ChEA_2022 | 757 | 18,365 | | ENCODE_TF_ChIP-seq_2015 | 816 | 26,382 | | JASPAR_PWM_Human_2025 | 675 | 18,518 |
| Library | Terms | Genes | |---------|-------|-------| | CellMarker_2024 | 1,692 | 12,642 | | ARCHS4_Tissues | 108 | 21,809 | | Human_Gene_Atlas | 84 | 13,373 |
| Library | Terms | Genes | |---------|-------|-------| | MSigDB_Hallmark_2020 | 50 | 4,383 | | MSigDB_Oncogenic_Signatures | 189 | 11,250 | | DGIdb_Drug_Targets_2024 | 659 | 2,513 |
userListId persists server-side; avoid re-submitting the same list repeatedlypythonimport requests ENRICHR_URL = "https://maayanlab.cloud/Enrichr" def submit_gene_list(genes: list[str], description: str = "") -> int: """Submit a gene list to Enrichr, return userListId.""" payload = { "list": (None, "\n".join(genes)), "description": (None, description), } resp = requests.post(f"{ENRICHR_URL}/addList", files=payload) resp.raise_for_status() return resp.json()["userListId"] def get_enrichment(user_list_id: int, library: str) -> list[dict]: """Retrieve enrichment results for a given library.""" resp = requests.get( f"{ENRICHR_URL}/enrich", params={"userListId": user_list_id, "backgroundType": library}, ) resp.raise_for_status() data = resp.json() results = [] for entry in data.get(library, []): results.append({ "rank": entry[0], "term": entry[1], "p_value": entry[2], "z_score": entry[3], "combined_score": entry[4], "genes": entry[5], "adj_p_value": entry[6], }) return results def get_libraries() -> list[dict]: """List all available Enrichr libraries.""" resp = requests.get(f"{ENRICHR_URL}/datasetStatistics") resp.raise_for_status() return resp.json()["statistics"] # Example: enrichment analysis of cancer-related genes genes = ["BRCA1", "BRCA2", "TP53", "EGFR", "MYC", "PTEN", "AKT1", "KRAS", "PIK3CA", "RAF1"] list_id = submit_gene_list(genes, "cancer_genes") print(f"Submitted gene list, ID: {list_id}") # Query KEGG pathways kegg = get_enrichment(list_id, "KEGG_2021_Human") print(f"\nTop 5 KEGG pathways ({len(kegg)} total):") for r in kegg[:5]: print(f" {r['rank']}. {r['term']}") print(f" p={r['p_value']:.2e}, adj_p={r['adj_p_value']:.2e}, " f"genes={','.join(r['genes'][:5])}...") # Query GO Biological Process go_bp = get_enrichment(list_id, "GO_Biological_Process_2023") print(f"\nTop 5 GO Biological Processes ({len(go_bp)} total):") for r in go_bp[:5]: print(f" {r['rank']}. {r['term']}") print(f" p={r['p_value']:.2e}, genes={','.join(r['genes'])}")
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | pass→pass | 30,621 | 9,609 | -69% | 1 | 1 | 0% | 4,074 | 4,516 | +11% | 0 | 0 | — |
case-02 | pass→pass | 19,335 | 19,279 | -0% | 1 | 1 | 0% | 3,295 | 6,373 | +93% | 0 | 0 | — |
case-03 | pass→pass | 9,242 | 9,591 | +4% | 1 | 1 | 0% | 1,500 | 4,109 | +174% | 0 | 0 | — |
case-04 | pass→pass | 12,540 | 11,005 | -12% | 1 | 1 | 0% | 2,256 | 4,918 | +118% | 0 | 0 | — |
case-05 | pass→pass | 12,207 | 6,469 | -47% | 1 | 1 | 0% | 2,316 | 4,139 | +79% | 0 | 0 | — |
case-06 | pass→pass | 4,142 | 2,454 | -41% | 1 | 1 | 0% | 697 | 3,274 | +370% | 0 | 0 | — |
case-07 | pass→pass | 5,339 | 2,954 | -45% | 1 | 1 | 0% | 1,072 | 3,415 | +219% | 0 | 0 | — |
case-08 | pass→pass | 6,984 | 4,067 | -42% | 1 | 1 | 0% | 1,341 | 3,613 | +169% | 0 | 0 | — |
case-09 | pass→pass | 6,817 | 3,614 | -47% | 1 | 1 | 0% | 1,279 | 3,544 | +177% | 0 | 0 | — |
case-10 | pass→pass | 4,956 | 3,245 | -35% | 1 | 1 | 0% | 858 | 3,464 | +304% | 0 | 0 | — |
case-11 | pass→pass | 3,248 | 3,176 | -2% | 1 | 1 | 0% | 476 | 3,393 | +613% | 0 | 0 | — |
case-12 | pass→pass | 7,624 | 3,570 | -53% | 1 | 1 | 0% | 1,405 | 3,550 | +153% | 0 | 0 | — |
case-13 | pass→pass | 8,362 | 5,690 | -32% | 1 | 1 | 0% | 1,586 | 3,910 | +147% | 0 | 0 | — |
case-14 | pass→pass | 3,671 | 2,401 | -35% | 1 | 1 | 0% | 624 | 3,256 | +422% | 0 | 0 | — |
case-15 | pass→pass | 5,292 | 3,013 | -43% | 1 | 1 | 0% | 786 | 3,280 | +317% | 0 | 0 | — |
case-16 | pass→pass | 6,690 | 2,788 | -58% | 1 | 1 | 0% | 972 | 3,390 | +249% | 0 | 0 | — |
case-17 | pass→pass | 7,149 | 2,593 | -64% | 1 | 1 | 0% | 1,116 | 3,283 | +194% | 0 | 0 | — |
case-18 | pass→pass | 10,750 | 2,247 | -79% | 1 | 1 | 0% | 1,930 | 3,251 | +68% | 0 | 0 | — |
case-19 | fail→pass | 10,419 | 6,677 | -36% | 1 | 1 | 0% | 1,887 | 4,023 | +113% | 0 | 0 | — |
case-20 | fail→pass | 15,044 | 11,699 | -22% | 1 | 1 | 0% | 2,161 | 4,622 | +114% | 0 | 0 | — |
case-21 | pass→pass | 6,235 | 5,092 | -18% | 1 | 1 | 0% | 1,211 | 3,858 | +219% | 0 | 0 | — |
case-22 | pass→pass | 12,462 | 5,507 | -56% | 1 | 1 | 0% | 2,332 | 3,807 | +63% | 0 | 0 | — |
case-23 | pass→pass | 9,431 | 4,578 | -51% | 1 | 1 | 0% | 1,807 | 3,733 | +107% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted. The headline lift of +9 percentage points is the difference between those two pass rates over the 23 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.