0
|
1
|
|
2 mkdir -p tmp
|
|
3
|
15
|
4 echo "# Test codonlogo by building logos with many different options."
|
0
|
5
|
|
6 echo -ne '.'
|
15
|
7 ./codonlogo < cap.fa > tmp/logo0.eps ||exit
|
0
|
8
|
|
9 echo -ne '.'
|
15
|
10 ./codonlogo --title "Default Logo with Title" < cap.fa > tmp/logo1.eps ||exit
|
0
|
11
|
|
12 echo -ne '.'
|
15
|
13 ./codonlogo --debug yes --fineprint "Default Logo with this fineprint and debug on" < cap.fa > tmp/logo2.eps ||exit
|
0
|
14
|
|
15 echo -ne '.'
|
15
|
16 ./codonlogo --debug no --fineprint "--debug no" --debug no < cap.fa > tmp/logo3.eps ||exit
|
0
|
17
|
|
18 echo -ne '.'
|
15
|
19 ./codonlogo --debug yes --fineprint "" --title "No fine print" --debug yes < cap.fa > tmp/logo4.eps ||exit
|
0
|
20
|
|
21 echo -ne '.'
|
15
|
22 ./codonlogo --debug yes --fineprint "No title" --title "" < cap.fa > tmp/logo5.eps ||exit
|
0
|
23
|
|
24 echo -ne '.'
|
15
|
25 ./codonlogo --debug yes --fineprint "--first-index -10" --first-index -10 < cap.fa > tmp/logo6.eps ||exit
|
0
|
26
|
|
27 echo -ne '.'
|
15
|
28 ./codonlogo --debug yes --fineprint " --first-index -10 --stacks-per-line 11 " --first-index -10 --stacks-per-line 11 < cap.fa > tmp/logo7a.eps ||exit
|
0
|
29
|
|
30 echo -ne '.'
|
15
|
31 ./codonlogo --debug yes --fineprint " --first-index -10 --stacks-per-line 8 " --first-index -10 --stacks-per-line 8 < cap.fa > tmp/logo7b.eps ||exit
|
0
|
32
|
|
33 echo -ne '.'
|
15
|
34 ./codonlogo --debug yes --fineprint " --first-index -10 --stacks-per-line 7 " --first-index -10 --stacks-per-line 7 < cap.fa > tmp/logo7c.eps ||exit
|
0
|
35
|
|
36 echo -ne '.'
|
15
|
37 ./codonlogo --debug yes --fineprint "Test fin and fout" --fin cap.fa --fout logo8.eps ||exit
|
0
|
38
|
|
39 # Test Y Axis
|
|
40
|
|
41 echo -ne '.'
|
15
|
42 ./codonlogo --debug yes --fineprint "Custom yaxis label " --ylabel 'yaxis label' < cap.fa > tmp/logo9a.eps ||exit
|
0
|
43
|
|
44 echo -ne '.'
|
15
|
45 ./codonlogo --debug yes --fineprint "Custom units" --units 'nats' < cap.fa > tmp/logo9b.eps ||exit
|
0
|
46
|
|
47 echo -ne '.'
|
15
|
48 ./codonlogo --debug yes --fineprint "Override custom units with custom yaxis label." --ylabel 'yaxis label' --units nats < cap.fa > tmp/logo9c.eps ||exit
|
0
|
49
|
|
50 echo -ne '.'
|
15
|
51 ./codonlogo --debug yes --fineprint "Empty ylabel" --ylabel '' < cap.fa > tmp/logo9d.eps
|
0
|
52
|
|
53 echo -ne '.'
|
15
|
54 ./codonlogo --debug yes --fineprint "No Yaxis" --show-yaxis no < cap.fa > tmp/logo9e.eps ||exit
|
0
|
55
|
|
56 # Test X Axis
|
|
57
|
|
58 echo -ne '.'
|
15
|
59 ./codonlogo --debug yes --format pdf --fineprint "Custom xaxis label " --xlabel 'xaxis label' < cap.fa > tmp/logo10a.pdf ||exit
|
0
|
60
|
|
61 echo -ne '.'
|
15
|
62 ./codonlogo --debug yes --format pdf --fineprint "Empty xlabel" --xlabel '' < cap.fa > tmp/logo10b.pdf ||exit
|
0
|
63
|
|
64 echo -ne '.'
|
15
|
65 ./codonlogo --debug yes --format pdf --fineprint "No Xaxis" --show-xaxis no < cap.fa > tmp/logo10c.pdf ||exit
|
0
|
66
|
|
67 echo -ne '.'
|
15
|
68 ./codonlogo --debug yes --format pdf --fineprint "No Xaxis, custom label" --xlabel "Custom xlabel" --show-xaxis no < cap.fa > tmp/logo10d.pdf ||exit
|
0
|
69
|
|
70 # Test Formats
|
|
71
|
|
72 echo -ne '.'
|
15
|
73 ./codonlogo --debug no --fineprint "Format: eps" --format eps < cap.fa > tmp/logo11a.eps ||exit
|
0
|
74
|
|
75 echo -ne '.'
|
15
|
76 ./codonlogo --debug no --fineprint "Format: png" --size large --format png < cap.fa > tmp/logo11b.png ||exit
|
0
|
77
|
|
78 echo -ne '.'
|
15
|
79 ./codonlogo --debug no --fineprint "Format: png high res" --format png_print < cap.fa > tmp/logo11c.png ||exit
|
0
|
80
|
|
81 echo -ne '.'
|
15
|
82 ./codonlogo --debug no --fineprint "Format: pdf" --format pdf < cap.fa > tmp/logo11d.pdf ||exit
|
0
|
83
|
|
84 echo -ne '.'
|
15
|
85 ./codonlogo --debug no --fineprint "Format: jpeg" --size large --format jpeg < cap.fa > tmp/logo11e.jpeg ||exit
|
0
|
86
|
|
87 echo -ne '.'
|
15
|
88 ./codonlogo --debug no --fineprint "Format: EPS" --format EPS < cap.fa > tmp/logo11f.eps ||exit
|
0
|
89
|
|
90 # Test Sizes
|
|
91
|
|
92 echo -ne '.'
|
15
|
93 ./codonlogo --debug no --format png_print --fineprint "default size" < cap.fa > tmp/logo12_default.png ||exit
|
0
|
94
|
|
95 echo -ne '.'
|
15
|
96 ./codonlogo --debug no --format png_print --fineprint "--size large" --size large < cap.fa > tmp/logo12_large.png ||exit
|
0
|
97
|
|
98 echo -ne '.'
|
15
|
99 ./codonlogo --debug no --format png_print --fineprint "--size medium" --size medium < cap.fa > tmp/logo12_medium.png ||exit
|
0
|
100
|
|
101 echo -ne '.'
|
15
|
102 ./codonlogo --debug no --format png_print --fineprint "--size small" --size small < cap.fa > tmp/logo12_small.png ||exit
|
0
|
103
|
|
104
|
|
105
|
|
106 echo -ne '.'
|
15
|
107 ./codonlogo --format pdf --fineprint "" > tmp/logo13.pdf << LimitString
|
0
|
108 >
|
|
109 GTTGTTGTTGTT
|
|
110 >
|
|
111 GTCGTCGTCGTC
|
|
112 >
|
|
113 GGGGGGGGGGGG
|
|
114 >
|
|
115 GGAGGAGGAGGA
|
|
116 LimitString
|
|
117
|
|
118
|
|
119
|
|
120
|
|
121 # Test unit options
|
|
122 echo -ne '.'
|
15
|
123 ./codonlogo --format pdf --fineprint "probability" --unit probability > tmp/logo14a.pdf < cap.fa ||exit
|
0
|
124
|
|
125
|
|
126
|
|
127
|
|
128
|
|
129
|
|
130
|
15
|
131
|