powered by
Wrapper function to predict formulas and then consider adducts as well.
getPredicted( mz, ppm = 2, mode = "positive", rules = c("senior", "lewis", "hc", "chnops", "nops"), elements = c("C", "H", "N", "O", "P", "S"), search = c("PubChem", "ChemSpider"), detailed = TRUE, calc_adducts = adducts[Ion_mode == mode, ]$Name, adduct_table = adducts )
M/z of interest
Error margin in parts per million, Default: 2
M/z found in positive or negative mode?, Default: 'positive'
Which golden rules to apply?, Default: c("senior", "lewis", "hc", "chnops", "nops")
Which elements to consider?, Default: c("C", "H", "N", "O", "P", "S")
Check the found formulas on PubChem or ChemSpider?, Default: c("PubChem", "ChemSpider")
Look up details like description etc. if hit found? Makes things slower!, Default: TRUE
Which adducts to consider?, Default: adducts[Ion_mode == mode, ]$Name
Adduct table to use, referred to by 'calc_adducts'. Allows use for custom 'adducts' such as in-source fragments etc.
Table of found matches and associated info
rbindlist check_chemform
rbindlist
check_chemform
# NOT RUN { getPredicted(mz = 170, ppm = 2, mode = "positive", rules = c("hc", "chnops", "nops"), elements = c("C","H","O")) # }
Run the code above in your browser using DataLab