Common mass spectrometry tools described in John Roboz (2013)
Common mass spectrometry tools for minimalist MS users.
## stable version v1.1.1install.packages('MSbox')
examples:
E_iso('C') # element symbol, case insensitiveE_iso('Carbon') # element full name, case insensitiveE_iso('carBon') # element full name, case insensitive
examples:
formula('malic acid')formula(c('malic acid', 'citric acid', 'tartaric acid'))
example:
mass('C7H6O1') # case insensitivemass(c('K1', 'C5H8', 'nA20')) # vector input
example:
mz('C7H7O4', z = -1) # case insensitivemz(c('C7H7O4', 'c1'), z = -1) # vector input
examples:
ppm(155.03383, 155.03388) # with m/z valueppm(155.03383, .03388) # lazy input when the integer parts of m and t are the sameppm(155.03383, .03388, lazy = F) # lazy input disabledppm(155.03384, mz('C7H7O4', z = 1)) # with ion formula
example
Iso_mass(F = 'C7H6O4', iso = '[13]C2[2]H3') # Two 13C and three 2H are labled. Case insensitive.
example
Iso_mz(F = 'C7H6O4', iso = '[13]C2[2]H3', z = 1) # Two 13C and three 2H are labled. Case insensitive.
examples
contam(33.0335, ppm = 10, mode = '+')contam(44.998, ppm = 10, mode = '-')
examples
adduct('C1H4',mode = '-') # case insensitiveadduct('C1H4',mode = '+') # case insensitive