aksell commited on
Commit
a5100f8
·
1 Parent(s): c2b2898

Hide manual labeling behind selector

Browse files

It is hard to use. And I hope people won't need to use
it.

hexviz/🧬Attention_Visualization.py CHANGED
@@ -24,18 +24,6 @@ selected_chains = st.sidebar.multiselect(label="Select Chain(s)", options=chains
24
  st.session_state.selected_chains = selected_chains
25
 
26
 
27
- st.sidebar.markdown(
28
- """
29
- Label residues
30
- ---
31
- """)
32
-
33
- hl_chain = st.sidebar.selectbox(label="Chain to label", options=selected_chains, index=0)
34
- hl_resi_list = st.sidebar.multiselect(label="Selected Residues",options=list(range(1,5000)))
35
-
36
- label_resi = st.sidebar.checkbox(label="Label Residues", value=True)
37
-
38
-
39
  st.sidebar.markdown(
40
  """
41
  Attention parameters
@@ -47,6 +35,11 @@ label_highest = st.sidebar.checkbox("Label highest attention pairs", value=True)
47
  # TODO add avg or max attention as params
48
 
49
 
 
 
 
 
 
50
 
51
 
52
  left, mid, right = st.columns(3)
 
24
  st.session_state.selected_chains = selected_chains
25
 
26
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  st.sidebar.markdown(
28
  """
29
  Attention parameters
 
35
  # TODO add avg or max attention as params
36
 
37
 
38
+ with st.sidebar.expander("Label residues manually"):
39
+ hl_chain = st.selectbox(label="Chain to label", options=selected_chains, index=0)
40
+ hl_resi_list = st.multiselect(label="Selected Residues",options=list(range(1,5000)))
41
+
42
+ label_resi = st.checkbox(label="Label Residues", value=True)
43
 
44
 
45
  left, mid, right = st.columns(3)