Description Usage Arguments Value See Also Examples
View source: R/oxy-from_formula.R
Using m/z and isotope distributions for each element, find possible molecular formulas within allowed error margin
1 2 3 4 5 6 7 | getFormula(
mz,
add_name,
adducts,
ppm,
elements = c("C", "H", "N", "O", "P", "S")
)
|
mz |
M/z of interest |
add_name |
Which adducts to consider |
adducts |
Full adduct table (data(adducts) loads it into memory) |
ppm |
Allowed error margin in parts per million |
elements |
Considered elements in formula generation, Default: c("C", "H", "N", "O", "P", "S") |
Table with found formulas, their adduct and isotope percentage.
1 | getFormula(170, "[M+H]1+", adducts, 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.