Skip to content

Commit

Permalink
Ignore aspect test result for GPAD - geneontology/pipeline#280
Browse files Browse the repository at this point in the history
  • Loading branch information
dustine32 committed Apr 26, 2022
1 parent 856ce52 commit df15227
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ontobio/io/gpadparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ def parse_line(self, line):

go_rule_results = qc.test_go_rules(assoc, self.config)
for rule, result in go_rule_results.all_results.items():
if isinstance(rule, qc.GoRule28):
# ignore result of GORULE:0000028 since aspect check will always fail for GPAD and get repaired
continue

if result.result_type == qc.ResultType.WARNING:
self.report.warning(line, assocparser.Report.VIOLATES_GO_RULE, "",
msg="{id}: {message}".format(id=rule.id, message=result.message), rule=int(rule.id.split(":")[1]))
Expand Down

0 comments on commit df15227

Please sign in to comment.