BioSimSpace.Parameters.formalCharge#

BioSimSpace.Parameters.formalCharge(molecule)[source]#

Compute the formal charge on a molecule. This function requires that the molecule has explicit hydrogen atoms.

Parameters:

molecule (Molecule) – A molecule object.

Returns:

formal_charge – The total formal charge on the molecule.

Return type:

Charge