Currently calculateMass("[C6H12]+") == calculateMass("C6H12")
Strictly, this should be calculateMass("[C6H12]+") == calculateMass("C6H12") - .emass where .emass == 0.0005485799
Questions:
- is
calculateMass("[C6H12]+") out-of-scope for this function, and should this throw a warning or error?
- otherwise, should it give the correct result?
- or, should there be an argument
calculateMass(x, charge)?
Note: the rcdk equivalent is get.formula(formula, charge)@mass . Notably, get.formula("[C6H6]+") also does not account for the charge (but creates the neutral formula). However here the user can specify the charge manually.
Currently
calculateMass("[C6H12]+") == calculateMass("C6H12")Strictly, this should be
calculateMass("[C6H12]+") == calculateMass("C6H12") - .emasswhere.emass == 0.0005485799Questions:
calculateMass("[C6H12]+")out-of-scope for this function, and should this throw a warning or error?calculateMass(x, charge)?Note: the
rcdkequivalent isget.formula(formula, charge)@mass. Notably, get.formula("[C6H6]+") also does not account for the charge (but creates the neutral formula). However here the user can specify the charge manually.