This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to get all descendants of a GO-term OR how to identifiy if a GO-term is an ancestor of another?

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 answer

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

Log in to answer this question.