Skip to content

Commit

Permalink
Add underscore to GO_REF:0000033 for geneontology/go-site#2185
Browse files Browse the repository at this point in the history
  • Loading branch information
dustine32 committed Jan 17, 2024
1 parent 4fb06d3 commit 06ebfda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ontobio/io/qc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 06ebfda

Please sign in to comment.