Skip to content

add notebook showing molecule manipulation w/RDKit#34

Open
janash wants to merge 2 commits intoMolSSI-Education:mainfrom
janash:molecule-manipulation
Open

add notebook showing molecule manipulation w/RDKit#34
janash wants to merge 2 commits intoMolSSI-Education:mainfrom
janash:molecule-manipulation

Conversation

@janash
Copy link
Copy Markdown
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

@review-notebook-app
Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@review-notebook-app
Copy link
Copy Markdown

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
Copy Markdown
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