Common mass spectrometry tools for minimalist MS users.
## development version
devtools::install_github("YonghuiDong/MSbox")
## stable version
install.packages('MSbox')
examples:
E_iso('C') # element symbol, case insensitive
E_iso('Carbon') # element full name, case insensitive
E_iso('carBon') # element full name, case insensitive
Attention : The function and output are a bit different between MSbox package downloaded from CRAN and Github
examples in MSbox package from CRAN, it the queried information is not found for any compound, it will stop and pops up an error:
examples in MSbox package from Github, it the queried information is not found for a compounds, it will assign “unknown” to that compound:
describe('malic acid') # get formula by default
describe(c('malic acid', 'citric acid', 'tartaric acid'), representation = "smiles") # get smiles
example:
example:
examples:
ppm(155.03383, 155.03388) # with m/z value
ppm(155.03383, .03388) # lazy input when the integer parts of m and t are the same
ppm(155.03383, .03388, lazy = F) # lazy input disabled
ppm(155.03384, mz('C7H7O4', z = 1)) # with ion formula
example
example
examples
examples