Upset — Multi-Contrast Intersections¶
In the app: Differential expression › Upset
Needs at least two contrasts; with only one, the page says so instead.
Upset shows how differentially expressed genes overlap across any number of contrasts. It is the alternative to a Venn diagram when there are more comparisons than a Venn can draw clearly, and it answers "which combinations of conditions share DEGs, and how many?"

Example output from the sample project.
Findings¶
- How many DEGs there are in total across the selected contrasts, for the chosen direction (each gene counted once).
- How many of them are significant in all the selected contrasts.
Filters¶
Direction¶
All (default), Up or Down — which DEGs to intersect.
Min intersection size¶
1 to 20, default 1. Intersections with fewer genes are left out.
Max intersections shown¶
5 to 50, default 20. Only the largest intersections are drawn.
Select contrasts¶
Defaults to the first six contrasts. At least two are needed.
Upset plot¶
Titled Upset Plot — direction DEGs (n contrasts).
- The bars at the top give the size of each intersection, largest first.
- The dot matrix below has one row per contrast. Filled, connected dots show which contrasts make up the intersection above them.
Each intersection is exclusive: genes significant in exactly those contrasts and none of the other selected ones. Hover a bar for its contrasts and gene count. Bars are grey for All, and in the Up or Down colour for Up or Down.
Raw data¶
Raw data — Per-contrast DEG counts — Contrast and DEG Count, largest first.
Raw data — Intersection details — Intersection (the contrasts, joined by &) and Gene Count, for the intersections drawn. Its Download CSV goes further: it lists every gene in each intersection, one row per gene, with its gene_id.
Report settings that apply¶
Adjusted p-value threshold and log2 Fold Change threshold define the DEG sets; the Up and Down colours colour the bars. See Report Settings.
Reading it¶
A tall bar for a single contrast means many genes respond only there; a tall bar with every dot filled is the shared core. For two to four contrasts, Venn is often more intuitive.