You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ntBre and I have seen that there are some molecules that OpenEye can't handle that RDKit is perfectly happy to generate. Specifically we ran into this with [SX3+1] atoms, e.g.:
Warning: OEMMFFParams::PrepMol() : unable to type atom 1 S on residue UNL-1
Warning: : Force field setup failed due to missing parameters
Warning: OEMMFFParams::PrepMol() : unable to type atom 1 S on residue UNL-1
Warning: : Force field setup failed due to missing parameters
and error:
ValueError: No registered toolkits can provide the capability "assign_partial_charges" for args "()" and kwargs "{'molecule': Molecule with name '' and SMILES '[H]C([H])([H])[S+](C([H])([H])[H])C([H])([H])[H]', 'partial_charge_method': 'am1bccelf10', 'use_conformers': None, 'strict_n_conformers': False, 'normalize_partial_charges': True, '_cls': <class 'openff.toolkit.topology.molecule.Molecule'>}"
Available toolkits are: [ToolkitWrapper around OpenEye Toolkit version 2022.1.1, ToolkitWrapper around The RDKit version 2024.03.1, ToolkitWrapper around Built-in Toolkit version None]
ToolkitWrapper around OpenEye Toolkit version 2022.1.1 <class 'openff.toolkit.utils.exceptions.ConformerGenerationError'> : OpenEye Omega conformer generation failed
Describe the solution you'd like
One pathway to bypass this is to generate conformers with RDKit and pass them to OpenEye for charge assignment.
Is your feature request related to a problem? Please describe.
When assigning partial charges with OpenEye, conformers are generated via the toolkit API using OpenEye:
openff-toolkit/openff/toolkit/utils/openeye_wrapper.py
Lines 2456 to 2461 in f79f48b
@ntBre and I have seen that there are some molecules that OpenEye can't handle that RDKit is perfectly happy to generate. Specifically we ran into this with [SX3+1] atoms, e.g.:
yields this warning:
and error:
Describe the solution you'd like
One pathway to bypass this is to generate conformers with RDKit and pass them to OpenEye for charge assignment.
RDKit delivers a UFFTYPER warning but succeeds, and partial charges are assigned by OpenEye with no further complaints.
Would it be possible to rearrange
openff-toolkit/openff/toolkit/utils/openeye_wrapper.py
Lines 2456 to 2461 in f79f48b
Describe alternatives you've considered
This is potentially a bad idea, if the conformers generated by RDKit aren't suitable for charge assignment.
Additional context
The text was updated successfully, but these errors were encountered: