Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error occurred while writing SDF from RDKit Mol #28

Closed
LeThucMinhChau opened this issue Nov 20, 2023 · 7 comments
Closed

Error occurred while writing SDF from RDKit Mol #28

LeThucMinhChau opened this issue Nov 20, 2023 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@LeThucMinhChau
Copy link

I try to write SDF file from my bookmark, however, I tried to export SDF files but it returns: 'Error occurred while writing SDF from RDKit Mol'. I am using the new version of Ringtail, is there any updates in the dependencies or is it a bug in the code?

rt_process_vs.py read -i input.db -s bookmark --export_sdf_path sdf

@althea-hansel
Copy link
Collaborator

Hi, thank you for reaching out! There is an additional dependency on chemicalite which is frequently the issue, in case you have not installed that yet.

If that does not resolve the issue, can you please run rt_process_vs.py read -i input.db -s bookmark --export_sdf_path sdf -d and share the output?

@sribone
Copy link

sribone commented Nov 28, 2023

I have the same problem! I already update chemicalite, but the error persist. The -d option is returning the following message:

Logging level set to debug
Writing SR13.sdf
Closing database
Traceback (most recent call last):
File "/home/sribone/anaconda3/envs/ringtail/lib/python3.10/site-packages/ringtail/outputmanager.py", line 210, in write_out_mol
mol = RDKitMolCreate.combine_rdkit_mols(mol_flexres_list)
File "/home/sribone/anaconda3/envs/ringtail/lib/python3.10/site-packages/meeko/rdkit_mol_create.py", line 370, in combine_rdkit_mols
data = json.loads(mol.GetProp("meeko"))
KeyError: 'meeko'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/sribone/anaconda3/envs/ringtail/bin/rt_process_vs.py", line 86, in
rt_core.write_molecule_sdfs()
File "/home/sribone/anaconda3/envs/ringtail/lib/python3.10/site-packages/ringtail/ringtailcore.py", line 465, in write_molecule_sdfs
self.output_manager.write_out_mol(
File "/home/sribone/anaconda3/envs/ringtail/lib/python3.10/site-packages/ringtail/outputmanager.py", line 224, in write_out_mol
raise OutputError("Error occurred while writing SDF from RDKit Mol") from e
ringtail.exceptions.OutputError: Error occurred while writing SDF from RDKit Mol

ERROR: Error occurred while writing SDF from RDKit Mol

@althea-hansel
Copy link
Collaborator

Thank you for including the error traceback. Can you please check what version of Meeko you have installed?

@sribone
Copy link

sribone commented Nov 28, 2023

I have version='0.5.0'. Thank you!

@althea-hansel
Copy link
Collaborator

Thank you very much. I was able to reproduce your error with the latest version of Meeko but not an older one. I have escalated this issue to the senior Meeko developer and we will keep you updated on the progress.

@althea-hansel althea-hansel added the bug Something isn't working label Nov 28, 2023
@diogomart
Copy link
Contributor

Fixed in forlilab/Meeko@9e8a7ad. We are releasing meeko v0.6.0 soon and it will include this fix.

@diogomart
Copy link
Contributor

Fixed in Meeko v0.6.0-alpha.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants