Skip to content

GSEA — Gene set enrichment analysis

In the app: Enrichment & pathways › GSEA

Available when the pipeline has delivered gene-set enrichment results (combined_GSEA_enrichment.tsv) alongside the DESeq2 results.

GSEA asks whether a gene set has shifted as a whole along the contrast's ranked gene list, without a DEG cutoff. In the report's own words: rank-based enrichment over every gene in the contrast, ordered by the DESeq2 statistic — no DEG cutoff, so it can find coordinated small shifts that GO/KEGG over-representation misses. It complements GO and KEGG, which test only the genes that passed the DEG thresholds.

GSEA — example output

Example output from a demonstration project with synthetic data.

Findings

  • A note on what GSEA measures and the sign convention: NES > 0 — the set sits towards genes higher in the target group; NES < 0 — towards genes lower in it.
  • "N gene sets shown for contrast / collection (p.adjust < cutoff, top N): … with NES > 0, … with NES < 0."
  • "Strongest: set (NES …, p.adjust …)." — the gene set with the smallest adjusted p-value.
  • "Dot area: gene-set size. Colour depth: −log10(p.adjust)."

If no set passes, the page says No gene sets pass p.adjust < cutoff for contrast / collection. Try raising the cutoff.

Filters

Gene-set collection

The collections present in the results file for this contrast (for example HALLMARK).

Direction

Both (default), Higher in target (NES > 0) or Lower in target (NES < 0). Both keeps the top N sets of each sign.

GSEA dot plot

Titled GSEA — contrast | collection | Top N (p.adjust < cutoff). Each dot is a gene set (y-axis Gene set), placed by its Normalised enrichment score (NES) on the x-axis; a dotted line marks NES = 0. Sets are ordered from the most negative NES at the bottom to the most positive at the top.

  • Direction legend: higher in target (NES > 0) and lower in target (NES < 0), in the Up and Down colours.
  • Dot area — gene-set size (setSize).
  • Colour depth — −log10(p.adjust); paler dots are less significant.

Hover for the set ID, set size and p.adjust.

Running-score curve

When the pipeline also delivers the ranked gene list for the contrast (<contrast>.gsea_ranks.tsv) and the gene sets (.gmt) it used, a Running score of selector appears below the dot plot and draws the classic GSEA plot: the running enrichment score along the ranked list, the peak marked, and a tick for each set member underneath. If the recomputed score differs from the pipeline's, a warning says the delivered ranks or sets may not be the exact ones the pipeline used. Without those files, a caption says the curves will appear once they are delivered.

Raw data

Raw data — Leading-edge genes

Choose a set in Leading-edge genes of — the genes that drive the set's score, those ranked before the running score peaks. The report lists them (as gene symbols where the project's annotation has them) with the set size.

Raw data — GSEA table

The sets on the chart, sorted by p.adjust, with Download CSV.

Column Meaning
collection gene-set collection
ID gene-set identifier
Description gene-set name
setSize number of genes in the set
enrichmentScore the raw enrichment score (ES)
NES normalised enrichment score; sign gives the direction
pvalue, p.adjust raw and adjusted significance (qvalue too, when the file has it)
leading_edge_n number of leading-edge genes
core_enrichment the leading-edge gene IDs, /-separated

Report settings that apply

  • Contrast — matched by name to the contrasts in the GSEA file; the chart title names the contrast shown.
  • Adjusted p-value threshold — sets must have p.adjust below it.
  • Top N — sets kept per sign, chosen by the largest |NES|.
  • Appearance — the Up and Down colours, plot size and fonts.

See Report Settings.

Reading it

NES measures how strongly a set is concentrated at one end of the ranked list, not how many genes in it are DEGs — a significant set can contain no DEG at all. Read the leading-edge genes before naming a set as "activated" or "suppressed": a few strongly changed genes can drive a large set's score.