Spaces:
Running
Running
Erva Ulusoy
commited on
Commit
·
95173ca
1
Parent(s):
fcbba9e
Update ProtHGT_app.py
Browse files- ProtHGT_app.py +3 -3
ProtHGT_app.py
CHANGED
@@ -105,8 +105,8 @@ with st.sidebar:
|
|
105 |
if len(search_query) >= 3:
|
106 |
# Case-insensitive search by converting query and proteins to lowercase
|
107 |
matches = process.extract(
|
108 |
-
search_query.
|
109 |
-
{p: p.
|
110 |
limit=50,
|
111 |
score_cutoff=50 # Optional: only include matches above 50% similarity
|
112 |
)
|
@@ -122,7 +122,7 @@ with st.sidebar:
|
|
122 |
|
123 |
if selected_proteins:
|
124 |
st.write(f"Selected {len(selected_proteins)} proteins")
|
125 |
-
|
126 |
else:
|
127 |
uploaded_file = st.file_uploader(
|
128 |
"Upload a text file with UniProt IDs (one per line, max 100)*",
|
|
|
105 |
if len(search_query) >= 3:
|
106 |
# Case-insensitive search by converting query and proteins to lowercase
|
107 |
matches = process.extract(
|
108 |
+
search_query.upper(),
|
109 |
+
{p: p.upper() for p in available_proteins},
|
110 |
limit=50,
|
111 |
score_cutoff=50 # Optional: only include matches above 50% similarity
|
112 |
)
|
|
|
122 |
|
123 |
if selected_proteins:
|
124 |
st.write(f"Selected {len(selected_proteins)} proteins")
|
125 |
+
|
126 |
else:
|
127 |
uploaded_file = st.file_uploader(
|
128 |
"Upload a text file with UniProt IDs (one per line, max 100)*",
|