Re: [Open Babel] Ionization problem

2010-10-19 Thread Pascal Muller
Hi,


> Yes, this would definitely be a bug, although I can see that it's ionizing an 
> alpha-beta unsaturated ketone.

Doesn't justify why the oxygen has one double bond and one simple bond :)

I did it again with Open Babel 2.3.00 (-p7.4), same results as 2.2.99:
O=C1COC=C1 not ionized
[O-]C1=CC=[O]C1 ionized

I'll file a bug.

Regards,
Pascal

--
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
___
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss


Re: [Open Babel] [OpenBabel-Devel] Version 2.3.0 Release Candidate 1

2010-10-19 Thread Tim Vandermeersch
On Mon, Oct 18, 2010 at 10:33 PM, Igor Filippov [Contr]
 wrote:
> These are the formats recognized by statically linked OB:
>
> $ bin/babel -L formats
> can -- Canonical SMILES format
> copy -- Copy raw text [Write-only]
> ent -- Protein Data Bank format
> fix -- SMILES FIX format [Write-only]
> mdl -- MDL MOL format
> ml2 -- Sybyl Mol2 format
> mol -- MDL MOL format
> mol2 -- Sybyl Mol2 format
> molreport -- Open Babel molecule report [Write-only]
> pdb -- Protein Data Bank format
> pov -- POV-Ray input format [Write-only]
> report -- Open Babel report format [Write-only]
> sd -- MDL MOL format
> sdf -- MDL MOL format
> smi -- SMILES format
> smiles -- SMILES format
> sy2 -- Sybyl Mol2 format
> txt -- Title format

static_plugins.cpp only contains a few formats since including all
formats in a single cpp file can take a long time/memory to compile.

> The formats recognized by "regular" (dynamical) OB are numbered 147 so I
> won't quote them all here, but clearly a lot are missing. Most important
> for me is InChI.

I have not yet attempted to include InChI in the static build.
However, if you have a static inchi library, you should be able to
include the inchi OB formats and link against it.

> Igor
>
>
>
>
> On Mon, 2010-10-18 at 16:09 -0400, Tim Vandermeersch wrote:
>> On Mon, Oct 18, 2010 at 9:49 PM, Igor Filippov [Contr]
>>  wrote:
>> > Tim,
>> >
>> > Something still not working for me -
>> >
>> > Here is what I do:
>> >
>> > g++ -fopenmp -g -O3 -g -O2  -I/usr/local/  -D_LIB -D_MT   -Wall
>> > -I/usr/local//src/ -I/usr/local//src/ -I/usr/local//include/
>> > -I../openbabel-2.3.0rc1//include/
>> > -I../openbabel-2.3.0rc1//build/include/ -I/usr/local/include/
>> > -I/usr/include/GraphicsMagick -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
>> > -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
>> > -mtune=generic -pthread   -u _ZTVN9OpenBabel9SMIFormatE
>> > -u_ZTVN9OpenBabel12CANSMIFormatE -u _ZTVN9OpenBabel9CanSmilesE -c
>> > osra.cpp
>> >
>> > .
>> >
>> > g++ -fopenmp -g -O3  -u _ZTVN9OpenBabel9SMIFormatE
>> > -u_ZTVN9OpenBabel12CANSMIFormatE -u _ZTVN9OpenBabel9CanSmilesE  -o osra
>> > osra.o osra_anisotropic.o osra_ocr.o osra_openbabel.o mcdlutil.o
>> > unpaper.o -L/usr/local//src/ -lpotrace -L/usr/local/ -locrad -lm
>> > -lGraphicsMagick++ -lGraphicsMagick -llcms -lfreetype -lXext -lSM -lICE
>> > -lX11 -lbz2 -lz -lm -lgomp -lpthread  -L/usr/lib64 -L/usr/lib -L/usr/lib
>> > -L/usr/local//src/ -lPgm2asc
>> > -lnetpbm ../openbabel-2.3.0rc1//build/src/libopenbabel.a
>> >
>> > The resulting executable does not produce SMILES.
>>
>> You can verify that the symbols are in the executable using:
>>
>> objdump -t myexe | grep CanSmi
>>
>> > Moreover, when I try to do "make test" on statically linked babel I get
>> > the following:
>> >
>> > 27% tests passed, 41 tests failed out of 56
>> >
>> > Far cry from 100% "PASS" on dynamically linked babel.
>>
>> No, the tests don't work for static builds yet. Only the babel
>> executable with all plugins.
>>
>> > Igor
>> >
>> > On Mon, 2010-10-18 at 14:59 -0400, Tim Vandermeersch wrote:
>> >> Hi,
>> >>
>> >> On Mon, Oct 18, 2010 at 8:28 PM, Igor Filippov [Contr]
>> >>  wrote:
>> >> > Tim,
>> >> >
>> >> > Thanks, I can build my executable per your instructions and it runs
>> >> > without segfaults, but doesn't seem to get the format plugins yet - the
>> >> > output when I want to get SMILES for example is empty.
>> >> >
>> >> > I'm also looking at the page "Plugins -> Creating custom static
>> >> > libraries" at http://openbabel.org/wiki/CMake
>> >> > but it's so terse I cannot figure out how to use this information for a
>> >> > project that does not use cmake itself. And I'm not a cmake expert at
>> >> > all unfortunately...
>> >>
>> >> You can build the doc/examples/static_executable exe using cmake and
>> >> "make VERBOSE=1". This will print the commands used for compiling.
>> >>
>> >> For example:
>> >>
>> >> [100%] Building CXX object CMakeFiles/myexe.dir/myexe.cpp.o
>> >> /usr/bin/c++    -u _ZTVN9OpenBabel9ACRFormatE -u
>> >> _ZTVN9OpenBabel15ADFOutputFormatE -u _ZTVN9OpenBabel14ADFInputFormatE
>> >> -u _ZTVN9OpenBabel11OBT41FormatE -u _ZTVN9OpenBabel13AlchemyFormatE -u
>> >> _ZTVN9OpenBabel15AmberPrepFormatE -u _ZTVN9OpenBabel14OBAPIInterfaceE
>> >> -u _ZTVN9OpenBabel15BallStickFormatE -u _ZTVN9OpenBabel9BGFFormatE -u
>> >> _ZTVN9OpenBabel9BoxFormatE -u _ZTVN9OpenBabel11CacaoFormatE -u
>> >> _ZTVN9OpenBabel11CacheFormatE -u _ZTVN9OpenBabel9CARFormatE -u
>> >> _ZTVN9OpenBabel9CCCFormatE -u _ZTVN9OpenBabel13CHEM3D1FormatE -u
>> >> _ZTVN9OpenBabel13CHEM3D2FormatE -u
>> >> _ZTVN9OpenBabel20ChemDrawBinaryFormatE -u
>> >> _ZTVN9OpenBabel14ChemDrawFormatE -u _ZTVN9OpenBabel13ChemKinFormatE -u
>> >> _ZTVN9OpenBabel9CHTFormatE -u _ZTVN9OpenBabel9CIFFormatE -u
>> >> _ZTVN9OpenBabel10CopyFormatE -u _ZTVN9OpenBabel11CRK2DFormatE -u
>> >> _ZTVN9OpenBabel11CRK3DFormatE -u _ZTVN9OpenBabel9CSRFormatE -u
>> >> _ZTVN9OpenBabel10CSSRFormatE -u _ZTVN9OpenBabel18Dlpoly

Re: [Open Babel] [OpenBabel-Devel] Version 2.3.0 Release Candidate 1

2010-10-19 Thread Igor Filippov [Contr]

> 
> static_plugins.cpp only contains a few formats since including all
> formats in a single cpp file can take a long time/memory to compile.
True, but piece-meal inclusion with flags such as WITH_COMMON_FORMATS seems a 
very reasonable approach.
It would be great if a set of such flags covered the whole total of 147
formats available.

> 
> I have not yet attempted to include InChI in the static build.
> However, if you have a static inchi library, you should be able to
> include the inchi OB formats and link against it.

Are you planning to do it for the release?

I am trying to make a static InChI library but as I know exactly zero
about cmake I'm not very successful so far...


Igor


--
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
___
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss


Re: [Open Babel] [OpenBabel-Devel] Version 2.3.0 Release Candidate 1

2010-10-19 Thread Tim Vandermeersch
On Tue, Oct 19, 2010 at 5:28 PM, Igor Filippov [Contr]
 wrote:
>
>>
>> static_plugins.cpp only contains a few formats since including all
>> formats in a single cpp file can take a long time/memory to compile.
> True, but piece-meal inclusion with flags such as WITH_COMMON_FORMATS seems a 
> very reasonable approach.
> It would be great if a set of such flags covered the whole total of 147
> formats available.
>
>>
>> I have not yet attempted to include InChI in the static build.
>> However, if you have a static inchi library, you should be able to
>> include the inchi OB formats and link against it.
>
> Are you planning to do it for the release?

I'll take a look since it is an important format to support. This
should be the last major issue for static building though.

> I am trying to make a static InChI library but as I know exactly zero
> about cmake I'm not very successful so far...
>
>
> Igor
>
>

--
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
___
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss


[Open Babel] smi --> can: E/Z error with babel 2.3

2010-10-19 Thread Pascal Muller
Hi all,

I don't know if it could be related to some recent messages about
stereo problems, but converting a .can file (obtained with pybel /
babel 2.2.3) to still a .can file with babel 2.3 (downloaded and build
yesterday morning 19th) invert the E/Z stereochemistry.

Eg the E form
COc1(c1)NS(=O)(=O)/C=C/c1c1 ZINC00245228
is converted in Z form with command line babel 2.3 (babel zinc.smi zinc.can)
COc1(c1)NS(=O)(=O)/C=C\c1c1   ZINC00245228
The smiles is not changed with command line babel 2.2.3.

Same problem with eg
CCOC(=O)C1=C(/C=C/c2c2)NC(=O)n...@h]1c ZINC00358965
converted in
CCOC(=O)C1=C(/C=C\c2c2)NC(=O)n...@h]1c ZINC00358965

Starting from Z gives E too with babel2.3.

Regards,
Pascal

--
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
___
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss