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

add notebook showing molecule manipulation w/RDKit #34

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

janash
Copy link
Member

@janash janash commented Jun 22, 2024

@paulcraig - see this notebook for suggestion on molecule manipulation and optimization using RDKit. This starts from the ideal structure pulled from the PDB

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link

review-notebook-app bot commented Jun 26, 2024

View / edit / reply to this conversation on ReviewNB

paulcraig commented on 2024-06-26T09:55:05Z
----------------------------------------------------------------

Line #6.    constrained_mol

I got an error on my laptop and on chemcompute.org when I tried to execute this cell: The kernel stopped and needed to be restarted (or something like that). Then I just did it again on my notebook and got this message:

ValueError                                Traceback (most recent call last)
Cell In[8], line 5
      1 # Repeat process on methyl ligand
      3 mod_ligand_methylH = Chem.AddHs(mod_ligand_methyl)
----> 5 constrained_mol = AllChem.ConstrainedEmbed(mod_ligand_methylH, mod_ligand_methyl, useTethers=True)
      6 constrained_mol

File ~/anaconda3/lib/python3.10/site-packages/rdkit/Chem/AllChem.py:313, in ConstrainedEmbed(mol, core, useTethers, coreConfId, randomseed, getForceField, **kwargs)
    311 ci = EmbedMolecule(mol, coordMap=coordMap, randomSeed=randomseed, **kwargs)
    312 if ci < 0:
--> 313   raise ValueError('Could not embed molecule.')
    315 algMap = [(j, i) for i, j in enumerate(match)]
    317 if not useTethers:
    318   # clean up the conformation

ValueError: Could not embed molecule.


@janash
Copy link
Member Author

janash commented Jun 26, 2024

It's working for me locally - I'll try it on chemcompute and see what happens. It could be something with the RDKit version

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

Successfully merging this pull request may close these issues.

1 participant