Spaces:
Runtime error
Runtime error
Commit
·
00527f1
1
Parent(s):
15775d8
Upload app.py
Browse files
app.py
CHANGED
|
@@ -16,6 +16,14 @@ import time
|
|
| 16 |
import os
|
| 17 |
from PIL import Image
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
st.set_page_config(layout="wide")
|
| 20 |
st.markdown(
|
| 21 |
"""
|
|
@@ -89,13 +97,13 @@ def ForeCastBE(target_seq,method,select_method):
|
|
| 89 |
('ABE', 'CBE'),horizontal=True)
|
| 90 |
|
| 91 |
if len(variant_spl)>1:
|
| 92 |
-
fname=variant_spl[1]+method+select_method+'.fasta'
|
| 93 |
-
res_fname=fname+"_"+Editor+
|
| 94 |
|
| 95 |
#snpid=variant_spl[1]
|
| 96 |
else:
|
| 97 |
-
fname=variant_spl[0]+method+select_method+'.fasta'
|
| 98 |
-
res_fname=fname+"_"+Editor+
|
| 99 |
|
| 100 |
#snpid=variant_spl[0]
|
| 101 |
f = open(fname, "w")
|
|
@@ -1006,12 +1014,6 @@ def display_res(method,sep,rsid,select_method):
|
|
| 1006 |
|
| 1007 |
|
| 1008 |
|
| 1009 |
-
cwd=os.getcwd()+'/'+'data/'
|
| 1010 |
-
|
| 1011 |
-
#get snps list
|
| 1012 |
-
snps = pd.read_csv("SNPS.csv")
|
| 1013 |
-
variants=snps['GENE:SNP'].unique()
|
| 1014 |
-
variants_s=sorted(variants,key=len)
|
| 1015 |
|
| 1016 |
caution = '<p style="font-family:sans-serif; color:Red; font-size: 18px;">Please note that not (necessarily) all variants are targetted.</p>'
|
| 1017 |
|
|
|
|
| 16 |
import os
|
| 17 |
from PIL import Image
|
| 18 |
|
| 19 |
+
cwd=os.getcwd()+'/'+'data/'
|
| 20 |
+
|
| 21 |
+
#get snps list
|
| 22 |
+
snps = pd.read_csv("SNPS.csv")
|
| 23 |
+
variants=snps['GENE:SNP'].unique()
|
| 24 |
+
variants_s=sorted(variants,key=len)
|
| 25 |
+
|
| 26 |
+
|
| 27 |
st.set_page_config(layout="wide")
|
| 28 |
st.markdown(
|
| 29 |
"""
|
|
|
|
| 97 |
('ABE', 'CBE'),horizontal=True)
|
| 98 |
|
| 99 |
if len(variant_spl)>1:
|
| 100 |
+
fname=cwd+variant_spl[1]+"_"+method+"_"+select_method+'.fasta'
|
| 101 |
+
res_fname=fname+"_"+Editor+'.csv'
|
| 102 |
|
| 103 |
#snpid=variant_spl[1]
|
| 104 |
else:
|
| 105 |
+
fname=cwd+variant_spl[0]+"_"+method+"_"+select_method+'.fasta'
|
| 106 |
+
res_fname=fname+"_"+Editor+'.csv'
|
| 107 |
|
| 108 |
#snpid=variant_spl[0]
|
| 109 |
f = open(fname, "w")
|
|
|
|
| 1014 |
|
| 1015 |
|
| 1016 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1017 |
|
| 1018 |
caution = '<p style="font-family:sans-serif; color:Red; font-size: 18px;">Please note that not (necessarily) all variants are targetted.</p>'
|
| 1019 |
|