On Sun, Oct 07, 2012 at 11:20:16AM +0200, David van der Spoel wrote:
> Hi,
> 
> when reading a gaussian output file the total charge is available and 
> that could be used to improve the bond order perception, alternatively 
> there could be a command line option to tell babel about the total charge.

This is a known issue with formats which doesn't contain
explicit formal charges. SDF and MOL files should work with
charged heterocycles, and MOL2 format plugin was recently
improved to better handle them.

I might also look at it since I'm working with related code.

> 
> Related to this it would be great if one could turn off the proton 
> generation, since for many ions babel adds a proton where there 
> shouldn't be one (e.g. imidazolium and other ionic liquids, organic 
> cations).

It shouldn't add Hs if there are explicit Hs in the structure
already (unless explicitly asked). Do you have a case where it
is not so?

You have options to add or delete polar/nonpolar Hs, for details
see:
obabel -L ops
e.g., strip all Hs:
obabel input --DeletePolarH --DeleteNonPolarH -O output


Reinis

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
OpenBabel-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to