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 =
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
>
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 +
3 matches
Mail list logo