relations_table_to_list: Nested list from a table of ontology relations

View source: R/ontology.R

relations_table_to_listR Documentation

Nested list from a table of ontology relations

Description

Nested list from a table of ontology relations

Usage

relations_table_to_list(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).

Value

The relations converted to a nested list.

See Also

  • relations_list_to_table

  • swap_relations

  • obo_parser

Examples

goslim_url <-
    "http://current.geneontology.org/ontology/subsets/goslim_generic.obo"
path <- tempfile()
httr::GET(goslim_url, httr::write_disk(path, overwrite = TRUE))
obo <- obo_parser(path, tables = TRUE)
unlink(path)
rel_list <- relations_table_to_list(obo$relations)


saezlab/OmnipathR documentation built on Nov. 10, 2024, 11:02 p.m.