How to get all descendants of a GO-term OR how to identifiy if a GO-term is an ancestor of another?
1
0
Entering edit mode
3.9 years ago
aquaq ▴ 40

Hi All,

I am using goatools in python and I was wondering if there are any easy ways, without iteratively looping through the tree, to determine all the descendants of a GO term. Alternatively, is there a way to determine whether a GO-term is a descendant (of any level) of another GO-term?

Thank you for your help!

goatools python go • 1.4k views
ADD COMMENT
0
Entering edit mode
3.9 years ago
aquaq ▴ 40

Finally I found: go_term.get_all_parents() would give me all parents with 'is a' relation, that is good enough for my purposes.

ADD COMMENT

Login before adding your answer.

Traffic: 1792 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6