0
|
1 #!/bin/bash
|
|
2
|
|
3 inputFile=$1
|
|
4 outputFile=$2
|
|
5 outputDir=$3
|
3
|
6 min_freq=$4
|
|
7 min_cells=$5
|
0
|
8
|
|
9 dir="$(cd "$(dirname "$0")" && pwd)"
|
|
10 mkdir $outputDir
|
|
11
|
3
|
12
|
|
13 Rscript --verbose $dir/RScript.r $inputFile $outputDir $outputFile $min_freq $min_cells 2>&1
|
0
|
14 cp $dir/jquery-1.11.0.min.js $outputDir
|
|
15 cp $dir/script.js $outputDir
|
|
16 cp $dir/style.css $outputDir
|
|
17 cp $dir/tabber.js $outputDir
|
|
18
|
|
19 echo "<html><center><h1><a href='index.html'>Click here for the results</a></h1>Tip: Open it in a new tab (middle mouse button or right mouse button -> 'open in new tab' on the link above)</center></html>" > $outputFile
|
|
20
|
|
21 cd $outputDir
|
|
22
|
4
|
23 header="<html><head><script type='text/javascript' src='jquery-1.11.0.min.js'></script><script type='text/javascript' src='tabber.js'></script><script type='text/javascript' src='script.js'></script><link rel='stylesheet' type='text/css' href='style.css'></head><div id='hidden_div' style='display: none;'></div>"
|
|
24 singles=()
|
|
25 pairs_BM_PB=()
|
|
26 pairs_Left_Right=()
|
|
27 pairs_R_Dx=()
|
|
28 while read patient sample1 sample2 type
|
0
|
29 do
|
|
30 echo "$patient"
|
4
|
31 html="${patient}.html"
|
9
|
32 echo "$header" > "$html"
|
4
|
33 if [[ "$type" == *pair* ]] ; then
|
|
34 if [[ "$sample1" == *_BM* ]] || [[ "$sample1" == *_PB* ]] ; then
|
|
35 pairs_BM_PB+=( "$patient" )
|
|
36 elif [[ "$sample1" == *_Left* ]] || [[ "$sample1" == *_Right* ]] ; then
|
|
37 pairs_Left_Right+=( "$patient" )
|
|
38 else
|
|
39 pairs_R_Dx+=( "$patient" )
|
|
40 fi
|
|
41 else
|
|
42 singles+=( "$patient" )
|
|
43 fi
|
0
|
44 oldLocus=""
|
|
45 sample1="$(echo ${sample1} | tr -d '\r' | tr -d '\n')"
|
|
46 sample2="$(echo ${sample2} | tr -d '\r' | tr -d '\n')"
|
|
47 tail -n+2 ${patient}_freq.txt | sed "s/>//" > tmp.txt
|
9
|
48 echo "<div class='tabber'>" >> "$html"
|
|
49 echo "<div class='tabbertab' title='Data frequency'>" >> "$html"
|
|
50 echo "<table><tr><td style='vertical-align:top;'>" >> "$html"
|
|
51 echo "<table border = 1 class='result_table summary_table' id='summary_table_${patient}_freq'>" >> "$html"
|
|
52 echo "<thead><th>Ig/TCR gene rearrangement type</th><th>Proximal gene segment</th><th>Distal gene segment</th><th>Cut off value</th><th>Number of sequences ${patient}_Both</th><th>Number of sequences_$sample1</th><th>Read Count $sample1</th><th>Number of sequences_$sample2</th><th>Read Count $sample2</th><th>Sum number of sequences $patient</th><th>Percentage of sequences ${patient}_both</th></thead>" >> "$html"
|
|
53 echo "<tbody>" >> "$html"
|
2
|
54 while read locus j_segment v_segment cut_off_value both one read_count1 two read_count2 sum percent locusreadsum1 locusreadsum2
|
0
|
55 do
|
|
56 if [ "$locus" != "$oldLocus" ] ; then
|
9
|
57 echo "<tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr>" >> "$html"
|
|
58 echo "<tr><td><b>$locus</b></td>" >> "$html"
|
0
|
59 else
|
9
|
60 echo "<td></td>" >> "$html"
|
0
|
61 fi
|
9
|
62 echo "<td>$v_segment</td>" >> "$html"
|
|
63 echo "<td>$j_segment</td>" >> "$html"
|
|
64 echo "<td>>$cut_off_value</td>" >> "$html"
|
0
|
65 if [ "$both" != "0" ] ; then
|
9
|
66 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample1}_${sample2}_${locus}_${cut_off_value}.txt\", \"$patient\", \"freq\")'>$both</td>" >> "$html"
|
0
|
67 else
|
9
|
68 echo "<td>$both</td>" >> "$html"
|
0
|
69 fi
|
|
70 if [ "$one" != "0" ] && [ "$cut_off_value" != "0" ] ; then
|
9
|
71 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample1}_${locus}_${cut_off_value}.txt\", \"$patient\", \"freq\")'>$one</td>" >> "$html"
|
0
|
72 else
|
9
|
73 echo "<td>$one</td>" >> "$html"
|
0
|
74 fi
|
9
|
75 echo "<td>$read_count1</td>" >> "$html"
|
0
|
76 if [ "$two" != "0" ] && [ "$cut_off_value" != "0" ] ; then
|
9
|
77 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample2}_${locus}_${cut_off_value}.txt\", \"$patient\", \"freq\")'>$two</td>" >> "$html"
|
0
|
78 else
|
9
|
79 echo "<td>$two</td>" >> "$html"
|
0
|
80 fi
|
9
|
81 echo "<td>$read_count2</td>" >> "$html"
|
|
82 echo "<td>$sum</td>" >> "$html"
|
|
83 echo "<td>${percent}%</td>" >> "$html"
|
|
84 echo "</tr>" >> "$html"
|
2
|
85 oldLocus="$locus"
|
0
|
86 done < tmp.txt
|
9
|
87 echo "</tbody></table>" >> "$html"
|
|
88 echo "</td><td style='vertical-align:top;'><div id='result_div_${patient}_freq'></div></td></tr></table>" >> "$html"
|
|
89 echo "</div>" >> "$html"
|
|
90 echo "<div class='tabbertab' title='Graphs frequency'>" >> "$html"
|
|
91 echo "<a href='${patient}_freq.png'><img src='${patient}_freq.png' width='1280' height='720' /></a><br />" >> "$html"
|
|
92 echo "<a href='${patient}_freq_both.png'><img src='${patient}_freq_both.png' width='1280' height='720' /></a><br />" >> "$html"
|
|
93 echo "<a href='${patient}_percent_freq.png'><img src='${patient}_percent_freq.png' width='1280' height='720' /></a></div>" >> "$html"
|
0
|
94
|
|
95 tail -n+2 ${patient}_reads.txt | sed "s/>//" > tmp.txt
|
9
|
96 echo "<div class='tabbertab' title='Data reads'>" >> "$html"
|
|
97 echo "<table><tr><td style='vertical-align:top;'>" >> "$html"
|
|
98 echo "<table border = 1 class='result_table summary_table' id='summary_table_${patient}_reads'>" >> "$html"
|
|
99 echo "<thead><th>Ig/TCR gene rearrangement type</th><th>Proximal gene segment</th><th>Distal gene segment</th><th>Cut off value</th><th>Number of sequences ${patient}_Both</th><th>Number of sequences_$sample1</th><th>Read Count $sample1</th><th>Number of sequences_$sample2</th><th>Read Count $sample2</th><th>Sum number of sequences $patient</th><th>Percentage of sequences ${patient}_both</th></thead>" >> "$html"
|
|
100 echo "<tbody>" >> "$html"
|
2
|
101 while read locus j_segment v_segment cut_off_value both one read_count1 two read_count2 sum percent locusreadsum1 locusreadsum2
|
0
|
102 do
|
|
103 if [ "$locus" != "$oldLocus" ] ; then
|
9
|
104 echo "<tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr>" >> "$html"
|
|
105 echo "<tr><td><b>$locus</b></td>" >> "$html"
|
0
|
106 else
|
9
|
107 echo "<td></td>" >> "$html"
|
0
|
108 fi
|
9
|
109 echo "<td>$v_segment</td>" >> "$html"
|
|
110 echo "<td>$j_segment</td>" >> "$html"
|
|
111 echo "<td>>$cut_off_value</td>" >> "$html"
|
0
|
112 if [ "$both" != "0" ] ; then
|
9
|
113 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample1}_${sample2}_${locus}_${cut_off_value}.txt\", \"$patient\", \"reads\")'>$both</td>" >> "$html"
|
0
|
114 else
|
9
|
115 echo "<td>$both</td>" >> "$html"
|
0
|
116 fi
|
|
117 if [ "$one" != "0" ] && [ "$cut_off_value" != "0" ] ; then
|
9
|
118 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample1}_${locus}_${cut_off_value}.txt\", \"$patient\", \"reads\")'>$one</td>" >> "$html"
|
0
|
119 else
|
9
|
120 echo "<td>$one</td>" >> "$html"
|
0
|
121 fi
|
9
|
122 echo "<td>$read_count1</td>" >> "$html"
|
0
|
123 if [ "$two" != "0" ] && [ "$cut_off_value" != "0" ] ; then
|
9
|
124 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample2}_${locus}_${cut_off_value}.txt\", \"$patient\", \"reads\")'>$two</td>" >> "$html"
|
0
|
125 else
|
9
|
126 echo "<td>$two</td>" >> "$html"
|
0
|
127 fi
|
9
|
128 echo "<td>$read_count2</td>" >> "$html"
|
|
129 echo "<td>$sum</td>" >> "$html"
|
|
130 echo "<td>${percent}%</td>" >> "$html"
|
|
131 echo "</tr>" >> "$html"
|
0
|
132 oldLocus="$locus"
|
|
133 done < tmp.txt
|
9
|
134 echo "</tbody></table>" >> "$html"
|
|
135 echo "</td><td style='vertical-align:top;'><div id='result_div_${patient}_reads'></div></td></tr></table>" >> "$html"
|
|
136 echo "</div>" >> "$html"
|
|
137 echo "<div class='tabbertab' title='Graphs reads'>" >> "$html"
|
|
138 echo "<a href='${patient}_reads.png'><img src='${patient}_reads.png' width='1280' height='720' /></a><br />" >> "$html"
|
|
139 echo "<a href='${patient}_reads_both.png'><img src='${patient}_reads_both.png' width='1280' height='720' /></a><br />" >> "$html"
|
|
140 echo "<a href='${patient}_percent_reads.png'><img src='${patient}_percent_reads.png' width='1280' height='720' /></a></div>" >> "$html"
|
|
141 echo "</div>" >> "$html"
|
|
142 echo "</div>" >> "$html"
|
|
143 echo "</html>" >> "$html"
|
0
|
144 done < patients.txt
|
4
|
145
|
|
146 html="index.html"
|
|
147 echo "<html>" > $html
|
9
|
148 echo "<table>" >> "$html"
|
|
149 echo "<tr><td><b>Singles:</b></td></tr>" >> "$html"
|
4
|
150 for patient in "${singles[@]}"
|
|
151 do
|
9
|
152 echo "<tr><td><a href='${patient}.html'>$patient</a></td></tr>" >> "$html"
|
4
|
153 done
|
9
|
154 echo "<tr><td><b>Pairs (Left & Right):</b></td></tr>" >> "$html"
|
4
|
155 for patient in "${pairs_Left_Right[@]}"
|
|
156 do
|
9
|
157 echo "<tr><td><a href='${patient}.html'>$patient</a></td></tr>" >> "$html"
|
4
|
158 done
|
9
|
159 echo "<tr><td><b>Pairs (BM & PB):</b></td></tr>" >> "$html"
|
4
|
160 for patient in "${pairs_BM_PB[@]}"
|
|
161 do
|
9
|
162 echo "<tr><td><a href='${patient}.html'>$patient</a></td></tr>" >> "$html"
|
4
|
163 done
|
9
|
164 echo "<tr><td><b>Pairs (Dx & R):</b></td></tr>" >> "$html"
|
4
|
165 for patient in "${pairs_R_Dx[@]}"
|
|
166 do
|
9
|
167 echo "<tr><td><a href='${patient}.html'>$patient</a></td></tr>" >> "$html"
|
4
|
168 done
|
9
|
169 echo "<tr><td><b>Triplets:</b></td></tr>" >> "$html"
|
4
|
170
|
7
|
171 while read sample1 sample2 sample3
|
|
172 do
|
|
173 sample1="$(echo ${sample1} | tr -d '\r' | tr -d '\n')"
|
|
174 sample2="$(echo ${sample2} | tr -d '\r' | tr -d '\n')"
|
|
175 sample3="$(echo ${sample3} | tr -d '\r' | tr -d '\n')"
|
|
176 patient="${sample1}_${sample2}_${sample3}"
|
|
177 echo "$patient"
|
|
178 html="${patient}.html"
|
|
179 echo "<tr><td><a href='${patient}.html'>$patient</a></td></tr>" >> "index.html"
|
|
180 echo "$header" > $html
|
|
181 oldLocus=""
|
|
182 tail -n+2 ${patient}_freq.txt | sed "s/>//" > tmp.txt
|
9
|
183 echo "<div class='tabber'>" >> "$html"
|
|
184 echo "<div class='tabbertab' title='Data frequency'>" >> "$html"
|
|
185 echo "<table><tr><td style='vertical-align:top;'>" >> "$html"
|
|
186 echo "<table border = 1 class='result_table summary_table' id='summary_table_${patient}_freq'>" >> "$html"
|
21
|
187 echo "<thead><th>Ig/TCR gene rearrangement type</th><th>Proximal gene segment</th><th>Distal gene segment</th><th>Cut off value</th><th>Number of sequences ${patient}_All</th><th>Number of sequences_$sample1</th><th>Number of sequences_$sample2</th><th>Number of sequences_$sample3</th><th>Number of sequences_${sample1}_${sample2}</th><th>Number of sequences_${sample1}_${sample3}</th><th>Number of sequences_${sample2}_${sample3}</th></thead>" >> "$html"
|
9
|
188 echo "<tbody>" >> "$html"
|
21
|
189 while read locus j_segment v_segment cut_off_value all one two three one_two one_three two_three
|
7
|
190 do
|
|
191 if [ "$locus" != "$oldLocus" ] ; then
|
9
|
192 echo "<tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr>" >> "$html"
|
|
193 echo "<tr><td><b>$locus</b></td>" >> "$html"
|
7
|
194 else
|
9
|
195 echo "<td></td>" >> "$html"
|
7
|
196 fi
|
9
|
197 echo "<td>$v_segment</td>" >> "$html"
|
|
198 echo "<td>$j_segment</td>" >> "$html"
|
|
199 echo "<td>>$cut_off_value</td>" >> "$html"
|
7
|
200 if [ "$all" != "0" ] ; then
|
9
|
201 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample1}_${sample2}_${sample3}_${locus}_${cut_off_value}.txt\", \"$patient\", \"freq\")'>$all</td>" >> "$html"
|
7
|
202 else
|
9
|
203 echo "<td>$all</td>" >> "$html"
|
7
|
204 fi
|
|
205 if [ "$one" != "0" ] && [ "$cut_off_value" != "0" ] ; then
|
9
|
206 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample1}_${locus}_${cut_off_value}.txt\", \"$patient\", \"freq\")'>$one</td>" >> "$html"
|
7
|
207 else
|
9
|
208 echo "<td>$one</td>" >> "$html"
|
21
|
209 fi
|
7
|
210 if [ "$two" != "0" ] && [ "$cut_off_value" != "0" ] ; then
|
9
|
211 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample2}_${locus}_${cut_off_value}.txt\", \"$patient\", \"freq\")'>$two</td>" >> "$html"
|
7
|
212 else
|
9
|
213 echo "<td>$two</td>" >> "$html"
|
7
|
214 fi
|
|
215 if [ "$three" != "0" ] && [ "$cut_off_value" != "0" ] ; then
|
9
|
216 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample3}_${locus}_${cut_off_value}.txt\", \"$patient\", \"freq\")'>$three</td>" >> "$html"
|
7
|
217 else
|
9
|
218 echo "<td>$three</td>" >> "$html"
|
7
|
219 fi
|
21
|
220
|
|
221 if [ "${one_two}" != "0" ] && [ "$cut_off_value" != "0" ] ; then
|
|
222 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample1}_${sample2}_${locus}_${cut_off_value}.txt\", \"$patient\", \"freq\")'>${one_two}</td>" >> "$html"
|
|
223 else
|
|
224 echo "<td>${one_two}</td>" >> "$html"
|
|
225 fi
|
|
226 if [ "${one_three}" != "0" ] && [ "$cut_off_value" != "0" ] ; then
|
|
227 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample1}_${sample3}_${locus}_${cut_off_value}.txt\", \"$patient\", \"freq\")'>${one_three}</td>" >> "$html"
|
|
228 else
|
|
229 echo "<td>${one_three}</td>" >> "$html"
|
|
230 fi
|
|
231 if [ "${two_three}" != "0" ] && [ "$cut_off_value" != "0" ] ; then
|
|
232 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample2}_${sample3}_${locus}_${cut_off_value}.txt\", \"$patient\", \"freq\")'>${two_three}</td>" >> "$html"
|
|
233 else
|
|
234 echo "<td>${two_three}</td>" >> "$html"
|
|
235 fi
|
|
236
|
9
|
237 echo "</tr>" >> "$html"
|
7
|
238 oldLocus="$locus"
|
|
239 done < tmp.txt
|
9
|
240 echo "</tbody></table>" >> "$html"
|
|
241 echo "</td><td style='vertical-align:top;'><div id='result_div_${patient}_freq'></div></td></tr></table>" >> "$html"
|
|
242 echo "</div>" >> "$html"
|
|
243 echo "<div class='tabbertab' title='Graphs frequency'>" >> "$html"
|
|
244 echo "<a href='${patient}_freq_total_all.png'><img src='${patient}_freq_total_all.png' width='1280' height='720' /></a><br />" >> "$html"
|
|
245 echo "<a href='${patient}_freq_indiv_all.png'><img src='${patient}_freq_indiv_all.png' width='1280' height='720' /></a><br /></div>" >> "$html"
|
7
|
246
|
|
247 tail -n+2 ${patient}_reads.txt | sed "s/>//" > tmp.txt
|
9
|
248 echo "<div class='tabbertab' title='Data reads'>" >> "$html"
|
|
249 echo "<table><tr><td style='vertical-align:top;'>" >> "$html"
|
|
250 echo "<table border = 1 class='result_table summary_table' id='summary_table_${patient}_reads'>" >> "$html"
|
21
|
251 echo "<thead><th>Ig/TCR gene rearrangement type</th><th>Proximal gene segment</th><th>Distal gene segment</th><th>Cut off value</th><th>Number of sequences ${patient}_All</th><th>Number of sequences_$sample1</th><th>Number of sequences_$sample2</th><th>Number of sequences_$sample3</th><th>Number of sequences_${sample1}_${sample2}</th><th>Number of sequences_${sample1}_${sample3}</th><th>Number of sequences_${sample2}_${sample3}</th></thead>" >> "$html"
|
9
|
252 echo "<tbody>" >> "$html"
|
21
|
253 while read locus j_segment v_segment cut_off_value all one two three one_two one_three two_three
|
7
|
254 do
|
|
255 if [ "$locus" != "$oldLocus" ] ; then
|
9
|
256 echo "<tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr>" >> "$html"
|
|
257 echo "<tr><td><b>$locus</b></td>" >> "$html"
|
7
|
258 else
|
9
|
259 echo "<td></td>" >> "$html"
|
7
|
260 fi
|
9
|
261 echo "<td>$v_segment</td>" >> "$html"
|
|
262 echo "<td>$j_segment</td>" >> "$html"
|
|
263 echo "<td>>$cut_off_value</td>" >> "$html"
|
7
|
264 if [ "$all" != "0" ] ; then
|
9
|
265 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample1}_${sample2}_${sample3}_${locus}_${cut_off_value}.txt\", \"$patient\", \"reads\")'>$all</td>" >> "$html"
|
7
|
266 else
|
9
|
267 echo "<td>$all</td>" >> "$html"
|
7
|
268 fi
|
|
269 if [ "$one" != "0" ] && [ "$cut_off_value" != "0" ] ; then
|
9
|
270 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample1}_${locus}_${cut_off_value}.txt\", \"$patient\", \"reads\")'>$one</td>" >> "$html"
|
7
|
271 else
|
9
|
272 echo "<td>$one</td>" >> "$html"
|
7
|
273 fi
|
|
274 if [ "$two" != "0" ] && [ "$cut_off_value" != "0" ] ; then
|
9
|
275 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample2}_${locus}_${cut_off_value}.txt\", \"$patient\", \"reads\")'>$two</td>" >> "$html"
|
7
|
276 else
|
9
|
277 echo "<td>$two</td>" >> "$html"
|
7
|
278 fi
|
|
279 if [ "$three" != "0" ] && [ "$cut_off_value" != "0" ] ; then
|
9
|
280 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample3}_${locus}_${cut_off_value}.txt\", \"$patient\", \"reads\")'>$three</td>" >> "$html"
|
7
|
281 else
|
9
|
282 echo "<td>$three</td>" >> "$html"
|
7
|
283 fi
|
21
|
284
|
|
285 if [ "${one_two}" != "0" ] && [ "$cut_off_value" != "0" ] ; then
|
|
286 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample1}_${sample2}_${locus}_${cut_off_value}.txt\", \"$patient\", \"reads\")'>${one_two}</td>" >> "$html"
|
|
287 else
|
|
288 echo "<td>${one_two}</td>" >> "$html"
|
|
289 fi
|
|
290 if [ "${one_three}" != "0" ] && [ "$cut_off_value" != "0" ] ; then
|
|
291 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample1}_${sample3}_${locus}_${cut_off_value}.txt\", \"$patient\", \"reads\")'>${one_three}</td>" >> "$html"
|
|
292 else
|
|
293 echo "<td>${one_three}</td>" >> "$html"
|
|
294 fi
|
|
295 if [ "${two_three}" != "0" ] && [ "$cut_off_value" != "0" ] ; then
|
|
296 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample2}_${sample3}_${locus}_${cut_off_value}.txt\", \"$patient\", \"reads\")'>${two_three}</td>" >> "$html"
|
|
297 else
|
|
298 echo "<td>${two_three}</td>" >> "$html"
|
|
299 fi
|
|
300
|
9
|
301 echo "</tr>" >> "$html"
|
7
|
302 oldLocus="$locus"
|
|
303 done < tmp.txt
|
9
|
304 echo "</tbody></table>" >> "$html"
|
|
305 echo "</td><td style='vertical-align:top;'><div id='result_div_${patient}_reads'></div></td></tr></table>" >> "$html"
|
|
306 echo "</div>" >> "$html"
|
|
307 echo "<div class='tabbertab' title='Graphs reads'>" >> "$html"
|
|
308 echo "<a href='${patient}_reads_total_all.png'><img src='${patient}_reads_total_all.png' width='1280' height='720' /></a><br />" >> "$html"
|
|
309 echo "<a href='${patient}_reads_indiv_all.png'><img src='${patient}_reads_indiv_all.png' width='1280' height='720' /></a><br /></div>" >> "$html"
|
|
310 echo "</div>" >> "$html"
|
|
311 echo "</div>" >> "$html"
|
|
312 echo "</html>" >> "$html"
|
7
|
313 done < triplets.txt
|
|
314 rm tmp.txt
|
|
315
|
|
316
|
|
317 html="index.html"
|
|
318
|
9
|
319 echo "</table>" >> "$html"
|
|
320 echo "</html>" >> "$html"
|
4
|
321
|