GGenomics UI
Components/Viewers

Genomic Axis

@genomics/genomic-axis

Gene model on a genomic axis, linked to protein residues.

Preview

-202,616 · 2,636 bp
Use arrow keys to move along the sequence, Shift plus arrow to jump ten, Home and End for the ends, Enter to select, Space to add to the selection, Escape to clear.
Sample kinase domain
279 aa · 1–279
279 aa
Use arrow keys to move along the sequence, Shift plus arrow to jump ten, Home and End for the ends, Enter to select, Space to add to the selection, Escape to clear.

The top axis is genomic base pairs (three exons, indigo = CDS); the bottom is protein residues. Hover either — the pointer maps through the exon structure and reading frame via bio-coordinate, so a genomic position highlights its codon's residue and vice-versa.

About

The concrete payoff of bio-coordinate. The axis is genomic base pairs — exons, introns, variant ticks — but every hover and click is converted to a protein residue before broadcasting, so pointing at a genomic position lights up the matching residue in a linked sequence, structure, or alignment, and an incoming residue selection paints back onto the codon here. This is the cross-coordinate-space linking one shared integer can't do on its own: a variant at chr7:140753336 only becomes p.V600E after walking the exon structure and reading frame.

Usage

import { GenomicAxis } from "@/components/ui/genomic-axis"

<GenomicAxis model={geneModel} variants={variants} />
Source: components/ui/genomic-axis.tsx