From 6fb40a8ecf95d6958fdf6c7fa1e7fc89a58c9756 Mon Sep 17 00:00:00 2001 From: andrawaag Date: Wed, 6 Feb 2019 22:18:48 +0100 Subject: [PATCH] updated the reference URL as a partial sollution for #28 --- scheduled_bots/geneprotein/GOBot.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scheduled_bots/geneprotein/GOBot.py b/scheduled_bots/geneprotein/GOBot.py index b612271..6a60d6a 100644 --- a/scheduled_bots/geneprotein/GOBot.py +++ b/scheduled_bots/geneprotein/GOBot.py @@ -77,12 +77,11 @@ def make_go_ref(curator, pmid_map, external_id, uniprot_id, evidence_wdid, retri # reference URL # ref_url = "http://www.ebi.ac.uk/QuickGO/GAnnotation?protein={}".format(uniprot_id) - ref_url = "http://www.ebi.ac.uk/QuickGO/annotations?protein={}&geneProductId=UniProtKB:{}".format(uniprot_id, - uniprot_id) - reference.append(wdi_core.WDString(ref_url, 'P854', is_reference=True)) + ref_url = "http://www.ebi.ac.uk/QuickGO/annotations?geneProductId=UniProtKB:{}".format(uniprot_id) + reference.append(wdi_core.WDString(ref_url, 'P854', is_reference=True)) # P854 = "reference URL" # ref determination method - reference.append(wdi_core.WDItemID(evidence_wdid, 'P459', is_reference=True)) + reference.append(wdi_core.WDItemID(evidence_wdid, 'P459', is_reference=True)) # P459 = determination model return reference