Spaces:
Running
Running
Erva Ulusoy
commited on
Commit
·
25123c8
1
Parent(s):
1e273b2
explain the usage of search proteins menu
Browse files- ProtHGT_app.py +3 -2
ProtHGT_app.py
CHANGED
|
@@ -108,9 +108,10 @@ with st.sidebar:
|
|
| 108 |
selected_proteins = st.session_state.example_proteins
|
| 109 |
|
| 110 |
elif selection_method == "Search proteins":
|
|
|
|
| 111 |
# User enters search term
|
| 112 |
search_query = st.text_input(
|
| 113 |
-
"Start typing a protein ID (at least 3 characters)",
|
| 114 |
"",
|
| 115 |
disabled=disabled
|
| 116 |
)
|
|
@@ -127,7 +128,7 @@ with st.sidebar:
|
|
| 127 |
filtered_proteins = [match[0] for match in matches] # Show top 50 matches
|
| 128 |
|
| 129 |
selected_proteins = st.multiselect(
|
| 130 |
-
"Select proteins from search results",
|
| 131 |
options=filtered_proteins,
|
| 132 |
placeholder="Start typing to search...",
|
| 133 |
max_selections=100,
|
|
|
|
| 108 |
selected_proteins = st.session_state.example_proteins
|
| 109 |
|
| 110 |
elif selection_method == "Search proteins":
|
| 111 |
+
|
| 112 |
# User enters search term
|
| 113 |
search_query = st.text_input(
|
| 114 |
+
"1\\. Start typing a protein ID (at least 3 characters) and press Enter to see search results in the dropdown menu below",
|
| 115 |
"",
|
| 116 |
disabled=disabled
|
| 117 |
)
|
|
|
|
| 128 |
filtered_proteins = [match[0] for match in matches] # Show top 50 matches
|
| 129 |
|
| 130 |
selected_proteins = st.multiselect(
|
| 131 |
+
"2\\. Select proteins from search results",
|
| 132 |
options=filtered_proteins,
|
| 133 |
placeholder="Start typing to search...",
|
| 134 |
max_selections=100,
|