[Open Babel] Optimization of geometry with the C++ library

2014-04-17 Thread Nicolas Cheron
Hello, I am trying to use the optimize options of OpenBabel. I have written the following code using some of the online examples (I am simplifying the code), but it doesn't work as expected: // Open the file OpenBabel::OBConversion obConversion; OpenBabel::OBMol obMol; obConversion.SetInFormat("x

Re: [Open Babel] Couting all substructures

2014-04-17 Thread Nicolas Cheron
Hi, Thank you for your answer. Since I have posted this question, I have realized that it can not be done with obabel directly, so I have looked into the API. I am using C++ and not python and I have found recently the following way of doing it: OpenBabel::OBConversion obconversion; OpenBabel::OB

Re: [Open Babel] obabel: Converting sdf with multi-line properties

2014-04-17 Thread Noel O'Boyle
Sure - go ahead. We won't fight over who gets to do it. :-) On 15 April 2014 18:22, Jeff Janes wrote: > > On Wed, Aug 14, 2013 at 12:41 PM, Jeff Janes wrote: > >> On Wed, Jul 17, 2013 at 1:52 PM, Chris Morley >> wrote: >> > The fix is at Line 183 in obconversion.cpp: >> > -static string t

Re: [Open Babel] Couting all substructures

2014-04-17 Thread Pascal Muller
Hi, > I am trying to count how many times a given moiety can be found in a > database. > (...) > If not, how can it be done with the API? > > You could try something like this, with pybel: #!/usr/bin/env python import sys import pybel # ref : # O=C(N11)c1(c1)C(=O)N moldId subs