Spaces:
Sleeping
Sleeping
supercat666
commited on
Commit
·
56b7c8f
1
Parent(s):
c4a9d91
edit app.py
Browse files
app.py
CHANGED
@@ -182,8 +182,13 @@ if selected_model == 'Cas9':
|
|
182 |
|
183 |
# Process predictions
|
184 |
if predict_button and gene_symbol:
|
|
|
185 |
with st.spinner('Predicting... Please wait'):
|
186 |
-
|
|
|
|
|
|
|
|
|
187 |
sorted_predictions = sorted(predictions)[:10]
|
188 |
st.session_state['on_target_results'] = sorted_predictions
|
189 |
st.session_state['gene_sequence'] = gene_sequence # Save gene sequence in session state
|
|
|
182 |
|
183 |
# Process predictions
|
184 |
if predict_button and gene_symbol:
|
185 |
+
model_choice = st.radio("mutation or not:", ('normal', 'mutation'))
|
186 |
with st.spinner('Predicting... Please wait'):
|
187 |
+
if model_choice == 'cas9attvcf':
|
188 |
+
predictions, gene_sequence, exons = cas9attvcf.process_gene(gene_symbol, cas9att_path)
|
189 |
+
else:
|
190 |
+
predictions, gene_sequence, exons = cas9att.process_gene(gene_symbol, cas9att_path)
|
191 |
+
|
192 |
sorted_predictions = sorted(predictions)[:10]
|
193 |
st.session_state['on_target_results'] = sorted_predictions
|
194 |
st.session_state['gene_sequence'] = gene_sequence # Save gene sequence in session state
|