On Fri, May 15, 2009 at 2:25 PM, Martin Guetlein
<[email protected]> wrote:
> However, if I change smilesSearch to "CC", the map is empty, and the output
> is:
> Atoms of search in molecule: ' '
>
> Looks like a bug to me. Does anyone know a workaround?
Solution:
for (IBond bond : molecule.bonds()) {
if (bond.getAtomCount() == 2 &&
"C".equals(bond.getAtom(0).getSymbol()) &&
"C".equals(bond.getAtom(1).getSymbol())) {
match = true;
}
}
Interestingly enough, the CC smiles is an example in the JavaDoc:
http://pele.farmbio.uu.se/nightly-1.2.x/api/org/openscience/cdk/isomorphism/UniversalIsomorphismTester.html
I will need to check if we have a unit test for it...
Egon
--
Post-doc @ Uppsala University
http://chem-bla-ics.blogspot.com/
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Cdk-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cdk-user