Description Usage Arguments Value Examples
View source: R/get_neutral_monoisotopic.R
This function converts a molecular formula into its neutral monoisotopic mass.
1 |
formula |
a character string containing a molecular formula |
numeric containing the neutral monoisotopic mass
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | formula = "C8 H1 F15 O2" ## PFOA with spaces
get_neutral_monoisotopic(formula)
formula = "C8HO2F15" ## PFOA without spaces and subscript = 1
get_neutral_monoisotopic(formula)
formula = "H1 O2 F15 C8" ## PFOA scrambled
get_neutral_monoisotopic(formula)
formula = "C27H46O" ## cholesterol
get_neutral_monoisotopic(formula)
formula = "C27H40OD6" ## d6-cholesterol; returns D as [2H]
get_neutral_monoisotopic(formula)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.