Construct Map
The plasmid map unrolled into a line, for inserts, guides and PCR products. It takes the same features as Plasmid Map, so a parsed GenBank file renders either way, and zooms down to both strands of the sequence.
Install
npx shadcn@latest add @nelumbo/construct-mapA construct
pGL3-Basic, straight from its GenBank record (U47295) through parseGenBank, with its single cutters found by uniqueSites. Forward features ride above the backbone and reverse ones below; a name goes inside its bar, beside it, or up in a label row. Drag across the map to select a stretch: the bar above reads out its length and GC.
Zoom
Double-click a feature, use the buttons, or hold Ctrl or ⌘ and scroll. Zoomed in far enough, the backbone becomes both strands, colored as Nucleotide colors them, and coding features show their amino acids under each codon. The overview below drags the window. This one opens on the start of luc+.
Circle or line
One record, two views: the features, sites and selection carry over.
A PCR product
sliceConstruct cuts a stretch out as its own construct, features clipped and renumbered. RV primer3 and GL primer2 amplify 170 bp across pGL3's origin: the primers at each end, the poly(A) signal and the start of luc+ between them.
From a GenBank file
Paste a record or open a .gb file. Circular records open as a plasmid, linear ones as a line.
Selection
selectable adds a keyboard stop, like a chart: arrows go feature to feature, Enter zooms to it, + and − zoom, 0 shows everything, Escape clears.
Props
| Prop | Type | Default | Notes |
|---|---|---|---|
name, length | string, number | Shown above the map. | |
features | PlasmidFeature[] | start, end, name, strand, kind, color, description, segments, codonStart: the same as Plasmid Map. | |
sites | PlasmidSite[] | position, name: ticks across the backbone, names along the top. | |
sequence | string | For both strands and amino acids when zoomed in, and the selection's GC. | |
circular | boolean | false | Features may cross the origin; they show at both ends. |
scheme | NucleotideScheme | "nelumbo" | The bases' colors at full zoom. |
ruler / zoomable | boolean | true | Base numbers; zoom controls, wheel zoom and the overview. |
view / onViewChange | { start, end } | everything | The visible stretch. Controlled or not (defaultView). |
selection / onSelectionChange | { start, end } | null | A selected stretch, by drag or by clicking a feature. Controlled or not (defaultSelection). | |
selectable | boolean | false | A keyboard stop: arrows, Enter, + and −, 0, Escape. |
onActiveChange | ({ feature, length } | null) => void | The feature under the pointer or cursor. | |
parseGenBank | (text) => GenBankRecord | name, length, topology, molecule, definition, accession, features, sequence. From Plasmid Map. | |
sliceConstruct | (construct, start, end) => construct | A stretch as its own construct; may cross the origin. |