Description Usage Arguments Value Author(s) See Also Examples
View source: R/ChemicalCuration.R
A small wrapper function to calculate adduct masses for any entries in
the enviPat
adducts
table from the SMILES code, using
the getMolecule
function in rcdk
to calculate the formula from SMILES first.
Note: current version does not handle labelling as rcdk is used to obtain the formula.
1 | getSuspectMasses(smiles, adduct_list)
|
smiles |
Valid SMILES code used to calculate the formula and from then on the masses. |
adduct_list |
A list of adducts matching those in the |
Returns the masses of the given adducts in a matrix with column names matching the given adduct. If the adduct/deduct cannot be calculated for a given entry, NA is returned.
Emma Schymanski <emma.schymanski@uni.lu>
getMolecule
, get.mol2formula
, enviPat
,
check_ded2
, getSuspectFormulaMass
.
1 2 3 | getSuspectMasses("c1ccccc1", c("M+H","M+NH4"))
getSuspectMasses("c1ccccc1", c("M-H","M-H2O-H"))
getSuspectMasses("c1ccccc1", c("M+H","M+2H","M+3Na"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.