powered by
Using m/z and isotope distributions for each element, find possible molecular formulas within allowed error margin
getFormula( mz, add_name, adducts, ppm, elements = c("C", "H", "N", "O", "P", "S") )
M/z of interest
Which adducts to consider
Full adduct table (data(adducts) loads it into memory)
Allowed error margin in parts per million
Considered elements in formula generation, Default: c("C", "H", "N", "O", "P", "S")
Table with found formulas, their adduct and isotope percentage.
str_match initializeCHNOPS
str_match
initializeCHNOPS
# NOT RUN { getFormula(170, "[M+H]1+", adducts, 3) # }
Run the code above in your browser using DataLab