Graph from a table of ontology relationsSource:
Graph from a table of ontology relations
A data frame of ontology relations (the "relations" element of the list returned by
obo_parserin case its argument `tables` is
By default the relations point from child to parents, the edges in the
graph will be of the same direction. Use
on the data frame to reverse the direction.
go <- get_db('go_basic') go_graph <- relations_table_to_graph(go$relations)