Oncoprint
Visualize mutations and copy-number alterations across genes and samples in an oncoprint, revealing cohort-wide alteration patterns and co-occurrences.
Visualize mutations and copy-number alterations across genes and samples in an oncoprint, revealing cohort-wide alteration patterns and co-occurrences.
Alteration matrix (oncoprint)
Description
Analysis summary
A genes × samples heatmap displaying genomic alterations (mutations and copy-number changes) across a cohort, with genes ranked by alteration frequency and samples waterfall-sorted — those hit in the most-altered genes first — to highlight patterns of co-occurrence and mutual exclusivity.
Computation
Builds the ordered alteration matrix from a long table of alterations plus a sample spine, so unaltered samples stay in the cohort denominator. Genes are ordered by their number of altered samples, most-altered first, filtered by the recurrence floor and capped at the row limit. Samples are sorted in the classic oncoprint waterfall order: each alteration type is weighted by its cohort-wide frequency, and samples are ordered by their hits on the top gene, then the second, and so on — samples altered in the most-recurrent gene sit leftmost, unaltered spine samples trail last. When a sample-level subgroup column is present, the analysis computes the share of each subgroup's samples altered per gene and tests whether each gene's alteration rate differs across subgroups (Fisher's exact for two subgroups, chi-square for more, Benjamini-Hochberg-adjusted across genes; samples with no subgroup value go to 'Unknown', shown but excluded from the test), and the display splits into one column of cells per subgroup. The statistical tests always carry a pairwise mutual-exclusivity / co-occurrence table (cBioPortal-style): for every pair of displayed genes, a two-sided Fisher's exact test on the 2x2 alteration-overlap table with a log2 odds ratio, a Benjamini-Hochberg FDR q-value, and a tendency label (co-occurrence vs mutual exclusivity).
When to use
Use whenever the user asks for a cohort-level mutation/CNV landscape across a panel of genes, co-occurrence patterns of alterations, or a 'who's mutated where' summary across samples.
Caveats
The waterfall sort is a display construction: co-altered samples cluster because of the sort, not necessarily because of shared biology. Genes altered in a single sample add rows with little signal — raise the recurrence floor to focus on recurrent alterations. Alteration-overlap p-values are Benjamini-Hochberg-adjusted across the tested gene pairs only; no correction spans the two test families.
Example questions
Input columns
Visualizations
oncoprintHow to read: A grid of colored tiles: one column per sample (waterfall-sorted, so co-altered samples cluster and unaltered samples trail on the right), one row per gene (most-altered first). Each cell carries a CNV background block (e.g. Amplification, Deep Deletion) with the mutation type (e.g. Missense, Nonsense) layered as a narrower stripe on top — the cBioPortal convention. Alteration labels follow the MAF (TCGA) or Sequence-Ontology (Mosaic) vocabularies and are colored the same way; unknown terms fall back to the categorical palette (overridable via color_map). With a subgroup column the grid splits into one column of cells per subgroup, sharing the gene rows. Per-gene '% altered' annotations sit on the y-axis, and summary bars on the top and right margins stack alterations per sample and per gene.
Example analysis 1
Name — Oncoprint: mutations + CNV across top recurrently mutated genes (TCGA BRCA cohort)
Analysis parameters
Visualization — oncoprint

Output table
Last updated
Was this helpful?