User 22337819af
03-01-2012 23:58:07
Hello
I would like to do an R-Group decomposition using jchembase in which my query contains a position variation bond which attaches to the R-group. I tried it with a relatively simple case, but got an ArrayIndexOutOfBoundsException within LigandHandler (see below for stack trace). I'm not sure if this is even possible or what the results returned would be. Thanks in advance.
query molecule cxsmiles:
Cc1ccccc1F.
- * |$;;;;;;;;_R1;$,m:9:4.3.2|
target molecule smiles:
Cc1c(N)cccc1F
relevant code:
RGroupDecomposition rGroupDecomp = new RGroupDecomposition();
rGroupDecomp.setAttachmentType(RGroupDecomposition.ATTACHMENT_RLABEL);
rGroupDecomp.setTarget(curWithoutStereoMol);
rGroupDecomp.setQuery(coreMol);
Decomposition rDecomp = rGroupDecomp.findFirstDecomposition();
Stacktrace:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 9
at chemaxon.sss.search.ratom.LigandHandler.processAttachments(LigandHandler.java:349)
at chemaxon.sss.search.ratom.LigandHandler.breakBonds(LigandHandler.java:307)
at chemaxon.sss.search.ratom.LigandHandler.convertToLigands(LigandHandler.java:218)
at chemaxon.sss.search.RGroupDecomposition.getDecomposition(RGroupDecomposition.java:785)
at chemaxon.sss.search.RGroupDecomposition.findDecomposition(RGroupDecomposition.java:776)
at chemaxon.sss.search.RGroupDecomposition.findFirstDecomposition(RGroupDecomposition.java:731)
at main.rGroupDecomp.RGroupDecompThread.run(RGroupDecompThread.java:92)
at main.Main.main(Main.java:50)