Skip to content

Commit

Permalink
Add test_i304_regulates.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghaibao committed Sep 23, 2024
1 parent 60479ca commit e4c1821
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/test_i304_regulates.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from goatools.gosubdag.gosubdag import GoSubDag
from goatools.obo_parser import GODag


def test_i304_regulates():
godag = GODag("go-basic.obo", optional_attrs=["relationship"])
optional_relationships = {
"regulates",
"negatively_regulates",
"positively_regulates",
}
anc = GoSubDag(
["GO:0019222"], godag, optional_relationships, prt=None
).rcntobj.go2ancestors["GO:0019222"]
assert len(anc) == 4

0 comments on commit e4c1821

Please sign in to comment.