GGenomics UI
Components/Cells & data

Oncoprint

@genomics/oncoprint

cBioPortal alteration matrix.

Preview

ampgainshallow-deldeep-del
fusiontruncatingsplicemissenseinframe
10 genes × 84 samples · 203 alterations
Use left and right arrow keys to move between columns, up and down to move between rows, Shift plus arrow to jump ten, Home and End for the ends of the row, Control or Command plus Home and End for the first and last cell, Enter to select, Escape to clear the selection.

About

Genes × samples: copy-number as the cell background and mutations as a central bar colored by type. Samples are memo-sorted so recurrently altered samples stack to the left, giving the signature staircase, with a per-gene alteration-frequency bar on the right.

Usage

import { Oncoprint } from "@/components/ui/oncoprint"

<Oncoprint data={{ genes, samples, alterations }} onSelectGene={setGene} />
Registry dependencies
Source: components/ui/oncoprint.tsx