relations_table_to_graph: Graph from a table of ontology relations

relations_table_to_graphR Documentation

Graph from a table of ontology relations

Description

Graph from a table of ontology relations

Usage

relations_table_to_graph(relations)

Arguments

relations

A data frame of ontology relations (the "relations" element of the list returned by obo_parser in case its argument 'tables' is TRUE).

Details

By default the relations point from child to parents, the edges in the graph will be of the same direction. Use swap_relations on the data frame to reverse the direction.

Value

The relations converted to an igraph graph object.

Examples

## Not run: 
go <- get_db('go_basic')
go_graph <- relations_table_to_graph(go$relations)

## End(Not run)


saezlab/OmnipathR documentation built on Oct. 16, 2024, 11:49 a.m.