This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How To Get Dag Level Of A Gene Ontology Term Using Bioconductor

How to get the DAG tree level of a gene ontology term using R and Bioconductor? I looked and I couldn't find nothing in GO.db or related packages

Any ideas?

Thanks

gene bioconductor ontology r

One potential problem you'll face is that there really is no "level" in the GO DAG as it is not a strictly hierarchical structure, ie. a child node can have multiple parent nodes, there are several paths to the same node. You can try to define the level by the number of nodes in the shortest path it takes to get to the node or longest path, or average number of nodes....etc. It might not be the best metric to use.

OK; I see, thanks Damian, I'll try to face the problem converting the GO terms as a graph and getting the path

1 answer

It has been supported in the dnet package: http://supfam.org/dnet/visDAG.html

Log in to answer this question.