Debian Codegraph @

debian/patches/test_without_mpi

raw symbols SCIP
1 From: Milot Mirdita <[email protected]>
2 Date: Tue, 1 Sep 2020 22:23:03 +0200
3 Subject: Make test script work without MPI
4 Origin: upstream, https://github.com/soedinglab/hh-suite/commit/c296b369410900b193a6b74f0554ac90ccfd7d08
5 Forwarded: not-needed
6 --- a/data/test.sh
7 +++ b/data/test.sh
8 @@ -2,36 +2,51 @@
9
10 rm -f single* search_* blits_*
11
12 -hhalign -i query.a3m -t query.a3m
13 +if $(command -v "ffindex_apply_mpi" >/dev/null 2>&1); then
14 + MPI=1
15 +fi
16 +
17 +hhalign -i query.a3m -o result.hhr -t query.a3m
18
19 ffindex_build -s single.ffdata single.ffindex query.a3m
20
21 -mpirun -np 2 \
22 - ffindex_apply_mpi single.ffdata single.ffindex -d single_a3m_cons.ffdata -i single_a3m_cons.ffindex \
23 +APPLY="ffindex_apply"
24 +if [ -n "$MPI" ]; then
25 + APPLY="mpirun -np 2 ffindex_apply_mpi"
26 +fi
27 +
28 +$APPLY single.ffdata single.ffindex -d single_a3m_cons.ffdata -i single_a3m_cons.ffindex \
29 -- hhconsensus -i stdin -oa3m stdout -M a3m -v 0
30
31 -mpirun -np 2 \
32 - ffindex_apply_mpi single_a3m_cons.ffdata single_a3m_cons.ffindex -d single_a3m.ffdata -i single_a3m.ffindex \
33 +$APPLY single_a3m_cons.ffdata single_a3m_cons.ffindex -d single_a3m.ffdata -i single_a3m.ffindex \
34 -- hhfilter -i stdin -o stdout -diff 1000 -v 0
35
36 -mpirun -np 2 \
37 - ffindex_apply_mpi single_a3m.ffdata single_a3m.ffindex -d single_hhm.ffdata -i single_hhm.ffindex \
38 +$APPLY single_a3m.ffdata single_a3m.ffindex -d single_hhm.ffdata -i single_hhm.ffindex \
39 -- hhmake -i stdin -o stdout -v 0
40
41 -mpirun -np 2 cstranslate_mpi -i single -o single_cs219 -b -x 0.3 -c 4 -I a3m
42 +if [ -n "$MPI" ]; then
43 + mpirun -np 2 cstranslate_mpi -i single -o single_cs219 -b -x 0.3 -c 4 -I a3m
44 +else
45 + cstranslate -i single -o single_cs219 -b -x 0.3 -c 4 -I a3m -f
46 +fi
47
48 -hhblits -i query.a3m -d single -blasttab blits_app_res -n 1
49 +hhblits -i query.a3m -o result.hhr -d single -blasttab blits_app_res -n 1
50 hhblits_omp -i single -d single -blasttab blits_omp_res -n 1
51 -mpirun -np 2 hhblits_mpi -i single -d single -blasttab blits_mpi_res -n 1
52 -
53 diff <(tr -d '\000' < blits_omp_res.ffdata) blits_app_res
54 -diff <(tr -d '\000' < blits_mpi_res.ffdata) blits_app_res
55 +if [ -n "$MPI" ]; then
56 + mpirun -np 2 hhblits_mpi -i single -d single -blasttab blits_mpi_res -n 1
57 + diff <(tr -d '\000' < blits_mpi_res.ffdata) blits_app_res
58 +fi
59
60 -hhsearch -i query.a3m -d single -blasttab search_app_res
61 +hhsearch -i query.a3m -o result.hhr -d single -blasttab search_app_res
62 hhsearch_omp -i single -d single -blasttab search_omp_res
63 -mpirun -np 2 hhsearch_mpi -i single -d single -blasttab search_mpi_res
64 -
65 diff <(tr -d '\000' < search_omp_res.ffdata) search_app_res
66 -diff <(tr -d '\000' < search_mpi_res.ffdata) search_app_res
67 +
68 +if [ -n "$MPI" ]; then
69 + mpirun -np 2 hhsearch_mpi -i single -d single -blasttab search_mpi_res
70 + diff <(tr -d '\000' < search_mpi_res.ffdata) search_app_res
71 +fi
72
73 diff <(cut -f 1-10,12 blits_app_res) <(cut -f 1-10,12 search_app_res)
74 +
75 +rm -f result.hhr