View source: R/feature_processing.R
getMetaboliteMapping | R Documentation |
Function to retrieve the metabolite identifier mapping. Ongoing from metabolites retrieved from pathway definitions, which often include two or more ID formats, this function maps those IDs to a given format. The complete mapping table based on Comptox Dashboard, PubChem, HMDB, and ChEBI is provided in the AnnotationHub package metaboliteIDmapping.
getMetaboliteMapping(features, keytype, returntype = "HMDB")
features |
List of identifiers to be mapped. |
keytype |
String specifying the ID type, e.g., "ChEBI" or "KEGGCOMP". |
returntype |
String that specifies the returning ID type. Default: HMDB Options: HMDB, CAS, DTXCID, DTXSID, SID, CID, ChEBI, KEGG, Drugbank |
List containing mapped gene/protein IDs.
features <- graphite::nodes(graphite::pathways("hsapiens", "kegg")[[1]], which = "metabolites")
features <- gsub("KEGGCOMP:", "", features)
keytype <- "KEGG"
getMetaboliteMapping(features, keytype)
getMetaboliteMapping(features, keytype = "KEGG", returntype = "CID")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.