# Example
data(fasting)
data(pathway)
MET <- colnames(fasting$X) # detected metabolites
M <- pathway$fasting # metabolite set list
# Fix for multiple annotations
MET[MET == "UDP-glucose ; UDP-galactose"] <- "UDP-glucose"
MET[MET == "trans-Glutaconic acid ; Itaconic acid"] <- "Itaconic acid"
MET[MET == "Isonicotinamide ; Nicotinamide"] <- "Nicotinamide"
MET[MET == "Isobutyric acid ; Butyric acid"] <- "Isobutyric acid"
MET[MET == "GDP-mannose ; GDP-galactose"] <- "GDP-mannose"
MET[MET == "ADP-glucose ; GDP-fucose"] <- "ADP-glucose"
MET[MET == "1-Methylhistidine ; 3-Methylhistidine"] <- "3-Methylhistidine"
L <- setlabel(MET, M)
# Example 2
data(fasting_mseapca)
MET <- fasting_mseapca$DET
M <- fasting_mseapca$pathway
L <- setlabel(MET, M)
Run the code above in your browser using DataLab