syedislamuddin commited on
Commit
517ed73
·
1 Parent(s): a31ca96

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -12
app.py CHANGED
@@ -86,10 +86,10 @@ class CodeGenerator:
86
  return str(self.code)
87
 
88
 
89
- def ForeCastBE(target_seq,method,select_method):
90
  Editing_Efficiency = st.radio(
91
  "Base Editing_Efficiency Calculator (FORECasT-BE)",
92
- ('No', 'Yes'),horizontal=True)
93
 
94
  if Editing_Efficiency=='Yes':
95
  Editor = st.radio(
@@ -286,7 +286,7 @@ def BEDICT(method,select_method):
286
  st.markdown(caution,unsafe_allow_html=True)
287
  target_seq=display_res(method,',','rs_id',select_method)
288
  if len(target_seq)>0 and target_seq[0]!=0:
289
- ForeCastBE(target_seq ,method,select_method)
290
 
291
  #ChopChop
292
  def Chopchop(method,select_method):
@@ -722,7 +722,7 @@ def Pnbdesigner(method,select_method):
722
  target_seq = display_res(method,',','query',select_method)
723
  #st.write(target_seq)
724
  if len(target_seq)>0 and target_seq[0]!=0:
725
- ForeCastBE(target_seq ,method,select_method)
726
 
727
 
728
  #SNP_CRISPR
@@ -1378,14 +1378,7 @@ else:
1378
  ('Cas13a', 'CasX_TTCN','Cpf1_TTN','CRISPR-CAS9_NGG', 'Nickase_NGG','Nickase_NRG'))
1379
 
1380
  ECRISP = st.sidebar.checkbox('E-CRISP',key=3)
1381
- if ECRISP:
1382
- ecrisp('E-CRISP')
1383
- #select_method_ChopChop='ChopChop'
1384
- #method_chopchop = st.sidebar.radio(
1385
- # "Please select an option",
1386
- # ('Cas13a', 'CasX_TTCN','Cpf1_TTN','CRISPR-CAS9_NGG', 'Nickase_NGG','Nickase_NRG'))
1387
-
1388
-
1389
  GuideScan2 = st.sidebar.checkbox('GuideScan2',key=4)
1390
  if GuideScan2:
1391
  select_method_GuideScan2='GuideScan2'
@@ -1423,6 +1416,15 @@ else:
1423
  if ChopChop and select_method_ChopChop == "ChopChop":
1424
  Chopchop(method_chopchop,select_method_ChopChop)
1425
 
 
 
 
 
 
 
 
 
 
1426
  if GuideScan2 and select_method_GuideScan2 == "GuideScan2":
1427
  Guidescan2(method_GuideScan2,select_method_GuideScan2)
1428
 
 
86
  return str(self.code)
87
 
88
 
89
+ def ForeCastBE(target_seq,method,select_method,key):
90
  Editing_Efficiency = st.radio(
91
  "Base Editing_Efficiency Calculator (FORECasT-BE)",
92
+ ('No', 'Yes'),horizontal=True,key=key)
93
 
94
  if Editing_Efficiency=='Yes':
95
  Editor = st.radio(
 
286
  st.markdown(caution,unsafe_allow_html=True)
287
  target_seq=display_res(method,',','rs_id',select_method)
288
  if len(target_seq)>0 and target_seq[0]!=0:
289
+ ForeCastBE(target_seq ,method,select_method,11111)
290
 
291
  #ChopChop
292
  def Chopchop(method,select_method):
 
722
  target_seq = display_res(method,',','query',select_method)
723
  #st.write(target_seq)
724
  if len(target_seq)>0 and target_seq[0]!=0:
725
+ ForeCastBE(target_seq ,method,select_method,10101010)
726
 
727
 
728
  #SNP_CRISPR
 
1378
  ('Cas13a', 'CasX_TTCN','Cpf1_TTN','CRISPR-CAS9_NGG', 'Nickase_NGG','Nickase_NRG'))
1379
 
1380
  ECRISP = st.sidebar.checkbox('E-CRISP',key=3)
1381
+
 
 
 
 
 
 
 
1382
  GuideScan2 = st.sidebar.checkbox('GuideScan2',key=4)
1383
  if GuideScan2:
1384
  select_method_GuideScan2='GuideScan2'
 
1416
  if ChopChop and select_method_ChopChop == "ChopChop":
1417
  Chopchop(method_chopchop,select_method_ChopChop)
1418
 
1419
+
1420
+ if ECRISP:
1421
+ ecrisp('E-CRISP')
1422
+ #select_method_ChopChop='ChopChop'
1423
+ #method_chopchop = st.sidebar.radio(
1424
+ # "Please select an option",
1425
+ # ('Cas13a', 'CasX_TTCN','Cpf1_TTN','CRISPR-CAS9_NGG', 'Nickase_NGG','Nickase_NRG'))
1426
+
1427
+
1428
  if GuideScan2 and select_method_GuideScan2 == "GuideScan2":
1429
  Guidescan2(method_GuideScan2,select_method_GuideScan2)
1430