1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
To use the Avalon Toolkit support in the RDKit, first download a copy of the
source from:
http://sourceforge.net/projects/avalontoolkit/files/AvalonToolkit_1.1_beta/AvalonToolkit_1.1_beta.source.tar/download
Note that the version number is important.
Extract the tar file somewhere; the source requred by the RDKit is in
the SourceDistribution directory.
Apply the following diff to the files
SourceDistribution/common/reaccsio.c and
SourceDistribution/common/smi2mol.c:
$ diff SourceDistribution/common ~/avalontoolkit_beta/SourceDistribution/common
diff SourceDistribution/common/reaccsio.c /cygdrive/c/Users/glandrum/avalontoolkit_beta/SourceDistribution/common/reaccsio.c
1400d1399
<
1414c1413
< MyFree((char *)tempdir);
---
> //MyFree((char *)tempdir);
1433d1431
<
1443c1441
<
---
> fprintf(stderr," returning\n");
diff SourceDistribution/common/smi2mol.c /cygdrive/c/Users/glandrum/avalontoolkit_beta/SourceDistribution/common/smi2mol.c
936c936
< fprintf(stderr, "2: opening branch '%s'\n", tmp);
---
> /* fprintf(stderr, "2: opening branch '%s'\n", tmp); */
1012c1012
< fprintf(stderr, "closing branch '%s'\n", tmp);
---
> /* fprintf(stderr, "closing branch '%s'\n", tmp); */
1543c1543
< fprintf(stderr, ".{%s:%d}", mp->atom_array[ibranch].atext, ibranch+1);
---
> /*fprintf(stderr, ".{%s:%d}", mp->atom_array[ibranch].atext, ibranch+1);*/
1550c1550
< fprintf(stderr, "{%s:%d}", mp->atom_array[ibranch].atext, ibranch+1);
---
> /*fprintf(stderr, "{%s:%d}", mp->atom_array[ibranch].atext, ibranch+1);*/
1574c1574
< fprintf(stderr, "1: opening branch '%s'\n", num_buf);
---
> /*fprintf(stderr, "1: opening branch '%s'\n", num_buf);*/
1592c1592
< fprintf(stderr, "{%s:%d}", mp->atom_array[ibranch].atext, ibranch+1);
---
> /*fprintf(stderr, "{%s:%d}", mp->atom_array[ibranch].atext, ibranch+1);*/
1596c1596
< fprintf(stderr, "\n");
---
> /*fprintf(stderr, "\n");*/
|