---
name: enrichr
description: Gene-set enrichment analysis with Enrichr — when to use it, which libraries to pick, and how to interpret and report results from the run_enrichr tool.
---

# Enrichr

Enrichr (https://maayanlab.cloud/Enrichr) tests a gene list for over-representation in hundreds of annotated gene-set libraries (Fisher's exact test).

## When to use it

- To explain the biology of a subtype signature (the up genes from `get_differential_expression`).
- To characterize a patient's up or down genes (`get_patient_signature`).
- To interpret a UMAP selection on the cohort page.

## Inputs

- Pass 10 to 500 gene symbols. Run up and down genes separately; don't mix them.
- The default libraries are `MSigDB_Hallmark_2020`, `KEGG_2021_Human`, `GO_Biological_Process_2023` and `Reactome_2022`.
- Other useful libraries:
  - `ChEA_2022` and `ENCODE_and_ChEA_Consensus_TFs_from_ChIP-X` for transcription factors.
  - `CellMarker_2024` and `PanglaoDB_Augmented_2021` for cell types.
  - `DSigDB` and `LINCS_L1000_Chem_Pert_Consensus_Sigs` for drugs.

## Interpreting results

- Rank terms by adjusted p-value. The combined score (log p × z) is a useful secondary ranking.
- Report the term, its adjusted p-value and the overlapping genes.
- If `search_cohorts` reports `mock: true`, the gene universe is about 200 cancer-relevant genes, so enrichment is biased toward cancer pathways. Say so.
- Per-patient signatures hold up to 500 genes (the `max500` in the file name). Phosphoproteomics sets list the genes of modified sites, without direction.
- Always include the Enrichr link (`url`) so users can explore the full results.
