GGenomics UI
Components/Viewers

Chromatogram

@genomics/chromatogram

Sanger sequencing trace (.ab1-style) viewer.

Preview

Chromatogram
57 calls · 684 samples
57 base calls
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.

About

Draws the four base channels (A/C/G/T) as colored peak curves over a horizontally virtualized canvas, with base calls lettered above their peaks and a position ruler. Hovering a base broadcasts its position through coordinate-link so it links to a sequence-viewer of the same read.

Usage

import { Chromatogram } from "@/components/ui/chromatogram"

<Chromatogram traces={traces} calls={calls} />
Source: components/ui/chromatogram.tsx