Skip to contents

Identifier translation table from HMDB

Usage

hmdb_id_mapping_table(to, from, entity_type = "metabolite")

Arguments

to

Character or symbol: target ID type. See Details for possible values.

from

Character or symbol: source ID type. See Details for possible values.

entity_type

Character: "gene" and "smol" are short symbols for proteins, genes and small molecules respectively. Several other synonyms are also accepted.

Value

A data frame (tibble) with columns `From` and `To`.

Details

The arguments to and from can be provided either as character or as symbol (NSE). Their possible values are either HMDB XML tag names or synonyms listed at id_types.

Examples

hmdb_kegg <- hmdb_id_mapping_table("kegg", "hmdb")
hmdb_kegg