From 95208e2f099e6992745adbdfdad641edf56e1e96 Mon Sep 17 00:00:00 2001 From: Stephen Ramsey Date: Tue, 18 Jul 2023 12:09:41 -0700 Subject: [PATCH] #325 --- disgenet_tsv_to_kg_json.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/disgenet_tsv_to_kg_json.py b/disgenet_tsv_to_kg_json.py index 1ff5df3d..689836b0 100755 --- a/disgenet_tsv_to_kg_json.py +++ b/disgenet_tsv_to_kg_json.py @@ -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