User 7b6e83a531
29-10-2009 02:43:05
hi,
Today i test the convert structure to iupac name function, and i encounter one problem. the following is my code:
Evaluator evaluator = new Evaluator();
ChemJEP chemJEP = evaluator.compile("name()", MolContext.class);
MolContext context = new MolContext();
MolImporter importer = new MolImporter(new File("test.sdf"), "");
importer.setQueryMode(true);
MoleculeIterator moleculeIterator = importer.getMoleculeIterator();
while (moleculeIterator.hasNext()) {
Molecule molecule = moleculeIterator.next();
context.setMolecule(molecule);
System.out.println(chemJEP.evaluate(context));
}
importer.close();
it prints the following messages:
chrysen-6-amine
6-nitrochrysene
3,6-dimethylpentacyclo[10.6.2.0^{2,7}.0^{9,19}.0^{16,20}]icosa-1,3,5,7,9,11,13,15,17,19-decaene
pentacyclo[10.6.2.0^{2,7}.0^{9,19}.0^{16,20}]icosa-1,3,5,7,9,11,13,15,17,19-decaen-8-ol
is there some bugs in here or Evaluator class?
thanks in advance.