Start here
  • InstallationAdd Nelumbo to a shadcn project
  • ThemingBrand accent, neutrals, dynamic color
  • Biology componentsSequences, maps, plates and trees
  • katalyx.bio

    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-map

    A 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.

    pGL3-Basic4,818 bp, circular

    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+.

    pGL3-Basic64–136 of 4,818 bp

    Circle or line

    One record, two views: the features, sites and selection carry over.

    pGL3-Basic4,818 bp, circular

    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.

    RV primer3 to GL primer2170 bp

    From a GenBank file

    Paste a record or open a .gb file. Circular records open as a plasmid, linear ones as a line.

    Cloning vector pGL3-Basic, complete sequence: 4,818 bp, circular, 10 features

    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.

    10features, pGL3-Basic
    pGL3-Basic4,818 bp, circular

    Props

    PropTypeDefaultNotes
    name, lengthstring, numberShown above the map.
    featuresPlasmidFeature[]start, end, name, strand, kind, color, description, segments, codonStart: the same as Plasmid Map.
    sitesPlasmidSite[]position, name: ticks across the backbone, names along the top.
    sequencestringFor both strands and amino acids when zoomed in, and the selection's GC.
    circularbooleanfalseFeatures may cross the origin; they show at both ends.
    schemeNucleotideScheme"nelumbo"The bases' colors at full zoom.
    ruler / zoomablebooleantrueBase numbers; zoom controls, wheel zoom and the overview.
    view / onViewChange{ start, end }everythingThe visible stretch. Controlled or not (defaultView).
    selection / onSelectionChange{ start, end } | nullA selected stretch, by drag or by clicking a feature. Controlled or not (defaultSelection).
    selectablebooleanfalseA keyboard stop: arrows, Enter, + and −, 0, Escape.
    onActiveChange({ feature, length } | null) => voidThe feature under the pointer or cursor.
    parseGenBank(text) => GenBankRecordname, length, topology, molecule, definition, accession, features, sequence. From Plasmid Map.
    sliceConstruct(construct, start, end) => constructA stretch as its own construct; may cross the origin.