Skip to content

Commit

Permalink
Fixed bug in leftover synonym generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav committed May 5, 2023
1 parent 2681beb commit 83e83c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/createcompendia/leftover_umls.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def umls_type_to_biolink_type(umls_tui):
id, relation, synonym = line.rstrip().split('\t')
if id in umls_ids_in_this_compendium:
# Add this synonym to the set of synonyms for this identifier.
if id not in synonyms:
if id not in synonyms_by_id:
synonyms_by_id[id] = set()
synonyms_by_id[id].add(synonym)

Expand Down

0 comments on commit 83e83c7

Please sign in to comment.