Spaces:
Runtime error
Runtime error
Commit
·
9748737
1
Parent(s):
b2f0411
Upload app.py
Browse files
app.py
CHANGED
@@ -18,6 +18,7 @@ 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()
|
@@ -97,12 +98,12 @@ def ForeCastBE(target_seq,method,select_method):
|
|
97 |
('ABE', 'CBE'),horizontal=True)
|
98 |
|
99 |
if len(variant_spl)>1:
|
100 |
-
fname=
|
101 |
res_fname=fname+"_"+Editor+'.csv'
|
102 |
|
103 |
#snpid=variant_spl[1]
|
104 |
else:
|
105 |
-
fname=
|
106 |
res_fname=fname+"_"+Editor+'.csv'
|
107 |
|
108 |
#snpid=variant_spl[0]
|
@@ -150,10 +151,10 @@ def ForeCastBE(target_seq,method,select_method):
|
|
150 |
|
151 |
#st.write(result.stdout)
|
152 |
#st.write(result.stderr)
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
|
158 |
|
159 |
def transform(df,str):
|
|
|
18 |
|
19 |
cwd=os.getcwd()+'/'+'data/'
|
20 |
|
21 |
+
|
22 |
#get snps list
|
23 |
snps = pd.read_csv("SNPS.csv")
|
24 |
variants=snps['GENE:SNP'].unique()
|
|
|
98 |
('ABE', 'CBE'),horizontal=True)
|
99 |
|
100 |
if len(variant_spl)>1:
|
101 |
+
fname=variant_spl[1]+"_"+method+"_"+select_method+'.fasta'
|
102 |
res_fname=fname+"_"+Editor+'.csv'
|
103 |
|
104 |
#snpid=variant_spl[1]
|
105 |
else:
|
106 |
+
fname=variant_spl[0]+"_"+method+"_"+select_method+'.fasta'
|
107 |
res_fname=fname+"_"+Editor+'.csv'
|
108 |
|
109 |
#snpid=variant_spl[0]
|
|
|
151 |
|
152 |
#st.write(result.stdout)
|
153 |
#st.write(result.stderr)
|
154 |
+
if os.path.exists(fname):
|
155 |
+
os.remove(fname)
|
156 |
+
if os.path.exists(res_fname):
|
157 |
+
os.remove(res_fname)
|
158 |
|
159 |
|
160 |
def transform(df,str):
|