User af3e34cbec
03-03-2013 00:24:26
Hi,
MarvinSketch exports CDX files with surprising atom charge values.
MarvinSketch 5.3.3 will write the value "6" for uncharged atoms. I would have expected a plain zero instead, or that the charge property would simply have been skipped for uncharged atoms. Can you confirm that you are willfully writing a value of charge "6" for uncharged atoms ?
MarvinSketch 5.11.5 seems to behave just like 5.3.3, but it additionally writes a non-standard 2-byte charge value for each of the uncharged atoms. This gave me an error when I tried to read the file with my own code. I assume that I can ignore these 2-byte (seemingly random ?!) "charge" values? Perhaps MarvinSketch 5.11.5 is actually writing the wrong property tag so these 2-byte values mean something else entirely ?
According to the ChemDraw CDX file format spec, atom charges should be signed INT8 values only - except that ChemDraw 8.0 accidentally wrote INT32 values.
http://www.cambridgesoft.com/services/documentation/sdk/chemdraw/cdx/properties/Atom_Charge.htm
(You may have to use Google's cache to get to the HTML page).
Kind regards
-- Jan Holst Jensen
I have attached two CDX files written by MarvinSketch 5.3.3 and 5.11.5 respectively.