-
Notifications
You must be signed in to change notification settings - Fork 3
/
test.sh
executable file
·116 lines (101 loc) · 2.69 KB
/
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
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
#!/usr/bin/env bash
#ln -s ~/Documents/GitHub/sigflow/sigflow.R ~/.local/bin/sigflow
## Extraction PART:
#1
sigflow extract -i tcga_laml.maf.gz -o test_results/test_maf -m MAF -r 10 -T 4 --max 10 --refit --hyper
if [ $? -ne 0 ]; then
t1="failed at 'test_maf' in mode 'MAF'"
else
t1="succeed in test #1"
fi
#2
sigflow extract -i tcga_laml.maf.gz -o test_results/test_maf_SBS -m SBS -r 10 -T 4 --max 10
if [ $? -ne 0 ]; then
t2="failed at 'test_maf' in mode 'SBS'"
else
t2="succeed in test #2"
fi
#3
sigflow extract -i tcga_laml.maf.gz -o test_results/test_maf_ID -m ID -r 10 -T 4 --max 10
if [ $? -ne 0 ]; then
t3="failed at 'test_maf' in mode 'ID'"
else
t3="succeed in test #3"
fi
#4
sigflow extract -i vcf/ -o test_results/test_vcf -m MAF -r 10 -T 4 --max 10
if [ $? -ne 0 ]; then
t4="failed at 'test_vcf' in mode 'MAF'"
else
t4="succeed in test #4"
fi
#5
sigflow extract -i example_cn.tsv -o test_results/test_cn -m CN -r 10 -T 4 --max 5
if [ $? -ne 0 ]; then
t5="failed at 'test_cn' in mode 'CN'"
else
t5="succeed in test #5"
fi
#10
sigflow extract -i example_mat.csv -o test_results/test_cn_mat -m CN -r 10 -T 4 --max 5
if [ $? -ne 0 ]; then
t10="failed at 'test_cn_mat' in mode 'CN'"
else
t10="succeed in test #10"
fi
#6
sigflow extract -i tcga_laml.maf.gz -o test_results/test_maf_manual -m SBS -r 10 -T 4 --manual -g hg19
if [ $? -ne 0 ]; then
t6_1="failed at 'test_manual' step 1 in mode 'SBS'"
else
t6_1="succeed in test #6 step 1"
fi
sigflow extract -i tcga_laml.maf.gz -o test_results/test_maf_manual -m SBS -r 10 -T 4 --manual -N 3
if [ $? -ne 0 ]; then
t6_2="failed at 'test_manual' step 2 in mode 'SBS'"
else
t6_2="succeed in test #6 step 2"
fi
## Fitting PART:
#7
sigflow fit -i tcga_laml.maf.gz -o test_results/test_fitting -m MAF
if [ $? -ne 0 ]; then
t7="failed at 'test_fitting' in mode 'MAF'"
else
t7="succeed in test #7"
fi
#8
sigflow bt -i tcga_laml.maf.gz -o test_results/test_bt -m SBS -r 5 --verbose
if [ $? -ne 0 ]; then
t8="failed at 'test_bt' in mode 'SBS'"
else
t8="succeed in test #8"
fi
# Show PART
sigflow show --isearch breast
if [ $? -ne 0 ]; then
t11="failed at testing search cancer type specific indices"
else
t11="succeed in test #11"
fi
sigflow show --mode SBS --index 1,2,3,7a -o test_results/test_show_sig_profile
if [ $? -ne 0 ]; then
t12="failed at plotting COSMIC reference signatures"
else
t12="succeed in test #12"
fi
## Output test results
echo ===========================================
echo " Test Results "
echo $t1
echo $t2
echo $t3
echo $t4
echo $t5
echo "$t6_1; $t6_2"
echo $t7
echo $t8
echo $t10
echo $t11
echo $t12
echo ===========================================