Description Usage Arguments Value Author(s) See Also Examples
View source: R/ChemicalCuration.R
A small wrapper function to calculate the molecular formula
from SMILES with the rcdk, as well as selected MS-relevant exact masses for fixed adducts
using enviPat. This uses getMolecule instead of parse.smiles.
Note: current version does not handle labelling as rcdk is used to obtain the formula.
See getSuspectMasses for an extension handling all enviPat adducts.
1  | getSuspectFormulaMass(smiles)
 | 
smiles | 
 Valid SMILES code used to calculate the formula and from then on the masses.  | 
Returns the molecular formula, monoisotopic mass, [M+H]+, [M+NH4]+, [M+Na]+ and [M-H]- masses in a named list. If no H is present for [M-H]-, NA is returned.
Emma Schymanski <emma.schymanski@uni.lu>
getMolecule, get.mol2formula, enviPat,
getSuspectMasses.
1  | getSuspectFormulaMass("c1ccccc1")
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.