Converting a list of GO terms to a directed acyclic graph #506
Unanswered
Tim-Kirkwood
asked this question in
Q&A
Replies: 2 comments 2 replies
-
@sierra-moxon - tagging myself so that I don't lose track of this issue. |
Beta Was this translation helpful? Give feedback.
0 replies
-
It's not a web API, but the ROBOT tool has good support for this (whether you get a DAG is a bit dependent on the input though). The extract command provides a few different strategies. I think either |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I am making an app using Python and, as part of this, I would like to convert a collection of GO terms, associated with a single protein, to a DAG. As an example of such a list:
cardiac muscle cell development [GO:0055013]; cardiac muscle contraction [GO:0060048]; cardiac muscle hypertrophy [GO:0003300]; cardiac muscle tissue morphogenesis [GO:0055008]; cardiac myofibril assembly [GO:0055003]; detection of muscle stretch [GO:0035995]; mitotic chromosome condensation [GO:0007076]; muscle contraction [GO:0006936]; positive regulation of gene expression [GO:0010628]; positive regulation of protein secretion [GO:0050714]; protein kinase A signaling [GO:0010737]; response to calcium ion [GO:0051592]; sarcomere organization [GO:0045214]; sarcomerogenesis [GO:0048769]; skeletal muscle myosin thick filament assembly [GO:0030241]; skeletal muscle thin filament assembly [GO:0030240]; striated muscle contraction [GO:0006941]
In the DAG, I expect the
response to calcium ion [GO:0051592]
node would have an edge pointing to all of the muscle contraction terms (if we assume that the edges are from parent to child terms, child to parent is also fine).I'm happy making the graph, but I'm not sure how to get the edges and their directions. Also, I would like to ignore any terms that are not in the list, unless they are the only connection joining one of the list terms to another. Ideally i'd like to get this via the API, but I will also be looking into goatools.
If anyone else can offer any tips please let me know!
Beta Was this translation helpful? Give feedback.
All reactions