You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to access the children of a relationship? For example, with the method term.subclasses() I can access all the inverse is_a relationships. Is there a way to access other relationships this way? E.g regulates in GO?
I am new to the use of ontologies, so I am not sure if that's the case, but this example from the documentation seems to be doing exactly that.
NotImplementedWarning: `Term.objects` is not semantically correct, most of the logic rules have not been implemented. Consider using an actual reasoner instead.
list(go['GO:0048870'].objects(go.get_relationship('part_of')))
Any tips on this?
The text was updated successfully, but these errors were encountered:
The warning is a little confusing, and I think it's actually a red herring/false positive.
The issue here is that GO changed since the documentation was written, and this term has no direct part-of relationships any more. The actual return value of [] is correct
Try another term, it will give results, without warning:
Hi @cmungall thanks for the detailed response and the examples, and sorry for the super-late answer. I tried your example and indeed it works. However, I think my question was not well formulated, I meant to ask whether it was possible to get the inverse relationship (what I would think of as a child). For example, for the term GO:0006366, get all these children and the relationship that links them to GO:0006366:
Is it possible to access the children of a relationship? For example, with the method
term.subclasses()
I can access all the inverseis_a
relationships. Is there a way to access other relationships this way? E.gregulates
in GO?I am new to the use of ontologies, so I am not sure if that's the case, but this example from the documentation seems to be doing exactly that.
However, when I run it I get this:
Any tips on this?
The text was updated successfully, but these errors were encountered: