Question: How to get all descendants of a GO-term OR how to identifiy if a GO-term is an ancestor of another?
0
gravatar for aquaq
5 months ago by
aquaq30
aquaq30 wrote:

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!

go python goatools • 171 views
ADD COMMENTlink modified 5 months ago • written 5 months ago by aquaq30
0
gravatar for aquaq
5 months ago by
aquaq30
aquaq30 wrote:

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 COMMENTlink written 5 months ago by aquaq30
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1768 users visited in the last hour