Spaces:
Runtime error
Runtime error
Commit
·
db0da71
1
Parent(s):
e9ba60d
try requirements
Browse files- app.py +27 -0
- requirements.txt +2 -0
app.py
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
from streamlit_seqviz import streamlit_seqviz
|
3 |
+
|
4 |
+
st.subheader("DNA Sequence Vistualization Test")
|
5 |
+
st.markdown("This is a demo for [streamlit_seqviz](https://gitlab.com/nicolalandro/streamlit-seqviz) library that is lib for DNA sequence visualization.")
|
6 |
+
streamlit_seqviz(
|
7 |
+
name = "J23100",
|
8 |
+
seq = "TTGACGGCTAGCTCAGTCCTAGGTACAGTGCTAGC",
|
9 |
+
annotations = [{ "name": "promoter", "start": 0, "end": 30, "direction": 1 }],
|
10 |
+
style = { "height": "100vh", "width": "100vw" },
|
11 |
+
highlights = [{ "start": 0, "end": 10 }],
|
12 |
+
enzymes = [
|
13 |
+
"EcoRI",
|
14 |
+
"PstI",
|
15 |
+
{
|
16 |
+
"name": "Cas9",
|
17 |
+
"rseq": "NGG", # recognition sequence
|
18 |
+
"fcut": 0, # cut index on FWD strand, relative to start of rseq
|
19 |
+
"rcut": 1, # cut index on REV strand, relative to start of rseq
|
20 |
+
"color": "#D7E5F0", # color to highlight recognition site with
|
21 |
+
"range": {
|
22 |
+
"start": 4,
|
23 |
+
"end": 8,
|
24 |
+
},
|
25 |
+
},
|
26 |
+
],
|
27 |
+
)
|
requirements.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
streamlit
|
2 |
+
streamlit-seqviz --index-url https://gitlab.com/api/v4/projects/46186878/packages/pypi/simple
|