Pathway Enrichment Analysis — Biological Pathway Enrichment Analysis

Research
Introduced by
Mootha et al. (2003); systematised by Subramanian et al. (2005)
Year
2003–2005
Type
Statistical functional annotation method
Family
Bioinformatics / omics

What does it do?

Pathway enrichment analysis (PEA) is a statistical approach that takes a list of genes or proteins of interest, typically from a differential expression or proteomics experiment, and tests which pre-defined biological pathways or gene sets are represented more often than expected by chance.

It maps individual molecular changes onto curated knowledge bases such as KEGG, Gene Ontology, or Reactome, turning long gene lists into interpretable biological processes. It is a post-analysis step applied to high-throughput omics results rather than a primary measurement.

The intuition behind the method

Imagine you have identified 300 genes that change significantly in a disease condition. Reading all 300 gene names tells you very little. Pathway enrichment analysis asks: do any biological processes, such as 'inflammatory response' or 'cell cycle regulation', appear among those 300 genes more often than you would expect if you had simply drawn 300 genes at random from the genes measured in the experiment? If inflammation genes appear more often than random chance predicts, that pathway is 'enriched', suggesting it plays a role in the condition. The method converts a bewildering list of molecular parts into a compact, interpretable story about which cellular mechanisms are activated or suppressed.

History

The ranked-list approach was formalised as Gene Set Enrichment Analysis (GSEA) by Subramanian et al. (2005) in PNAS, together with a freely available software package and an initial database of 1,325 biologically defined gene sets. Alexa et al. (2006) addressed dependencies between GO terms when scoring functional groups from gene expression data.

When to use it

Use pathway enrichment analysis when a quantitative omics experiment has produced a gene or protein list that needs functional interpretation, for example from RNA-seq, proteomics, metabolomics (using a metabolite-set database matched to the measured compounds), or GWAS locus annotation. Choose ORA when a defensible significance threshold yields a discrete hit list. Choose GSEA when the full ranked list is available and subtle, coordinated shifts are of interest. Do not use PEA as a primary analysis, because it depends on an upstream experiment. Avoid it when the input list is very short, when it is dominated by a single highly pleiotropic gene, or when the question concerns the function of individual genes. Results from short lists are unstable, and a pathway supported by only a handful of overlapping genes should not be read as a robust finding. It is also unreliable when the pathway database covers the organism or tissue under study poorly.

Limitations and considerations

  • Annotation bias: pathway databases concentrate on well-studied genes, so genes in sparsely annotated pathways are less likely to be tested and can be missed.
  • ORA is threshold-dependent: the genes entering the test are set by a cutoff, so changing that cutoff can change which pathways appear enriched.
  • Pathways overlap in their member genes, and GO terms are related through the graph structure. Alexa et al. (2006) reported that scoring GO terms independently produces local dependencies between related terms, and proposed graph-aware scoring methods that eliminate these dependencies.
  • Standard implementations treat all genes in a pathway as equally weighted and ignore expression magnitude, network topology, and interaction context.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • A discrete hit list can be summarised by the pathways it overlaps, which is easier to report and discuss than the individual gene names.
  • In ORA, each pathway result is a count of overlapping genes (k of K) with a p-value, so the basis for each claim is easy to inspect.
  • GSEA uses the full ranked list, so it can detect a set of genes that all shift modestly in the same direction, which a fixed significance cutoff would discard.
  • The approach applies across transcriptomics, proteomics, metabolomics, and genomics, provided the database matches the molecule type and organism.
  • GO and Reactome are openly maintained resources, whereas KEGG has licensing restrictions for some uses, so its terms should be checked before use. The ORA and GSEA variants are implemented in widely used packages such as clusterProfiler, fgsea, and topGO.

Applications

  • Identifying dysregulated metabolic and signalling pathways in RNA-seq comparisons of disease versus healthy tissue.
  • Annotating proteomic changes in drug treatment studies to understand mechanism of action.
  • Interpreting GWAS locus gene sets to link genetic associations to biological processes.
  • Characterising cell-type-specific pathways in single-cell RNA-seq cluster marker gene lists.
  • Comparing pathway activity across multiple experimental conditions or patient subgroups to stratify biology.
  • Integrating multi-omics data by performing enrichment analysis on genes/proteins converging from independent assays.

How it works

How it works

1

The starting point is a gene list derived from an upstream analysis: typically differentially expressed genes from RNA-seq, significant hits from a proteomics experiment, or a ranked list of all measured genes ordered by fold-change or statistical score. The list can be either a discrete set (genes passing a significance threshold) for overrepresentation analysis (ORA) or a continuously ranked list for ranked-based methods such as gene set enrichment analysis (GSEA).

2

A curated pathway or gene-set database is chosen to supply the reference gene sets. Common choices include Gene Ontology (GO), which annotates genes with terms for molecular function, biological process and cellular component; KEGG, which provides pathway maps, largely for metabolism and signalling; Reactome, which provides curated reaction-level pathway maps; and MSigDB, a collection of gene sets used most often with GSEA. Each resource has its own scope, organism coverage and release version, which should be checked against the study before use. The choice of database directly shapes which biological interpretations are reachable.

3

For ORA, the overlap between the query gene list and each pathway gene set is tested with the hypergeometric distribution (equivalent to Fisher's exact test). With N genes in the background universe, K of them annotated to the pathway, n genes in the query list, and k genes in the overlap, the p-value is the probability of observing at least k overlapping genes under random sampling. The test assumes that every measured background gene has the same chance of entering the query list, regardless of its pathway membership. Annotation bias (well-studied genes carry more annotations and are more often detected as hits) and differences in detectability or gene length violate this assumption, so p-values for well-studied pathways can be inflated. Where this is a concern, results should be checked with a background-aware or permutation-based approach. The choice of background for N is discussed under pitfalls. GSEA instead uses a weighted Kolmogorov-Smirnov statistic to detect whether genes in a set are non-randomly concentrated toward the top or bottom of a ranked list, capturing coordinated shifts without a hard significance cutoff. Significance is assessed by permutation (of sample labels or gene sets, depending on the design and implementation). The enrichment score is normalised by gene-set size to give a normalised enrichment score (NES), and false discovery rate (FDR) q-values are then computed across all gene sets tested.

Formula
p = P(X \geq k) = \sum_{i=k}^{\min(n,K)} \frac{\binom{K}{i}\binom{N-K}{n-i}}{\binom{N}{n}}
4

Because many pathways are tested simultaneously, raw p-values are adjusted for multiple comparisons. The Benjamini-Hochberg procedure to control the false discovery rate (FDR) is the standard approach; the Bonferroni correction is more conservative and less commonly used. Pathways with an adjusted p-value (or FDR q-value) below a chosen threshold, such as the conventional 0.05, are reported as significantly enriched. The threshold should be stated explicitly, since reporting conventions differ between ORA and GSEA.

5

Enriched pathways are ranked by adjusted p-value and summarised with metrics suited to the method. For ORA, the overlap ratio (k/K) is reported alongside the adjusted p-value. For GSEA, the enrichment score (ES) and normalised enrichment score (NES) are reported. Because many pathways share member genes, redundant pathways often appear together; tools such as clusterProfiler, EnrichmentMap, or Revigo can group or visualise overlapping results to identify coherent biological themes. Final interpretation requires domain knowledge to distinguish primary mechanisms from secondary associations and to assess biological plausibility.

Common pitfalls

  • Using the wrong gene universe as the background for ORA: the background must be all genes that were measured (detectable) in the experiment, not the full genome, otherwise enrichment statistics are inflated.
  • Over-interpreting redundant pathways: dozens of reported enriched terms often reflect the same underlying biology because gene sets overlap; cluster and deduplicate results before drawing conclusions.
  • Ignoring pathway database version and organism: using a human pathway database for mouse data, or an outdated database version, produces misleading annotations.
  • Treating enrichment p-value as effect size: a highly significant enrichment may reflect only two genes in a tiny pathway; always report overlap count and ratio alongside the adjusted p-value.
  • Running PEA on an underpowered gene list: if the upstream differential expression analysis is underpowered and the gene list contains mostly noise, pathway results will be spurious regardless of how significant they appear.
  • Defining the wrong universe for GSEA: the ranked list should contain all measured genes, not only those passing a significance threshold, so that the ranking reflects the whole experiment.

Frequently asked questions

What is the difference between ORA and GSEA?

Overrepresentation analysis (ORA) requires a discrete gene list defined by a significance threshold and tests whether pathway genes appear more often in that list than expected under the hypergeometric distribution. GSEA uses the full ranked gene list (no cutoff) and tests whether pathway genes are concentrated toward the top or bottom of the ranking using a weighted Kolmogorov-Smirnov statistic. GSEA is more sensitive to subtle, coordinated pathway shifts; ORA is simpler and easier to explain but threshold-dependent.

Which pathway database should I use?

The choice depends on the biological question. Gene Ontology (GO) annotates genes with terms for molecular function, biological process and cellular component. KEGG provides pathway maps, largely for metabolism and signalling. Reactome provides curated reaction-level pathway maps. MSigDB, used most often with GSEA, collects curated and other gene sets. Each resource differs in scope, organism coverage and release version, so check these against your study before use. Using two or three complementary databases and looking for convergent results is good practice.

How do I handle redundant enrichment results?

Pathway databases have extensive gene overlap, so tens of similar pathways often appear significant simultaneously. Tools such as Revigo (for GO terms), clusterProfiler's enrichplot, or Cytoscape's EnrichmentMap can cluster, summarise, or visualise overlapping pathways. Reporting a representative pathway per cluster, rather than listing every overlapping term, produces clearer and more honest results.

Do I need to set a background gene list for ORA?

Yes, and this is a common source of error. The background must be all genes that were actually measured (expressed above detection threshold) in your experiment, not all genes in the genome. Using the full genome background inflates enrichment significance because many pathway genes are simply not detectable in any given tissue or condition.

Can pathway enrichment analysis establish causality?

No. PEA identifies statistical associations between a gene list and pathway annotations. It does not establish that those pathways are causally responsible for the observed phenotype. Enriched pathways are hypotheses that require experimental validation, for example through perturbation experiments or mechanistic follow-up studies.

Related methods

Sources

  1. Subramanian, A., Tamayo, P., Mootha, V. K., Mukherjee, S., Ebert, B. L., Gillette, M. A., Paulovich, A., Pomeroy, S. L., Golub, T. R., Lander, E. S., & Mesirov, J. P. (2005). Gene set enrichment analysis: A knowledge-based approach for interpreting genome-wide expression profiles. Proceedings of the National Academy of Sciences, 102(43), 15545–15550.

    Open DOI reference
  2. Alexa, A., Rahnenführer, J., & Lengauer, T. (2006). Improved scoring of functional groups from gene expression data by decorrelating GO graph structure. Bioinformatics, 22(13), 1600–1607.

    Open DOI reference