GGenomics UI
Components/Viewers

Track Viewer

@genomics/track-viewer

Linear coordinate browser (IGV-in-a-box).

Preview

1279 · 278 bp
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.

Scroll to zoom, drag to pan. Hovering the sequence highlights the position across the domain/site/coverage tracks.

About

Maps a visible window across the width and stacks feature tracks (genes, domains, regions, sites) plus coverage areas. Wheel zooms around the cursor, drag pans. The pointer position broadcasts as a reference residue, and features containing a linked/selected residue are outlined.

Usage

import { TrackViewer } from "@/components/ui/track-viewer"

<TrackViewer tracks={tracks} domain={[1, 279]} />
Source: components/ui/track-viewer.tsx