File size: 635 Bytes
a6b0878
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import streamlit as st
from Bio import SeqIO
from Predictor import predict_file, predict_raw

st.title("5' UTR prediction")

st.subheader("Input sequence")
#x = st.slider('Select a value')
# seq = ""
seq = st.text_input("Input your sequence here", value="")
st.subheader("Upload sequence file")
uploaded = st.file_uploader("Sequence file in FASTA format")
# if uploaded:
    # predict_file(uploaded)
    # seq = SeqIO.read(uploaded, "fasta").seq
st.subheader("Prediction result:")
if st.button("Predict"):
    if uploaded:
        predict_file(uploaded)
    else:
        predict_raw(seq)
    # st.write("Sequence length = ", len(seq))