Learn R Programming

specmine (version 3.1.6)

convert_hmdb_to_kegg: Convert HMDB codes to KEGG codes.

Description

Converts a vector of HMDB codes into a vector of the corresponding KEGG codes. This is performed by using our internal library used in NMR identification, it will not have all chebi codes.

Usage

convert_hmdb_to_kegg(hmdb_codes)

Arguments

hmdb_codes

Vector with the HMDB codes (each hmdb code must have 7 digits, e.g., HMDB0000001)

Value

Named vector with kegg codes and respective names. Vector names are the compound names and the vector elements the kegg codes.

Examples

Run this code
# NOT RUN {
keggs=convert_hmdb_to_kegg(c("HMDB0000001", "HMDB0000008", "HMDB0000246"))
keggs
# }

Run the code above in your browser using DataLab