From 06ebfda3a3d35ca467d343c3824641a72095d73d Mon Sep 17 00:00:00 2001 From: dustine32 Date: Wed, 17 Jan 2024 13:08:16 -0800 Subject: [PATCH] Add underscore to GO_REF:0000033 for geneontology/go-site#2185 --- ontobio/io/qc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ontobio/io/qc.py b/ontobio/io/qc.py index 2281071d..808b9039 100644 --- a/ontobio/io/qc.py +++ b/ontobio/io/qc.py @@ -517,7 +517,7 @@ def test(self, annotation: association.GoAssociation, config: assocparser.AssocP class GoRule37(GoRule): def __init__(self): - super().__init__("GORULE:0000037", "IBA annotations should ONLY be assigned_by GO_Central and have GOREF:0000033 as a reference", FailMode.HARD) + super().__init__("GORULE:0000037", "IBA annotations should ONLY be assigned_by GO_Central and have GO_REF:0000033 as a reference", FailMode.HARD) def test(self, annotation: association.GoAssociation, config: assocparser.AssocParserConfig, group=None) -> TestResult: # If the evidence code is IBA, then (1) the assigned_by field must be GO_Central and (2) the reference field must be PMID:21873635 @@ -527,7 +527,7 @@ def test(self, annotation: association.GoAssociation, config: assocparser.AssocP result = self._result(True) # By default we pass if evidence == iba_eco: - result = self._result(assigned_by == "GO_Central" and "GOREF:0000033" in references) + result = self._result(assigned_by == "GO_Central" and "GO_REF:0000033" in references) return result