parse_fobi: Parse FOBI in a Readable Tabular Format

Description Usage Arguments Value Author(s) References Examples

View source: R/parse_fobi.R

Description

This function allows users to download and parse the last version of the Food-Biomarker Ontology into a readable table format.

Usage

1

Arguments

terms

A character vector with FOBI term IDs. Default is NULL.

get

A character string indicating desired relationships between provided terms. Options are 'anc' (for ancestors) and 'des' (for descendants). Default is NULL and only information of single input terms will be provided.

Value

A tibble with FOBI terms information.

Author(s)

Pol Castellano-Escuder

References

Pol Castellano-Escuder, Raúl González-Domínguez, David S Wishart, Cristina Andrés-Lacueva, Alex Sánchez-Pla, FOBI: an ontology to represent food intake data and associate it with metabolomic data, Database, Volume 2020, 2020, baaa033, https://doi.org/10.1093/databa/baaa033.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Download and parse whole FOBI
fobi <- parse_fobi()

# Download and parse 'apple' related terms
fobi_apple <- parse_fobi(terms = "FOODON:00002473")

# Download and parse 'apple' term ancestors
fobi_apple_anc <- parse_fobi(terms = "FOODON:00002473", get = "anc")

# Download and parse 'apple' and 'alpha-Chaconine' related terms
fobi_subset <- parse_fobi(terms = c("FOODON:00002473", "CHEBI:10219"))

pcastellanoescuder/FOBIEnrichR documentation built on Jan. 15, 2022, 8:03 a.m.