Skip to main content

This library is a streamlit app for chemical or medical use that show DNA sequences effectively

Project description

Open in Streamlit

Streamlit seqviz

This library is a streamlit app for chemical or medical use that show DNA sequences effectively based on seqviz js library.

white theme dark theme
Streamlit sample white theme Streamlit sample dark theme

Install with:

pip install streamlit-seqviz

Usage example:

from streamlit_seqviz import streamlit_seqviz

streamlit_seqviz(
    name = "J23100",
    seq = "TTGACGGCTAGCTCAGTCCTAGGTACAGTGCTAGC",
    annotations = [{ "name": "promoter", "start": 0, "end": 30, "direction": 1 }],
    style =  { "height": "100vh", "width": "100vw" },
    highlights = [{ "start": 0, "end": 10 }],
    enzymes = [
        "EcoRI",
        "PstI",
        {
            "name": "Cas9",
            "rseq": "NGG", # recognition sequence
            "fcut": 0, # cut index on FWD strand, relative to start of rseq
            "rcut": 1, # cut index on REV strand, relative to start of rseq
            "color": "#D7E5F0", # color to highlight recognition site with
            "range": {
                "start": 4,
                "end": 8,
            },
        },
    ],
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit-seqviz-0.0.5.tar.gz (61.0 kB view details)

Uploaded Source

File details

Details for the file streamlit-seqviz-0.0.5.tar.gz.

File metadata

  • Download URL: streamlit-seqviz-0.0.5.tar.gz
  • Upload date:
  • Size: 61.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for streamlit-seqviz-0.0.5.tar.gz
Algorithm Hash digest
SHA256 c5d4965546c2394b576c158b05a6c68890d60de3d566d539325e344c6498f200
MD5 51cd2469cf4d54a77d70f76f76eaf881
BLAKE2b-256 b468cd9de060753cef3ef9e23cbc79163f1d8db4d53fba30e0dcf151cc02e33e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page