| relations_table_to_list {OmnipathR} | R Documentation |
Nested list from a table of ontology relations
relations_table_to_list(relations)
relations |
A data frame of ontology relations (the "relations"
element of the list returned by |
The relations converted to a nested list.
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)