InChIGenerator running endless loop when passed the attached sdf.
my (partial) code:
while(sdfreade.hasNext()) {
...some code getting sid, etc from sdf...
InChIGenerator inchigen = InChIGeneratorFactory.getInstance().getInChIGenerator(mol);
//stuck here
inchiKey = inchigen.getInchiKey(); // generate the inchiKey based on mol structure ...some more code...
}
Unfortunately, this is a problem with the actual InChI algorithm. If we run it through the the C binary it also hangs for a while then times out. CDK uses the InChI C code via JNI so I don't think there is much we could do, sorry.
It's probably (almost definitely) getting stuck in the symmetry group calculation.
Last edit: John May 2013-01-18
Dear CoderX,
please contact the InChI mailing list. Of course, double check that the file content is correct, but if it is, you have indeed run into a problem with the InChI library. Their mailing list can be found at:
https://sourceforge.net/mail/?group_id=173262
Egon
Sorry, that was the wrong link. That was for the JNI-InChI mailing list...
The InChI mailing list is found here:
https://sourceforge.net/mail/?group_id=136669
Thanks for the info... I didn't know how else to troubleshoot this.