On Oct 1, 2007, at 10:19 AM, allouche miriame wrote:
> Hi,
> I am using the class UniversalIsomorphismTester to detect
> subtructures.
> I have a problem with the method isSubgraph() which does not return
> what I expect for some fragments .
> Here is an example :
> fragment 1 represented by the SMILES : "CCCC"
> fragment 2 represented by the SMILES : "c1ccc2c(c1)ccc3ccccc2"
>
> SmilesParser sp = new SmilesParser
> (DefaultChemObjectBuilder.getInstance());
> IAtomContainer atomContainer;
> atomContainer = sp.parseSmiles("c1ccc2c(c1)ccc3ccccc2");
I think you'll need to detect aromaticity by doing
HueckelAromaticityDetector.detectAromaticity(atomContainer);
After doing this, the call to the UIT should work
-------------------------------------------------------------------
Rajarshi Guha <[EMAIL PROTECTED]>
GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE
-------------------------------------------------------------------
A bug in the hand is better than one as yet undetected.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Cdk-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cdk-user