React Feature Track

A linear annotation map — the bio-generalization of the register and memory maps. Draw ranges along a 1..length axis on stacked lanes with a position ruler: protein domains, gene features, binding sites, restriction sites. Features render as boxes, directional arrows (for genes/ORFs), or point sites (for single residues), each with a hover readout of its coordinates. The same primitive covers protein architecture in aa and plasmid maps in bp.

Tyrosine kinase — domain architecture
1100200300400500520SH3SH2KinaseActivation
Plasmid region — gene features (bp)
150010001500200025003000350040004200PromoterAmpRoriGOI

Hover any feature for its coordinates. Lanes stack overlapping features; arrows show direction, ticks mark sites.

Installation

npx shadcn@latest add feature-track.json

Usage

Loading...

Props

PropTypeDefaultDescription
lengthnumberTotal axis length
featuresFeature[]{ name, start, end, lane?, color?, shape? }
unitstring'aa'Axis unit label
heightnumberautoOverride the computed height

shape is 'box' (default), 'arrow' (directional), or 'site' (point marker). Put overlapping features on different lane indices.