OEGetReasonableTautomers
OEGetReasonableTautomers(mol: Union[OEGraphMol,OEQMol],
opts: OETautomerOptions = OETautomerOptions(),
pKaNorm: bool = True) -> Iterable[Union[OEGraphMol, OEMol, OEQMol]]
OEGetReasonableTautomers(mol: OEMol,
opts: OETautomerOptions = OETautomerOptions(),
pKaNorm: bool = True) -> Iterable[OEMol]
This function takes a const input molecule that is to be tautomerized and the tautomers are returned as an iterator over molecules. The function is overloaded to handle both single (OEMolBase) and multi-conformer (OEMCMolBase) molecules. Aromaticity must be perceived on the input molecule before calling this function.
- mol
The molecule being tautomerized.
- opts
The OETautomerOptions object that stores properties that influence tautomerization process.
- pKaNorm
This parameter determines whether to apply pKa normalization. If
truethe ionization state of each tautomer will be assigned to a predominate state at pH~7.4.
Example of tautomerizing a molecule
tautomer_options = oequacpac.OETautomerOptions()
tautomer_options.SetMaxTautomersGenerated(4096)
tautomer_options.SetMaxTautomersToReturn(16)
tautomer_options.SetCarbonHybridization(True)
tautomer_options.SetMaxZoneSize(50)
tautomer_options.SetApplyWarts(True)
pKa_norm = True
for mol in ifs.GetOEGraphMols():
for tautomer in oequacpac.OEGetReasonableTautomers(mol, tautomer_options, pKa_norm):
# work with tautomer
See also
OEEnumerateTautomersfunctionOEGetReasonableProtomerfunctionOEGetReasonableProtomersfunctionEnumerating Tautomers code example