Erva Ulusoy commited on
Commit
effe2a1
1 Parent(s): bf55a9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -77,7 +77,7 @@ with domain_tab:
77
  result = find_domains(email, sequence, name)
78
  result_text = result[0]
79
  if result_text == 'Domains found.':
80
- st.success(result_text + 'You can now see function predictions for the sequence in the "Function predictions" tab.')
81
  st.session_state['domain_df'] = result[1]
82
  elif result_text == 'No domains found.':
83
  st.warning(result_text)
@@ -112,7 +112,7 @@ with pred_tab:
112
  else:
113
  with st.spinner('Generating function predictions...'):
114
  cwd = os.getcwd()
115
- mapping_path = "{}Domain2GO/data".format(cwd.split("Domain2GO")[0])
116
  pred_results = generate_function_predictions(st.session_state.domain_df, mapping_path)
117
  pred_result_text = pred_results[0]
118
  if pred_result_text == 'Function predictions found.':
 
77
  result = find_domains(email, sequence, name)
78
  result_text = result[0]
79
  if result_text == 'Domains found.':
80
+ st.success(result_text + ' You can now see function predictions for the sequence in the "Function predictions" tab.')
81
  st.session_state['domain_df'] = result[1]
82
  elif result_text == 'No domains found.':
83
  st.warning(result_text)
 
112
  else:
113
  with st.spinner('Generating function predictions...'):
114
  cwd = os.getcwd()
115
+ mapping_path = "{}/Domain2GO/data".format(cwd.split("Domain2GO")[0])
116
  pred_results = generate_function_predictions(st.session_state.domain_df, mapping_path)
117
  pred_result_text = pred_results[0]
118
  if pred_result_text == 'Function predictions found.':