Component Explorer

Configure every SeqViz prop live — load any NCBI accession, tweak the controls, and copy the matching Python snippet.

PyPI version npm version License MIT
API Reference GitHub

Live demo

This explorer mirrors the controls available in usage.py. All rendering happens client-side using the seqviz library loaded from unpkg.

Load sequence from NCBI

About NCBI requests & your responsibilities

Requests go directly from your browser to NCBI's E-utilities API. dash-seqviz does not operate a proxy — your email is sent to NCBI along with each request, as recommended by their usage policy, so they can contact you if your usage causes issues.

Your email is stored locally in your browser only (localStorage). We cap you at 3 requests per second (NCBI's unauthenticated limit), cache responses so repeat accessions don't re-hit NCBI, and refuse obviously invalid accession strings.

For heavy or automated use, please get an NCBI API key and run your own workload — not through this public demo.

Viewer & display

Search

Base-pair colors

Restriction enzymes (NEB)

Viewer

selection: none
searchResults: 0

Python snippet

Live preview of the Python code behind what you see above. Copy + paste into a file, pip install dash-seqviz, and run.

Installation

Python (PyPI)

pip install dash-seqviz

Conda

conda install -c conda-forge dash-seqviz

Quick example

from dash import Dash, html
from dash_seqviz import SeqViz

app = Dash(__name__)

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

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