On Apr 23, 2009, at 3:13 PM, Loren Lenzen wrote:

>
> 3)  I would like to eventually use the SMARTSQueryTool to perform  
> the the same search as above.  Do any of the answers to the above  
> questions change?
>
I don't use Taverna, but if you were to use the SMARTSQueryTool, it  
would go something like this:

String[] smarts = {"c", ....};
IAtomContainer[] mols = ....
SMARTSQueryTool sqt = new SMARTSQueryTool("C");

for (IAtomContainer ac : mols) {
   for (String s : smarts) {
     sqt.setSmarts(s);
     if (sqt.matchs(ac)) {
       // save ac with s
     }
   }
}

In general, if you're matching multiple SMARTS against multiple target  
mols, it is more efficient to have the SMARTS matching as the inner  
loop, to avoid repeated pre-processing of the same molecule by the  
parser.

-------------------------------------------------------------------
Rajarshi Guha  <[email protected]>
GPG Fingerprint: D070 5427 CC5B 7938 929C  DD13 66A1 922C 51E7 9E84
-------------------------------------------------------------------
Q:  What's polite and works for the phone company?
A:  A deferential operator.



------------------------------------------------------------------------------
Crystal Reports &#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&#45;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

Reply via email to