Learn R Programming

specmine (version 3.1.6)

convert_chebi_to_kegg: Convert CHEBI codes to KEGG codes.

Description

Converts a vector of CHEBI 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_chebi_to_kegg(chebi_codes)

Arguments

chebi_codes

Vector with the CHEBI codes (each chebi must be structured like: CHEBI:<number>)

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("CHEBI:15377", "CHEBI:26078", "CHEBI:30168"))
keggs
# }

Run the code above in your browser using DataLab