dash-seqviz

Drop real sequence biology into your Dash app — in one component.

Circular and linear viewers, GenBank / FASTA / NCBI loaders, annotations, primers, 250+ restriction enzymes, motif search, and rich callback state. Built for classrooms and industrial bio-foundries alike.

PyPI version npm version License MIT
Open Explorer Read the Reference

From the classroom to the foundry

🎓

Academia

Drop a real NCBI accession into a Dash app and walk a student through it live. From high-school classrooms to graduate synthetic-biology labs, the same component scales with the lesson.

  • GFP, lac operon, carotenoid cluster — turnkey teaching demos
  • Annotations, translations, restriction maps, motif search
  • Works in JupyterLab, Dash, or a static HTML page
🏭

Industry & biotech R&D

Biofoundries, ag-biotech, pharma R&D, food & beverage, consumer synbio. Use dash-seqviz to visualize what ships to a cloning robot or a production fermenter — without forcing scientists into a heavyweight desktop tool.

  • Binary vectors, CRISPR cassettes, natural-product clusters
  • Restriction-site QC for Golden Gate / MoClo pipelines
  • Embed inside internal Dash dashboards and LIMS frontends
Biofoundries Ag-biotech Pharma R&D Food & beverage Consumer synbio Teaching labs

Install

Python (PyPI)

pip install dash-seqviz

Conda

conda install -c conda-forge dash-seqviz

30-second example

from dash import Dash, html
from dash_seqviz import SeqViz

app = Dash(__name__)
app.layout = html.Div([
    SeqViz(
        id="demo",
        name="pUC19 fragment",
        seq="TTGACGGCTAGCTCAGTCCTAGGTACAGTGCTAGC",
        annotations=[
            {"start": 0, "end": 22, "name": "Promoter",
             "direction": 1, "color": "#2a9d8f"},
        ],
        enzymes=["EcoRI", "XbaI", "SpeI"],
        style={"height": "500px", "width": "100%"},
    )
])

if __name__ == "__main__":
    app.run(debug=True)

What's in the box

Circular & linear views

Toggle between circular plasmid maps, linear sequence views, or show both side by side.

Annotations & primers

Overlay named annotations, directional primers, and highlight regions on any sequence.

Restriction enzymes

250+ NEB enzymes out of the box, plus custom recognition sites.

Motif search

Fuzzy motif search with configurable mismatch tolerance and searchResults callback.

Custom colors

Full control over base-pair, annotation, translation, and highlight colors.

Dash callbacks

React to selection, searchResults, and copy events with standard Dash callbacks.