annotate build_test.sh @ 8:5149eb3a89c2

Uploaded
author davidmurphy
date Fri, 20 Jan 2012 09:03:40 -0500
parents c55bdc2fb9fa
children 981eb8c3a756
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
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
4 echo "# Test weblogo by building logos with many different options."
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
5
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
6 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
7 ./weblogo < cap.fa > tmp/logo0.eps ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
8
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
9 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
10 ./weblogo --title "Default Logo with Title" < cap.fa > tmp/logo1.eps ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
11
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
12 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
13 ./weblogo --debug yes --fineprint "Default Logo with this fineprint and debug on" < cap.fa > tmp/logo2.eps ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
14
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
15 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
16 ./weblogo --debug no --fineprint "--debug no" --debug no < cap.fa > tmp/logo3.eps ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
17
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
18 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
19 ./weblogo --debug yes --fineprint "" --title "No fine print" --debug yes < cap.fa > tmp/logo4.eps ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
20
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
21 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
22 ./weblogo --debug yes --fineprint "No title" --title "" < cap.fa > tmp/logo5.eps ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
23
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
24 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
25 ./weblogo --debug yes --fineprint "--first-index -10" --first-index -10 < cap.fa > tmp/logo6.eps ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
26
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
27 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
28 ./weblogo --debug yes --fineprint " --first-index -10 --stacks-per-line 11 " --first-index -10 --stacks-per-line 11 < cap.fa > tmp/logo7a.eps ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
29
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
30 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
31 ./weblogo --debug yes --fineprint " --first-index -10 --stacks-per-line 8 " --first-index -10 --stacks-per-line 8 < cap.fa > tmp/logo7b.eps ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
32
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
33 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
34 ./weblogo --debug yes --fineprint " --first-index -10 --stacks-per-line 7 " --first-index -10 --stacks-per-line 7 < cap.fa > tmp/logo7c.eps ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
35
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
36 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
37 ./weblogo --debug yes --fineprint "Test fin and fout" --fin cap.fa --fout logo8.eps ||exit
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 '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
42 ./weblogo --debug yes --fineprint "Custom yaxis label " --ylabel 'yaxis label' < cap.fa > tmp/logo9a.eps ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
43
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
44 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
45 ./weblogo --debug yes --fineprint "Custom units" --units 'nats' < cap.fa > tmp/logo9b.eps ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
46
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
47 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
48 ./weblogo --debug yes --fineprint "Override custom units with custom yaxis label." --ylabel 'yaxis label' --units nats < cap.fa > tmp/logo9c.eps ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
49
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
50 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
51 ./weblogo --debug yes --fineprint "Empty ylabel" --ylabel '' < cap.fa > tmp/logo9d.eps
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
52
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
53 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
54 ./weblogo --debug yes --fineprint "No Yaxis" --show-yaxis no < cap.fa > tmp/logo9e.eps ||exit
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 '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
59 ./weblogo --debug yes --format pdf --fineprint "Custom xaxis label " --xlabel 'xaxis label' < cap.fa > tmp/logo10a.pdf ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
60
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
61 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
62 ./weblogo --debug yes --format pdf --fineprint "Empty xlabel" --xlabel '' < cap.fa > tmp/logo10b.pdf ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
63
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
64 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
65 ./weblogo --debug yes --format pdf --fineprint "No Xaxis" --show-xaxis no < cap.fa > tmp/logo10c.pdf ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
66
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
67 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
68 ./weblogo --debug yes --format pdf --fineprint "No Xaxis, custom label" --xlabel "Custom xlabel" --show-xaxis no < cap.fa > tmp/logo10d.pdf ||exit
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 '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
73 ./weblogo --debug no --fineprint "Format: eps" --format eps < cap.fa > tmp/logo11a.eps ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
74
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
75 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
76 ./weblogo --debug no --fineprint "Format: png" --size large --format png < cap.fa > tmp/logo11b.png ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
77
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
78 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
79 ./weblogo --debug no --fineprint "Format: png high res" --format png_print < cap.fa > tmp/logo11c.png ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
80
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
81 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
82 ./weblogo --debug no --fineprint "Format: pdf" --format pdf < cap.fa > tmp/logo11d.pdf ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
83
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
84 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
85 ./weblogo --debug no --fineprint "Format: jpeg" --size large --format jpeg < cap.fa > tmp/logo11e.jpeg ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
86
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
87 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
88 ./weblogo --debug no --fineprint "Format: EPS" --format EPS < cap.fa > tmp/logo11f.eps ||exit
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 '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
93 ./weblogo --debug no --format png_print --fineprint "default size" < cap.fa > tmp/logo12_default.png ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
94
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
95 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
96 ./weblogo --debug no --format png_print --fineprint "--size large" --size large < cap.fa > tmp/logo12_large.png ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
97
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
98 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
99 ./weblogo --debug no --format png_print --fineprint "--size medium" --size medium < cap.fa > tmp/logo12_medium.png ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
100
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
101 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
102 ./weblogo --debug no --format png_print --fineprint "--size small" --size small < cap.fa > tmp/logo12_small.png ||exit
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 '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
107 ./weblogo --format pdf --fineprint "" > tmp/logo13.pdf << LimitString
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 '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
123 ./weblogo --format pdf --fineprint "probability" --unit probability > tmp/logo14a.pdf < cap.fa ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
124
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
125 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
126 ./weblogo --format pdf --fineprint "bits" --unit bits > tmp/logo14b.pdf < cap.fa ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
127
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
128 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
129 ./weblogo --format pdf --fineprint "nats" --unit nats > tmp/logo14c.pdf < cap.fa ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
130
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
131 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
132 ./weblogo --format pdf --fineprint "kJ/mol" --unit kJ/mol \
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
133 > tmp/logo14d.pdf < cap.fa ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
134
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
135 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
136 ./weblogo --format pdf --fineprint "kT" --unit kT \
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
137 > tmp/logo14e.pdf < cap.fa ||exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
138
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
139 echo -ne '.'
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
140 ./weblogo --format pdf --fineprint "kcal/mol" --unit kcal/mol \
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
141 > tmp/logo14f.pdf < cap.fa || exit
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
142
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
143
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
144
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
145
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
146
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
147
c55bdc2fb9fa Uploaded
davidmurphy
parents:
diff changeset
148