Andrew Stirn commited on
Commit
cf3bd3a
·
1 Parent(s): f04eae6
Files changed (1) hide show
  1. app.py +9 -5
app.py CHANGED
@@ -12,12 +12,16 @@ def run_with_input(reset=False):
12
  st.write("model prediction: ", returned_x)
13
  return csv_x
14
 
15
- st.title("Tiger gen prediction")
 
 
16
  st.session_state['userInput'] = ""
17
- st.session_state["userInput"] = st.text_input('type gen sequence')
18
- csv_data = pd.DataFrame.from_dict({"Gene": [""], "res":[0.0]}).to_csv()
19
- if len(st.session_state['userInput']) < 23:
20
- st.write("Sorry your input length must be at least 23 bases. It is %s chars"%len(st.session_state['userInput']))
 
 
21
  run_with_input(reset=True)
22
  elif all([True if item in "ACGTacgt" else False for item in st.session_state['userInput']]):
23
  st.write('This is your sequence', st.session_state["userInput"])
 
12
  st.write("model prediction: ", returned_x)
13
  return csv_x
14
 
15
+
16
+ # title and instructions
17
+ st.title('TIGER Cas13 Efficacy Prediction')
18
  st.session_state['userInput'] = ""
19
+ st.session_state["userInput"] = st.text_input('Enter target transcript (or substring):')
20
+
21
+
22
+ csv_data = pd.DataFrame.from_dict({'Target Site': [''], 'LFC': [0.0]}).to_csv()
23
+ if len(st.session_state['userInput']) < trun.GUIDE_LEN:
24
+ st.write('Transcript length must be >= 23 bases. It is {:d} chars'.format(len(st.session_state['userInput'])))
25
  run_with_input(reset=True)
26
  elif all([True if item in "ACGTacgt" else False for item in st.session_state['userInput']]):
27
  st.write('This is your sequence', st.session_state["userInput"])