add notebook showing molecule manipulation w/RDKit#34
Open
janash wants to merge 2 commits intoMolSSI-Education:mainfrom
Open
add notebook showing molecule manipulation w/RDKit#34janash wants to merge 2 commits intoMolSSI-Education:mainfrom
janash wants to merge 2 commits intoMolSSI-Education:mainfrom
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
|
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.
|
Member
Author
|
It's working for me locally - I'll try it on chemcompute and see what happens. It could be something with the RDKit version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@paulcraig - see this notebook for suggestion on molecule manipulation and optimization using RDKit. This starts from the ideal structure pulled from the PDB