Description Usage Arguments Value Examples
View source: R/feature_processing.R
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.
1 | 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.
1 2 3 4 5 6 7 | 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.