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
I have encountered a "ValueError: Failed to compute 3D conformer for CCCCCCCCCCCCCCCCCCCCCCCCC(=O)OC[C@H](COC(=O)CCCCCCCCCCCCCCCCC)O" error when specifying a compound with a long hydrocarbon chain (CCCCCCCCCCCCCCCCCCCCCCCCC(=O)OC[C@H](COC(=O)CCCCCCCCCCCCCCCCC)O) as a ligand.
The error seems to occur in compute_3d_conformer() within schema.py. It appears that conf_id = AllChem.EmbedMolecule(mol, options) returns -1, which causes the error.
After searching, I found a potentially relevant page (here). I tried the solution mentioned there (setting params.useRandomCoords=True), and this resolved the error - the protein-ligand complex structure is now being output successfully.
I suggest implementing an option specifically for large ligands. We could allow users to enable this parameter (options.useRandomCoords=True) when dealing with large ligand molecules.
Sincerely,
The text was updated successfully, but these errors were encountered:
It should be fixed in the commit (will be live on pypi on the next release)!
I've made it run with random starting coordinates only in case it fails the generation without random starting coordinates and added a warning given that the conformer generated will be quite different and we have not tested this behavior extensively (but from a couple of examples the output looks fine!)
Dear developers,
thank you for making this project open source.
I have encountered a "ValueError: Failed to compute 3D conformer for
CCCCCCCCCCCCCCCCCCCCCCCCC(=O)OC[C@H](COC(=O)CCCCCCCCCCCCCCCCC)O
" error when specifying a compound with a long hydrocarbon chain (CCCCCCCCCCCCCCCCCCCCCCCCC(=O)OC[C@H](COC(=O)CCCCCCCCCCCCCCCCC)O
) as a ligand.The error seems to occur in compute_3d_conformer() within schema.py. It appears that conf_id = AllChem.EmbedMolecule(mol, options) returns -1, which causes the error.
After searching, I found a potentially relevant page (here). I tried the solution mentioned there (setting params.useRandomCoords=True), and this resolved the error - the protein-ligand complex structure is now being output successfully.
Here's the actual modified code:
I suggest implementing an option specifically for large ligands. We could allow users to enable this parameter (options.useRandomCoords=True) when dealing with large ligand molecules.
Sincerely,
The text was updated successfully, but these errors were encountered: