Hello,

Has anyone played around with getting RDKit to draw molecules with ASCII
art? That is, produce a (small-ish) multi-line string which shows the
structure of the molecule? I'm thinking something along the lines of

>>> m = Chem.MolFromSmiles("[OH]c1ccccc1C(=O)[OH]")
>>> print Draw.MolToASCIIArt(m)
        OH
       /
  C --C       O
 //    \\    //
C       C---C
 \  __ /     \
  C --C             OH
>>>

I know that OpenBabel has something like this, but I was wondering if RDKit
could do something similar.

Thanks,
-Rocco

P.S. Strict ASCII isn't needed - Unicode could work, just as long as it
works in most "normal" terminals.
------------------------------------------------------------------------------
_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to