Learn R Programming

specmine (version 3.1.6)

convert_multiple_spcmnm_to_kegg: Convert specmine metabolite codes to KEGG codes.

Description

Converts a vector of specmine metabolite 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_multiple_spcmnm_to_kegg(spcmnm_codes)

Arguments

spcmnm_codes

Vector with the SPCMNM codes (each chebi must be structured like: SPCMNM<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_multiple_spcmnm_to_kegg(c("SPCMNM2111", "SPCMNM2142", "SPCMNM069774"))
keggs
# }

Run the code above in your browser using DataLab