dt_Handle pattern, molecule, pathset;
dt_Integer slen;
dt_String str;
/* Read SMARTS in. */
pattern = dt_smartin(2, "Oa");
/* Optimized for matches on typical molecules. */
str = dt_smarts_opt(&slen, 2, "aO", 0);
printf("The optimized SMARTS expression is %.*s.\n", slen, str);
molecule = dt_smilin(12, "Oc1ccc(O)cc1");
pathset = dt_match(pattern, molecule, 0);
The optimized SMARTS expression is Oa.
|