Open hannahbaumann opened 8 months ago
Update:
If I load in the .sdf
file = "cofactor.sdf"
off_cft = Molecule.from_file(file)
off_cft.assign_partial_charges('am1bccelf10')
Running this I'm getting following warning:
Warning: 3L9H: Failed due to unspecified stereochemistry
This seems to be an omega warning.
Despite the warning, I'm getting a set of partial charges out.
Looking into the code, I found the following: If omega fails (due to stereo problems, openff does this:
https://github.com/openforcefield/openff-toolkit/blob/5ffcb58714c93143d8c00841c00e73f46a6c296f/openff/toolkit/utils/openeye_wrapper.py#L2185-L2195
# Don't generate random stereoisomer if not specified
omega.SetStrictStereo(True)
status = omega(oemol) # This is where I'm getting the warning
if status is False:
omega.SetStrictStereo(False)
new_status = omega(oemol) # Now omega is generating 500 conformers
if new_status is False:
raise ConformerGenerationError(
"OpenEye Omega conformer generation failed"
)
After setting omega.SetStrictStereo(False)
, omega runs successfully (500 conformers) and you get elf10 charges.
Is it safe for me to use these partial charges, or is the warning telling me that I should not trust them and that potentially a different stereoisomer was used in the conformer generation than the one provided in the input?
I'm getting this error when assigning partial charges using openeye's am1bccelf1 via the openff-toolkit:
cofactor = gen_charges(c)
It looks like this is related to stereocenter assignment. I was able to assign partial charges using am1bcc with the antechamber backend. Any ideas on how to solve this?