On Thu, Jul 9, 2009 at 9:34 PM, Aryeh
Gold-Parker<[email protected]> wrote:
> I'll be honest, I made it using cinfony and then converted it to an rdkit
> molecule.
>
>> >>> rdkitmol = rdkit.Molecule(pybelmol)
>
> It worked great when I constructed the molecule using
> rdkit.Chem.MolFromSmiles(smi).

I suspect that cinfony isn't actually giving you an RDKit molecule. Try this:
[4] >>> m = Chem.MolFromSmiles('CCOC')

[6] >>> type(m)
Out[6]: <class 'rdkit.Chem.rdchem.Mol'>

I think in cinfony to get the underlying RDKit molecule, you need to
do something like:

>>> mol = rdkit.Molecule(pybelmol)
>>> rdkitmol = mol.Mol
>>> Draw.MolToImageFile(rdkitmol, 'a.png')

-greg

Reply via email to