Re: [Rdkit-discuss] Problem with Drawing a molecule

2020-11-16 Thread Paul Emsley
On 16/11/2020 21:28, Navid Shervani-Tabar wrote: Dear RDKit users, I'm trying to plot a single molecule using RDKit. I use the following code from rdkit.Chemimport Draw from rdkitimport Chem mol = Chem.MolFromSmiles('C1#CN2C1C2') Chem.rdmolops.SanitizeMol(mol) img =

Re: [Rdkit-discuss] Problem with Drawing a molecule

2020-11-16 Thread Navid Shervani-Tabar
It turns out I was simply cropping the third line out when using MolsToGridImage. Thanks again, Navid On Mon, Nov 16, 2020 at 4:28 PM Navid Shervani-Tabar wrote: > Dear RDKit users, > > I'm trying to plot a single molecule using RDKit. I use the following code > > from rdkit.Chem import Draw >

[Rdkit-discuss] Problem with Drawing a molecule

2020-11-16 Thread Navid Shervani-Tabar
Dear RDKit users, I'm trying to plot a single molecule using RDKit. I use the following code from rdkit.Chem import Draw from rdkit import Chem mol = Chem.MolFromSmiles('C1#CN2C1C2') Chem.rdmolops.SanitizeMol(mol) img = Draw.MolsToGridImage([mol], molsPerRow=1) img.save(res_dir +