-
Notifications
You must be signed in to change notification settings - Fork 11
/
run_test.sh
executable file
·71 lines (61 loc) · 1.68 KB
/
run_test.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
#!/bin/bash
set -e # Stop on the first error
export OMP_NUM_THREADS=4
# to replace the reference results execute the following line:
# rename -f 's/iPRG2016./iPRG2016_ref./g' example/iPRG2016.p*; mv example/iPRG2016.tsv.pqr.tsv example/iPRG2016_ref.tsv.pqr.tsv
python3 -m triqler --fold_change_eval 0.8 --out example/iPRG2016.proteins.tsv example/iPRG2016.tsv
if [[ $? -eq 0 ]]; then
echo "Test succeeded"
else
echo "Test failed"
exit
fi
diff -q example/iPRG2016.proteins.1vs2.tsv example/iPRG2016_ref.proteins.1vs2.tsv
if [[ $? -eq 0 ]]; then
echo "Test 1vs2 succeeded"
else
echo "Test 1vs2 failed"
exit
fi
diff -q example/iPRG2016.proteins.1vs3.tsv example/iPRG2016_ref.proteins.1vs3.tsv
if [[ $? -eq 0 ]]; then
echo "Test 1vs3 succeeded"
else
echo "Test 1vs3 failed"
exit
fi
diff -q example/iPRG2016.proteins.2vs3.tsv example/iPRG2016_ref.proteins.2vs3.tsv
if [[ $? -eq 0 ]]; then
echo "Test 2vs3 succeeded"
else
echo "Test 2vs3 failed"
exit
fi
python3 -m triqler --fold_change_eval 0.8 --out example/iPRG2016.proteins.tsv example/iPRG2016.tsv
if [[ $? -eq 0 ]]; then
echo "Test succeeded"
else
echo "Test failed"
exit
fi
#diff -q example/iPRG2016.proteins.1vs2.tsv example/iPRG2016_ref.proteins.1vs2.tsv
#if [[ $? -eq 0 ]]; then
# echo "Test 1vs2 succeeded"
#else
# echo "Test 1vs2 failed"
# exit
#fi
#diff -q example/iPRG2016.proteins.1vs3.tsv example/iPRG2016_ref.proteins.1vs3.tsv
#if [[ $? -eq 0 ]]; then
# echo "Test 1vs3 succeeded"
#else
# echo "Test 1vs3 failed"
# exit
#fi
#diff -q example/iPRG2016.proteins.2vs3.tsv example/iPRG2016_ref.proteins.2vs3.tsv
#if [[ $? -eq 0 ]]; then
# echo "Test 2vs3 succeeded"
#else
# echo "Test 2vs3 failed"
# exit
#fi