-
Notifications
You must be signed in to change notification settings - Fork 19
/
test-rdkit.sh
executable file
·125 lines (99 loc) · 5.48 KB
/
test-rdkit.sh
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#!/usr/bin/env bash
rm -rf tmp
mkdir tmp
msg_fail="\n========================== TEST FAILED ==========================\n"
msg_file_notCreated="\n========================== FILE NOT CREATED =====================\n"
#echo "Testing screen.py reading from STDIN and writing to STDOUT input as smiles"
#gunzip -c data/dhfr_3d.sdf.gz | python src/python/pipelines/rdkit/screen.py\
# --qsmiles 'C1N=C(C2=CC=CC=C2)C2=CC=CC=C2C2=C1C=NC(NC1=CC=CC=C1)=N2'\
# --simmin 0.45\
# -if sdf > /dev/null || echo -e $msg_fail
#echo "Testing screen.py reading from STDIN and writing to STDOUT input from molfile"
#gunzip -c data/dhfr_3d.sdf.gz | python src/python/pipelines/rdkit/screen.py\
# --qmolfile data/pyrimethamine.mol\
# --simmin 0.7\
# --simmax 0.8\
# -if sdf > /dev/null || echo -e $msg_fail
#echo "Testing screen.py reading and writing files using sdf"
#python src/python/pipelines/rdkit/screen.py\
# -i data/dhfr_3d.sdf.gz\
# -o tmp/screen2\
# -of sdf\
# --qsmiles 'C1N=C(C2=CC=CC=C2)C2=CC=CC=C2C2=C1C=NC(NC1=CC=CC=C1)=N2'\
# --simmin 0.45\
# -if sdf > /dev/null || echo -e $msg_fail
#if [ ! -f tmp/screen2.sdf.gz ]
#then
# echo -e $msg_file_notCreated
#fi
#echo "Testing screen.py reading and writing files using json"
#python src/python/pipelines/rdkit/screen.py\
# -i data/nci100.data.gz\
# -o tmp/screen3\
# -of json\
# --qsmiles 'C1N=C(C2=CC=CC=C2)C2=CC=CC=C2C2=C1C=NC(NC1=CC=CC=C1)=N2'\
# --simmin 0.45\
# -if json > /dev/null || echo -e $msg_fail
#if [ ! -f tmp/screen3.data.gz ]
#then
# echo -e $msg_file_notCreated
#fi
#echo "Testing screen.py reading and writing files using thin sdf"
#python src/python/pipelines/rdkit/screen.py\
# -i data/dhfr_3d.sdf.gz\
# -o tmp/screen2\
# -of sdf\
# --qsmiles 'C1N=C(C2=CC=CC=C2)C2=CC=CC=C2C2=C1C=NC(NC1=CC=CC=C1)=N2'\
# --simmin 0.45\
# -if sdf\
# --thin > /dev/null || echo -e $msg_fail
#if [ ! -f tmp/screen2.sdf.gz ]
#then
# echo -e $msg_file_notCreated
#fi
#echo "Testing screen.py reading and writing files using thin json"
#python src/python/pipelines/rdkit/screen.py\
# -i data/nci100.data.gz\
# -o tmp/screen3\
# -of json\
# --qsmiles 'C1N=C(C2=CC=CC=C2)C2=CC=CC=C2C2=C1C=NC(NC1=CC=CC=C1)=N2'\
# --simmin 0.45\
# -if json\
# --thin > /dev/null || echo -e $msg_fail
#if [ ! -f tmp/screen3.data.gz ]
#then
# echo -e $msg_file_notCreated
#fi
#echo "Testing screen_multi.py reading taget form sdf file, query as json file and writing to STDOUT"
#gunzip -c data/dhfr_3d.sdf.gz | python src/python/pipelines/rdkit/screen_multi.py\
# -if sdf --qjson data/nci100.data.gz --simmin 0.55 > /dev/null || echo -e $msg_fail
#echo "Testing conformers.py reading from STDIN and writing to STDOUT"
#gunzip -c data/Kinase_inhibs.sdf.gz | python src/python/pipelines/rdkit/conformers.py -n 2 -if sdf > /dev/null || echo -e $msg_fail
#echo "Testing constrained_conf_gen.py reading from STDIN and writing to STDOUT"
#python src/python/pipelines/rdkit/constrained_conf_gen.py -n 2 -i data/XChemReactionMaker1.sdf.gz -r data/ref_mol.sdf.gz -o tmp/constrained_conf_gen.sdf.gz || echo -e $msg_fail
#echo "Testing conformers.py with clustering reading from STDIN and writing to STDOUT"
#gunzip -c data/Kinase_inhibs.sdf.gz | python src/python/pipelines/rdkit/conformers.py -n 2 -c RMSD -if sdf > /dev/null || echo -e $msg_fail
#echo "Testing o3dAlign.py reading from STDIN and writing to STDOUT"
#gunzip -c data/Kinase_inhibs.sdf.gz | python src/python/pipelines/rdkit/o3dAlign.py\
# data/pyrimethamine.mol -n 2 -t 10 -if sdf > /dev/null || echo -e $msg_fail
echo "Testing filter.py reading from STDIN and writing to STDOUT"
gunzip -c data/Kinase_inhibs.sdf.gz | python src/python/pipelines/rdkit/filter.py --hacmin 25 --hacmax 30 -if sdf > /dev/null || echo -e $msg_fail
#echo "Testing cluster_butina.py reading from STDIN and writing to STDOUT"
#gunzip -c data/Kinase_inhibs.sdf.gz | python src/python/pipelines/rdkit/cluster_butina.py -t 0.6 -if sdf > /dev/null || echo -e $msg_fail
#echo "Testing cluster_butina_matrix.py reading from STDIN and writing TSV to STDOUT"
#gunzip -c data/Kinase_inhibs.sdf.gz | src/python/pipelines/rdkit/cluster_butina_matrix.py -t 0.6 -if sdf -of tsv > /dev/null || echo -e $msg_fail
#echo "Testing cluster_butina_matrix.py reading from STDIN and writing JSON to STDOUT"
#gunzip -c data/Kinase_inhibs.sdf.gz | src/python/pipelines/rdkit/cluster_butina_matrix.py -t 0.6 -if sdf -of json > /dev/null || echo -e $msg_fail
#echo "Testing rxn_smarts_filter.py reading from STDIN and writing to files using SDF"
#gunzip -c data/Kinase_inhibs.sdf.gz | python src/python/pipelines/rdkit/rxn_smarts_filter.py -if sdf -o tmp/rxn_smarts_filter1 || echo -e $msg_fail
#echo "Testing rxn_smarts_filter.py reading from STDIN and writing to files using JSON"
#gunzip -c data/nci100.data.gz | python src/python/pipelines/rdkit/rxn_smarts_filter.py -if json -o tmp/rxn_smarts_filter2 -of json --meta --thin || echo -e $msg_fail
#echo "Testing rxn_smarts_filter.py reading from sd file and writing to multiple files"
#python src/python/pipelines/rdkit/rxn_smarts_filter.py -i data/Kinase_inhibs.sdf.gz -o tmp/rxn_smarts_filter2 --multi || echo -e $msg_fail
#echo "Testing rxn_maker.py reading from files"
#python src/python/pipelines/rdkit/rxn_maker.py -i data/sulfonyl_chloride.sdf -r Sulfonamide -rl data/sdf-aliphatic-primary-amines-175.sdf.gz -o tmp/rxnoutput || echo -e $msg_fail
#echo "Testing pbf_ev.py reading from files"
#python src/python/pipelines/rdkit/pbf_ev.py -i data/dhfr_3d.sdf -o tmp/pbf_ev_output || echo -e $msg_fail
echo "cleaning up ..."
rm -f *.metadata
echo "Finished"