Geoff Hutchison - 2007-03-21

Logged In: YES
user_id=21420
Originator: NO

First off, the "second flag" is listed as deprecated in the MDL CT file documentation. As for the "critical H0 flag," this is indicated as being relevant only to query files. On the other hand, it's probably worth extracting this -- if it's non-zero, it indicates the maximum number of implicit hydrogens + 1 (i.e., 1 => 0 hydrogens, 2=> 1 hydrogen, etc.)

Essentially, this would just call OBAtom::SetImplicitValence() after making sure it's been perceived on the remaining atoms.

It's certainly easy enough to also write to this field on output (i.e., implicit valence - 1). Whether other software actually reads it is unclear.

-Geoff