get.total.charge
returns the summed partial charges for a molecule
and get.total.formal.charge
returns the summed formal charges. Currently,
if one or more partial charges are unset, the function simply returns
the sum of formal charges (via get.total.formal.charge
). This is slightly
different from how the CDK evaluates the total charge of a molecule (via
AtomContainerManipulator.getTotalCharge()), but is in line with how OEChem
determines net charge on a molecule.
In general, you will want to use the get.total.charge
function.
get.total.charge(molecule)
get.total.formal.charge(molecule)
A Java object of class IAtomContainer
A double value indicating the total partial charge or total formal charge