I want to draw a 2D figure of a compound. And I follow the example given at
the following link,

http://www.rdkit.org/docs/GettingStartedInPython.html

My code is given as follows,

>>> from rdkit.Chem import AllChem
>>> from rdkit import Chem
>>> m = Chem.MolFromSmiles('c1nccc2n1ccc2')
>>> AllChem.Compute2DCoords(m)
0
>>> template = Chem.MolFromSmiles('c1nccc2n1ccc2')
>>> AllChem.Compute2DCoords(template)
0
>>> AllChem.GenerateDepictionMatching2DStructure(m,template)
>>>


However, I got nothing. I am wondering what the correct way is to generate
the 2D figure of "c1nccc2n1ccc2". Thanks.

Yingfeng
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to