dgllife.utils.atom_formal_charge

dgllife.utils.atom_formal_charge(atom)[source]

Get formal charge for an atom.

Parameters

atom (rdkit.Chem.rdchem.Atom) – RDKit atom instance.

Returns

List containing one int only.

Return type

list