The Uncharger class for neutralizing ionized acids and bases.
Notes:
- This class uncharges molecules by adding and/or removing hydrogens.
- For zwitterions, hydrogens are moved to eliminate charges where possible.
- By default, in cases where there is a positive or negative charge that is not possible to remove, an attempt is made to also preserve the corresponding amount of opposite charge and result in an overall neutral output structure.
- When the
force
option is set, all neutralizable sites are uncharged, also when not-removable charges are present and the resulting overall charge is therefore not null.
- By default, the removal of the existing charges is performed with the addition or subtraction of both protons and hydride ions as appropriate. If the
protonationOnly
option is enabled, the transformations applying to the input structure are limited to changes in its protonation state and charges that would otherwise require the exchange of a hydride ion (e.g., carbocations) are handled as not-removable.
Definition at line 136 of file Charge.h.