Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
saramsey committed Jul 18, 2023
1 parent a6efa6b commit 95208e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions disgenet_tsv_to_kg_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,10 @@ def make_edges(input_file: str, test_mode: bool):
predicate,
DISGENET_KB_CURIE,
update_date)
publication = kg2_util.CURIE_PREFIX_PMID + ':' + pmid
edge['publications'] = [publication]
edge['publications'] = []
if pmid is not None and pmid != '':
publication = kg2_util.CURIE_PREFIX_PMID + ':' + pmid
edge['publications'].append(publication)
edges.append(edge)
return edges

Expand Down

0 comments on commit 95208e2

Please sign in to comment.