-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathrun_test.sh
executable file
·39 lines (33 loc) · 1.06 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
#!/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
python tests/system_tests/compare_tables.py 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
python tests/system_tests/compare_tables.py 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
python tests/system_tests/compare_tables.py 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