Process / pipelineBioinformaticsBioinformatics / omicsPipeline

Differential Pathway Enrichment Analysis

Also known as: differential enrichment analysis, comparative pathway enrichment, DPEA, cross-condition pathway analysis

OriginatorExtended from Over-Representation Analysis (Draghici et al. 2003) and competitive gene-set testing (Smyth lab, ~2004–2012)Year2004–2012Sources2Related methods5

Differential pathway enrichment analysis identifies biological pathways whose enrichment signals differ significantly between two or more experimental conditions — for example, between two diseases, two treatments, or two cell types. Rather than asking which pathways are enriched in one condition, it asks which pathways show a statistically meaningful change in enrichment level across conditions, revealing condition-specific or context-dependent biology.

Key highlights

  • Directly identifies condition-specific pathway dysregulation rather than requiring manual comparison of separate enrichment results.
  • Competitive methods such as CAMERA properly account for inter-gene correlation within pathways, reducing false positives from co-expressed gene clusters.
  • Leverages all gene-level statistics (not just a significance threshold) via rank-based scoring, maximising statistical power.
  • Compatible with standard RNA-seq analysis pipelines (edgeR, DESeq2, limma) without bespoke data formats.
  • Results are readily interpretable in biological terms via pathway databases and visualisation tools.

Intuition

This section is available to Pro members. Upgrade to Pro

How it works

This section is available to Pro members. Upgrade to Pro

When to use it

Use differential pathway enrichment analysis when you have gene expression data from two or more distinct biological conditions and want to identify which pathways are specifically more or less active in one condition relative to another — not just globally enriched. It is well-suited to multi-group RNA-seq studies, disease-subtype comparisons, drug mechanism investigations, and longitudinal experiments with pre/post treatment samples. Do not use it as a replacement for standard enrichment when you have only a single condition without a valid comparator; it also should not be applied when sample sizes per group fall below about 3 replicates, as the variance estimates needed for the differential test become unreliable.

Strengths & limitations

Strengths
  • Directly identifies condition-specific pathway dysregulation rather than requiring manual comparison of separate enrichment results.
  • Competitive methods such as CAMERA properly account for inter-gene correlation within pathways, reducing false positives from co-expressed gene clusters.
  • Leverages all gene-level statistics (not just a significance threshold) via rank-based scoring, maximising statistical power.
  • Compatible with standard RNA-seq analysis pipelines (edgeR, DESeq2, limma) without bespoke data formats.
  • Results are readily interpretable in biological terms via pathway databases and visualisation tools.
Limitations
  • Requires sufficient replication per condition (at least 3 biological replicates) to estimate within-group variance reliably.
  • Pathway gene-set quality depends on the database used; outdated or organism-specific gaps in KEGG or Reactome can miss important biology.
  • Large gene sets with internally heterogeneous functions can mask signal from the subset of truly regulated genes.
  • Multiple-testing correction across thousands of pathways can suppress true discoveries when effect sizes are modest.

Common pitfalls

This section is available to Pro members. Upgrade to Pro

Applications

This section is available to Pro members. Upgrade to Pro

Frequently asked

How is this different from running standard GSEA separately in each condition?

Running GSEA (or ORA) separately in each condition and then comparing results informally is statistically invalid — it conflates the significance thresholds of two independent tests. Differential pathway enrichment formally tests the contrast of enrichment scores across conditions within a single statistical model, controlling family-wise error appropriately. Informal comparison of 'significant vs. not significant' is a well-documented logical fallacy in statistical inference.

What is the minimum number of replicates needed?

Most competitive gene-set tests require within-group variance estimates, so at least 3 biological replicates per condition is the practical minimum. With 3 replicates per group, power is limited; 5–6 per group greatly improves the reliability of differential enrichment calls. Pseudo-replication (technical replicates treated as biological) inflates confidence and must be avoided.

Which gene-set database should I use?

KEGG, Reactome, and Gene Ontology Biological Process are the most widely used and peer-reviewed. MSigDB (Molecular Signatures Database) aggregates these and additional curated collections in a convenient format. The choice should be justified by the biological question: KEGG is strong for metabolic pathways, Reactome for signalling, and GO for broad functional annotation. Using two independent databases and reporting consistent findings increases credibility.

Can I apply this to single-cell RNA-seq data?

Yes, but with modifications. At the single-cell level, pseudo-bulk aggregation per sample-condition is currently the recommended approach — cells from the same donor and condition are summed into a pseudo-bulk profile, then differential enrichment is run as in bulk RNA-seq. Direct cell-level enrichment is possible but requires specialised single-cell enrichment tools (e.g., AUCell, VISION) and careful handling of sparsity.

How do I handle multiple conditions (more than two)?

Multi-condition designs are handled by specifying contrasts within the linear model or GLM framework — for example, pairwise contrasts between each pair of conditions, or a one-vs-rest contrast. F-statistics or ANOVA-style tests across all conditions can identify pathways that vary across the entire experiment. Tools such as piano and the limma-voom pipeline natively support these multi-contrast designs.

Sources

  1. 1.
    Wu, D., & Smyth, G. K. (2012). Camera: a competitive gene set test accounting for inter-gene correlation. Nucleic Acids Research, 40(17), e133.
  2. 2.
    Väremo, L., Nielsen, J., & Nookaew, I. (2013). Enriching the gene set analysis of genome-wide data by incorporating directionality of gene expression and combining statistical inferences. Nucleic Acids Research, 41(8), 4378–4391.

You have read it. What now?

Cite this page

ScholarGate. (2026, June 3). Differential pathway enrichment analysis. ScholarGate. https://scholargate.app/bioinformatics/differential-pathway-enrichment-analysis