Spaces:
Runtime error
Runtime error
Kévin Yauy
commited on
Commit
·
883337e
1
Parent(s):
d199b2f
fix(update): update similarity dict to 2024 and remove unavailable similar terms
Browse files
data/resources/{similarity_dict_threshold_80.json → similarity_dict_threshold_80_2024.json}
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8eee4719b73a522ce293714c6ba018fd0e12da806641676adab5db4f9c6390cb
|
3 |
+
size 38192094
|
phenogenius_app.py
CHANGED
@@ -117,7 +117,7 @@ def load_topic_data():
|
|
117 |
|
118 |
@st.cache_data(hash_funcs={"_json.Scanner": hash}, max_entries=50)
|
119 |
def load_similarity_dict():
|
120 |
-
with open("data/resources/
|
121 |
data_dict = json.load(json_data)
|
122 |
return data_dict
|
123 |
|
@@ -390,7 +390,8 @@ if submit_button:
|
|
390 |
key="download-csv-proj",
|
391 |
)
|
392 |
|
393 |
-
sim_dict,
|
|
|
394 |
similar_list = list(set(hpo_list_add) - set(hpo_list))
|
395 |
similar_list_desc = get_hpo_name_list(similar_list, hp_onto)
|
396 |
|
|
|
117 |
|
118 |
@st.cache_data(hash_funcs={"_json.Scanner": hash}, max_entries=50)
|
119 |
def load_similarity_dict():
|
120 |
+
with open("data/resources/similarity_dict_threshold_80_2024.json") as json_data:
|
121 |
data_dict = json.load(json_data)
|
122 |
return data_dict
|
123 |
|
|
|
390 |
key="download-csv-proj",
|
391 |
)
|
392 |
|
393 |
+
sim_dict, hpo_list_add_raw = get_similar_terms(hpo_list, similarity_terms_dict)
|
394 |
+
hpo_list_add = list(set(hpo_list_add_raw) & set(data.columns.tolist()))
|
395 |
similar_list = list(set(hpo_list_add) - set(hpo_list))
|
396 |
similar_list_desc = get_hpo_name_list(similar_list, hp_onto)
|
397 |
|