Hi,

I would like to generate svg for a molecule, inside a python script.

I use this code

|    ...|
|    c = ob.OBConversion()||
||    c.SetOutFormat("svg")||
||    c.AddOption("d", c.OUTOPTIONS, "1")||
||    c.WriteFile(molecule.OBMol,"molecule.svg")|

but can't find the way to obtain the molecule with implicit hydrogens like the command :

|    obabel -i sdf molecule.sdf -o svg -O molecule.svg -xC -xd -d|


Can you help me ?

Thanks
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to