Description Usage Arguments Value Examples
mz_calculate
returns the exact mass of a molecule based on the
molecular formula or it will return the expected m/z based on the
gain or loss of a proton if provided an argument for scan polarity.
Other adducts should be specifically annotated in the molecular formula.
1 | mz_calculate(molecule, polarity = "neutral")
|
molecule |
A string containing a molecular formula (e.g., "C2H7NO3S"). Structural formulas containing parentheses are not acceptable. Charges may be included, but the charge count should follow the sign (e.g., "C10H16N5O13P3-3"). |
polarity |
Type of m/z to return. Accepts one of "neutral", which returns the monoisotopic mass; "positive", which returns the [M+H]+ mass; or "negative", which returns the [M-H]- mass. |
A numeric vector length 1.
1 2 3 | mz_calculate("C5H8O5-")
mz_calculate("C2H7NO3S")
mz_calculate("C10H16N5O13P3-3")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.