Spaces:
Sleeping
Sleeping
add enzyme buttons
Browse files
app.py
CHANGED
@@ -12,40 +12,29 @@ CRISPR_MODELS = ['Cas9', 'Cas12', 'Cas13d']
|
|
12 |
|
13 |
selected_model = st.selectbox('Select CRISPR model:', CRISPR_MODELS, key='selected_model')
|
14 |
|
15 |
-
|
16 |
# Check if the selected model is Cas9
|
17 |
if selected_model == 'Cas9':
|
18 |
-
#
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
st.session_state['spcas9_hf1'] = False
|
29 |
pass
|
30 |
-
|
31 |
-
|
32 |
-
st.session_state['spcas9_u6'] = False
|
33 |
-
st.session_state['esp_cas9'] = False
|
34 |
-
st.session_state['spcas9_hf1'] = False
|
35 |
pass
|
36 |
-
|
37 |
-
|
38 |
-
st.session_state['spcas9_u6'] = False
|
39 |
-
st.session_state['spcas9_t7'] = False
|
40 |
-
st.session_state['spcas9_hf1'] = False
|
41 |
pass
|
42 |
-
|
43 |
-
|
44 |
-
st.session_state['spcas9_u6'] = False
|
45 |
-
st.session_state['spcas9_t7'] = False
|
46 |
-
st.session_state['esp_cas9'] = False
|
47 |
pass
|
48 |
-
# Placeholder for action when SPCas9_HF1 is clicked
|
49 |
elif selected_model == 'Cas12':
|
50 |
# Placeholder for Cas12 model loading
|
51 |
# TODO: Implement Cas12 model loading logic
|
|
|
12 |
|
13 |
selected_model = st.selectbox('Select CRISPR model:', CRISPR_MODELS, key='selected_model')
|
14 |
|
15 |
+
|
16 |
# Check if the selected model is Cas9
|
17 |
if selected_model == 'Cas9':
|
18 |
+
# Use a radio button to select enzymes, making sure only one can be selected at a time
|
19 |
+
enzyme_selection = st.radio(
|
20 |
+
"Select an enzyme:",
|
21 |
+
('SPCas9_U6', 'SPCas9_t7', 'eSPCas9', 'SPCas9_HF1'),
|
22 |
+
key='enzyme_selection'
|
23 |
+
)
|
24 |
+
|
25 |
+
# Actions based on the selected enzyme
|
26 |
+
if enzyme_selection == 'SPCas9_U6':
|
27 |
+
# Placeholder for action when SPCas9_U6 is selected
|
|
|
28 |
pass
|
29 |
+
elif enzyme_selection == 'SPCas9_t7':
|
30 |
+
# Placeholder for action when SPCas9_t7 is selected
|
|
|
|
|
|
|
31 |
pass
|
32 |
+
elif enzyme_selection == 'eSPCas9':
|
33 |
+
# Placeholder for action when eSPCas9 is selected
|
|
|
|
|
|
|
34 |
pass
|
35 |
+
elif enzyme_selection == 'SPCas9_HF1':
|
36 |
+
# Placeholder for action when SPCas9_HF1 is selected
|
|
|
|
|
|
|
37 |
pass
|
|
|
38 |
elif selected_model == 'Cas12':
|
39 |
# Placeholder for Cas12 model loading
|
40 |
# TODO: Implement Cas12 model loading logic
|