Sequence Viewer
@genomics/sequence-viewer
Virtualized DNA/RNA/protein, to megabase scale.
Preview
Sample kinase domain
279 aa · 1–279
279 aa
About
Renders to a single canvas that repaints on scroll, so only the visible rows are ever drawn. Residues wrap into rows; a fixed ruler marks intra-row columns and a scrolling gutter shows the absolute coordinate. Hover and drag-select broadcast through coordinate-link.
Usage
import { SequenceViewer } from "@/components/ui/sequence-viewer"
<SequenceViewer
sequence={{ id: "p1", kind: "amino-acid", seq: "MGSSHHH..." }}
height={280}
colorMode="block"
/>Registry dependencies
Source:
components/ui/sequence-viewer.tsx