> Does anybody knows if an empty molecule (zero atoms,zero bonds) is a valid
> entry in an SDF file? Couldn't find anything definitive in the SDF
> specification.
>
> MDLReader and IteratingMDLReader behave differently -
> MDLReader reads happily all the file including the empty molecule, but
> IteratingMDLReader consider it as the last molecule of the file (hasNext
> method return false if number of atoms is zero), even if there are many more.
I experienced the same problem with IteratingMDLReader. I term this a problem
because even if it is *not* valid to have an empty molecule in an SD file some
programs write such empty molecules (e.g. MOE). So, independent from the
validity of such an empty molecule it might be very useful to be able to read
such a molecule using IteratingMDLReader.
Uli

> Ok, per recommendations from the list, Serializable stays in in the default
> classes, and fixed the serialVersionUID Eclipse warnings by adding those
> missing fields for the cdk-data module.
Egon, thank you very much for keeping the serializable tag. I think there are
times when it comes in handy...
Uli

Community

Help

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

I agree to receive quotes, newsletters and other information from sourceforge.net and its partners regarding IT services and products. I understand that I can withdraw my consent at any time. Please refer to our Privacy Policy or Contact Us for more details