|
a |
|
b/man/getMetaboliteMapping.Rd |
|
|
1 |
% Generated by roxygen2: do not edit by hand |
|
|
2 |
% Please edit documentation in R/feature_processing.R |
|
|
3 |
\name{getMetaboliteMapping} |
|
|
4 |
\alias{getMetaboliteMapping} |
|
|
5 |
\title{Mapping between pathway encoded metabolites and different metabolite ID |
|
|
6 |
formats.} |
|
|
7 |
\usage{ |
|
|
8 |
getMetaboliteMapping(features, keytype, returntype = "HMDB") |
|
|
9 |
} |
|
|
10 |
\arguments{ |
|
|
11 |
\item{features}{List of identifiers to be mapped.} |
|
|
12 |
|
|
|
13 |
\item{keytype}{String specifying the ID type, e.g., "ChEBI" or "KEGGCOMP".} |
|
|
14 |
|
|
|
15 |
\item{returntype}{String that specifies the returning ID type. |
|
|
16 |
Default: HMDB |
|
|
17 |
Options: HMDB, CAS, DTXCID, DTXSID, SID, CID, ChEBI, KEGG, Drugbank} |
|
|
18 |
} |
|
|
19 |
\value{ |
|
|
20 |
List containing mapped gene/protein IDs. |
|
|
21 |
} |
|
|
22 |
\description{ |
|
|
23 |
Function to retrieve the metabolite identifier mapping. Ongoing from |
|
|
24 |
metabolites retrieved from pathway definitions, which often include two or |
|
|
25 |
more ID formats, this function maps those IDs to a given format. The complete |
|
|
26 |
mapping table based on \href{https://comptox.epa.gov/dashboard}{Comptox |
|
|
27 |
Dashboard}, \href{https://pubchem.ncbi.nlm.nih.gov/}{PubChem}, |
|
|
28 |
\href{https://hmdb.ca/}{HMDB}, and \href{https://www.ebi.ac.uk/chebi}{ChEBI} |
|
|
29 |
is provided in the AnnotationHub package metaboliteIDmapping. |
|
|
30 |
} |
|
|
31 |
\examples{ |
|
|
32 |
features <- graphite::nodes(graphite::pathways("hsapiens", "kegg")[[1]], which = "metabolites") |
|
|
33 |
features <- gsub("KEGGCOMP:", "", features) |
|
|
34 |
keytype <- "KEGG" |
|
|
35 |
|
|
|
36 |
getMetaboliteMapping(features, keytype) |
|
|
37 |
|
|
|
38 |
getMetaboliteMapping(features, keytype = "KEGG", returntype = "CID") |
|
|
39 |
|
|
|
40 |
} |