-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest_predict.sh
More file actions
executable file
·52 lines (40 loc) · 1.7 KB
/
test_predict.sh
File metadata and controls
executable file
·52 lines (40 loc) · 1.7 KB
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
# Assuming smina and obabel are in the UNIX path
export smina_exec=`which smina`
export obabel_exec=`which obabel`
echo
echo "smina path: " $smina_exec
echo "obabel path: " $obabel_exec
# Remove the converted receptor file if it exists (to regenerate it).
rm -f censible/data/test/1wdn_receptor.pdb.converted.pdb
# Remove previous output
rm -rf test_output/
mkdir test_output/
# Iterate through these files: censible/data/test/1wdn_ligand.*
for f in censible/data/test/1wdn_ligand.*
do
python predict.py --ligpath $f \
--recpath censible/data/test/1wdn_receptor.pdb \
--smina_exec_path $smina_exec \
--obabel_exec_path $obabel_exec
# Clean up
rm -f censible/data/test/1wdn_ligand.*converted.*
# read -p "Next> "
done
# Also test multiple ligands
python predict.py --ligpath censible/data/test/1wdn_ligand.pdbqt censible/data/test/1wdn_ligand.pdb \
--recpath censible/data/test/1wdn_receptor.pdb \
--smina_exec_path $smina_exec \
--obabel_exec_path $obabel_exec
# Clean up
rm -f censible/data/test/1wdn_ligand.*converted.*
# Test --use_cpu flag to avoid cuda. Also test --tsv_out flag.
python predict.py --ligpath censible/data/test/1wdn_ligand.pdb \
--recpath censible/data/test/1wdn_receptor.pdb \
--smina_exec_path $smina_exec \
--obabel_exec_path $obabel_exec \
--tsv_out test_output/test_out.tsv \
--pdb_out test_output/test_out.pdb \
--use_cpu
# Clean up
rm -f censible/data/test/1wdn_ligand.*converted.*
# Append `--use_cpu` to the above commands to use CPU instead of CUDA GPU