annotate build_test.sh @ 15:981eb8c3a756 default tip

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