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

.sdf of only clusters leads #38

Closed
eneas77 opened this issue Nov 24, 2022 · 3 comments
Closed

.sdf of only clusters leads #38

eneas77 opened this issue Nov 24, 2022 · 3 comments

Comments

@eneas77
Copy link

eneas77 commented Nov 24, 2022

Hi,

After working for so long with AD4/AD-GPU, i appreciate the possibility Meeko brings of transforming the dreadful .dlg files into .sdf
However, it is pretty much a dead end if the clustering information is not exported as well in some way...

A more appealing alternative would be to retrieve the sdf of only clusters leads, together with full energetic terms, cluster population and docking run number.

Hope it inspires you...

E77

@diogomart
Copy link
Contributor

A tiny piece of this - storing some of the energies - has been implemented meanwhile. We didn't yet implement getting only the cluster leads. But I agree it is inspiring... :-)

from rdkit import Chem
import json

for mol in Chem.SDMolSupplier("docked.sdf"):
    data = json.loads(mol.GetProp("meeko"))
    print(data)

{'free_energy': -6.663, 'intermolecular_energy': -7.154, 'internal_energy': -2.099}
{'free_energy': -6.566, 'intermolecular_energy': -7.048, 'internal_energy': -2.099}
{'free_energy': -6.4, 'intermolecular_energy': -7.401, 'internal_energy': -1.566}
{'free_energy': -6.177, 'intermolecular_energy': -7.189, 'internal_energy': -1.536}
{'free_energy': -5.977, 'intermolecular_energy': -6.506, 'internal_energy': -2.001}

@diogomart
Copy link
Contributor

Exporting an SDF of only cluster leads implemented in 27938b3

@diogomart
Copy link
Contributor

Forgot to expose the option in the command line script mk_export.py, option is -c or --only_cluster_leads.
Commit: 439ebee

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants