Skip to content

Commit

Permalink
Merge pull request #637 from biolink/go-site-895-skip-test-if-ontolog…
Browse files Browse the repository at this point in the history
…y-is-not-defined

Skip check if ontology is None
  • Loading branch information
mugitty committed May 19, 2023
2 parents ecbb89f + 7daccc2 commit fb25bfd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ontobio/io/qc.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,9 @@ def make_protein_complex_descendents_if_not_present(self, ontology: Optional[ont

def test(self, annotation: association.GoAssociation, config: assocparser.AssocParserConfig, group=None) -> TestResult:
# An implementation note: This is done by testing if the DB (column 1) is ComplexPortal or DB Object type (column 12) is protein_complex
if config.ontology is None:
return self._result(True)

db = annotation.subject.id.namespace
objecttype = annotation.subject.type
goterm = str(annotation.object.id)
Expand Down

0 comments on commit fb25bfd

Please sign in to comment.