5
|
1 #!/bin/bash
|
|
2
|
|
3 inputFile=$1
|
|
4 outputDir=$3
|
|
5 outputFile=$3/index.html #$2
|
|
6 clonalType=$4
|
|
7 species=$5
|
|
8 locus=$6
|
|
9 filterproductive=$7
|
|
10 clonality_method=$8
|
|
11
|
|
12 dir="$(cd "$(dirname "$0")" && pwd)"
|
|
13 useD="false"
|
|
14 if grep -q "$species.*${locus}D" "$dir/genes.txt" ; then
|
|
15 echo "species D region in reference db"
|
|
16 useD="true"
|
|
17 fi
|
|
18 echo "$species"
|
|
19 if [[ "$species" == *"custom"* ]] ; then
|
|
20 loci=(${locus//;/ })
|
|
21 useD="true"
|
|
22 echo "${loci[@]}"
|
|
23 if [[ "${#loci[@]}" -eq "2" ]] ; then
|
|
24 useD="false"
|
|
25 fi
|
|
26 fi
|
|
27 mkdir $3
|
|
28 cp $dir/genes.txt $outputDir
|
|
29 Rscript --verbose $dir/RScript.r $inputFile $outputDir $outputDir $clonalType "$species" "$locus" $filterproductive ${clonality_method} 2>&1
|
|
30 cp $dir/tabber.js $outputDir
|
|
31 cp $dir/style.css $outputDir
|
|
32 cp $dir/script.js $outputDir
|
|
33 cp $dir/jquery-1.11.0.min.js $outputDir
|
|
34 cp $dir/pure-min.css $outputDir
|
|
35 samples=`cat $outputDir/samples.txt`
|
|
36
|
|
37 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)<br />" > $2
|
|
38 echo "<table border = 1>" >> $2
|
|
39 echo "<thead><tr><th>Sample/Replicate</th><th>All</th><th>Productive</th><th>Unique Productive</th><th>Unproductive</th><th>Unique Unproductive</th></tr></thead>" >> $2
|
|
40 while IFS=, read sample all productive perc_prod productive_unique perc_prod_un unproductive perc_unprod unproductive_unique perc_unprod_un
|
|
41 do
|
|
42 echo "<tr><td>$sample</td>" >> $2
|
|
43 echo "<td>$all</td>" >> $2
|
|
44 echo "<td>$productive (${perc_prod}%)</td>" >> $2
|
|
45 echo "<td>$productive_unique (${perc_prod_un}%)</td>" >> $2
|
|
46 echo "<td>$unproductive (${perc_unprod}%)</td>" >> $2
|
|
47 echo "<td>$unproductive_unique (${perc_unprod_un}%)</td></tr>" >> $2
|
|
48 done < $outputDir/productive_counting.txt
|
|
49 echo "</table border></center></html>" >> $2
|
|
50
|
|
51 echo "<html><head><title>Report on:" >> $outputFile
|
|
52
|
|
53 mkdir $outputDir/circos
|
|
54 cp $dir/circos/* $outputDir/circos/
|
|
55 #CIRCOSTOOLS="/data/galaxy/galaxy-dist/toolsheddependencies/circos/0.64/saskia-hiltemann/cg_circos_plots/bbfdd52d64fd/circos-tools-0.21/tools"
|
|
56 #CIRCOSDIR="/data/galaxy/galaxy-dist/toolsheddependencies/circos/0.64/saskia-hiltemann/cg_circos_plots/bbfdd52d64fd/bin/"
|
|
57
|
|
58 #CIRCOSTOOLS="/home/galaxy/circos/circos-tools-0.22/tools"
|
|
59 #CIRCOSDIR="/home/galaxy/Anaconda3/bin"
|
|
60
|
|
61 USECIRCOS="no"
|
|
62 if [ -d "$CIRCOSDIR" ]; then
|
|
63 USECIRCOS="yes"
|
|
64 else
|
|
65 if [ -d "/home/galaxy/Anaconda3/bin" ]; then #hopefully temporary fix
|
|
66 USECIRCOS="yes"
|
|
67 CIRCOSTOOLS="/data/galaxy/galaxy-dist/toolsheddependencies/circos/0.64/saskia-hiltemann/cg_circos_plots/bbfdd52d64fd/circos-tools-0.21/tools"
|
|
68 CIRCOSDIR="/data/galaxy/galaxy-dist/toolsheddependencies/circos/0.64/saskia-hiltemann/cg_circos_plots/bbfdd52d64fd/bin/"
|
|
69 fi
|
|
70 fi
|
|
71 echo "Using Circos: $USECIRCOS"
|
|
72 sed -i "s%DATA_DIR%$outputDir/circos%" $outputDir/circos/circos.conf
|
|
73 for sample in $samples; do #output the samples to a file and create the circos plots with the R script output
|
|
74 echo " $sample" >> $outputFile
|
|
75
|
|
76 if [[ "$USECIRCOS" != "yes" ]]; then
|
|
77 continue
|
|
78 fi
|
|
79
|
|
80 circos_file="$outputDir/${sample}_VJ_circos.txt"
|
|
81 echo -e -n "labels$(cat ${circos_file})" > ${circos_file}
|
|
82 cat "${circos_file}" | $CIRCOSTOOLS/tableviewer/bin/parse-table -configfile $dir/circos/parse-table.conf 2>&1 | $CIRCOSTOOLS/tableviewer/bin/make-conf -dir $outputDir/circos/
|
|
83 $CIRCOSDIR/circos -conf $outputDir/circos/circos.conf 2>&1
|
|
84 mv $outputDir/circos/circos.png $outputDir/circosVJ_${sample}.png
|
|
85
|
|
86
|
|
87 if [[ "$useD" == "true" ]] ; then
|
|
88 circos_file="$outputDir/${sample}_VD_circos.txt"
|
|
89 echo -e -n "labels$(cat ${circos_file})" > ${circos_file}
|
|
90 cat "${circos_file}" | $CIRCOSTOOLS/tableviewer/bin/parse-table -configfile $dir/circos/parse-table.conf 2>&1 | $CIRCOSTOOLS/tableviewer/bin/make-conf -dir $outputDir/circos/
|
|
91 $CIRCOSDIR/circos -conf $outputDir/circos/circos.conf 2>&1
|
|
92 mv $outputDir/circos/circos.png $outputDir/circosVD_${sample}.png
|
|
93
|
|
94 circos_file="$outputDir/${sample}_DJ_circos.txt"
|
|
95 echo -e -n "labels$(cat ${circos_file})" > ${circos_file}
|
|
96 cat "${circos_file}" | $CIRCOSTOOLS/tableviewer/bin/parse-table -configfile $dir/circos/parse-table.conf 2>&1 | $CIRCOSTOOLS/tableviewer/bin/make-conf -dir $outputDir/circos/
|
|
97 $CIRCOSDIR/circos -conf $outputDir/circos/circos.conf 2>&1
|
|
98 mv $outputDir/circos/circos.png $outputDir/circosDJ_${sample}.png
|
|
99
|
|
100 fi
|
|
101 done
|
|
102 echo "</title><script type='text/javascript' src='jquery-1.11.0.min.js'></script>" >> $outputFile
|
|
103 echo "<link rel='stylesheet' type='text/css' href='pure-min.css'>" >> $outputFile
|
|
104 echo "<script type='text/javascript' src='tabber.js'></script>" >> $outputFile
|
|
105 echo "<script type='text/javascript' src='script.js'></script>" >> $outputFile
|
|
106 echo "<link rel='stylesheet' type='text/css' href='style.css'></head>" >> $outputFile
|
|
107 echo "<div class='tabber'><div class='tabbertab' title='Gene frequencies'>" >> $outputFile
|
|
108
|
8
|
109
|
5
|
110 echo "<img src='VFPlot.png'/>" >> $outputFile
|
|
111 if [[ "$useD" == "true" ]] ; then
|
|
112 echo "<img src='DFPlot.png'/>" >> $outputFile
|
|
113 fi
|
|
114 echo "<img src='VPlot.png'/>" >> $outputFile
|
|
115 if [[ "$useD" == "true" ]] ; then
|
|
116 echo "<img src='DPlot.png'/>" >> $outputFile
|
|
117 fi
|
|
118 echo "<img src='JPlot.png'/>" >> $outputFile
|
8
|
119 echo "</div>" >> $outputFile
|
|
120
|
|
121 echo "<div class='tabbertab' title='CDR3 Characteristics'>" >> $outputFile
|
|
122 echo "<img src='CDR3LengthPlot.png'/><br />" >> $outputFile
|
5
|
123 echo "<img src='AAComposition.png'/>" >> $outputFile
|
|
124 echo "<img src='DReadingFrame.png'/>" >> $outputFile
|
8
|
125
|
|
126 echo "<table class='pure-table pure-table-striped'>" >> $outputFile
|
|
127 echo "<thead><tr><th>Sample</th><th>Median CDR3 Length</th></tr></thead>" >> $outputFile
|
|
128 while IFS=, read Sample median
|
|
129 do
|
|
130 echo "<tr><td>$Sample</td><td>$median</td></tr>" >> $outputFile
|
|
131 done < $outputDir/AAMedianBySample.csv
|
|
132 echo "</table>" >> $outputFile
|
|
133
|
5
|
134 echo "</div>" >> $outputFile
|
|
135
|
|
136 #Heatmaps
|
|
137
|
|
138 count=1
|
|
139 echo "<div class='tabbertab' title='Heatmaps'><div class='tabber'>" >> $outputFile
|
|
140 for sample in $samples; do
|
|
141 echo "<div class='tabbertab' title='$sample'><table border='1'><tr>" >> $outputFile
|
|
142 if [[ "$useD" == "true" ]] ; then
|
|
143 echo "<td><img src='HeatmapVD_$sample.png'/></td>" >> $outputFile
|
|
144 fi
|
|
145 echo "<td><img src='HeatmapVJ_$sample.png'/></td>" >> $outputFile
|
|
146 if [[ "$useD" == "true" ]] ; then
|
|
147 echo "<td><img src='HeatmapDJ_$sample.png'/></td>" >> $outputFile
|
|
148 fi
|
|
149 echo "</tr></table></div>" >> $outputFile
|
|
150 count=$((count+1))
|
|
151 done
|
|
152 echo "</div></div>" >> $outputFile
|
|
153
|
|
154 #circos
|
|
155
|
|
156 if [[ "$USECIRCOS" == "yes" ]]; then
|
|
157
|
|
158 echo "<div class='tabbertab' title='Circos'><div class='tabber'>" >> $outputFile
|
|
159 for sample in $samples; do
|
|
160 echo "<div class='tabbertab' title='$sample'><table border='1'><center>" >> $outputFile
|
|
161 if [[ "$useD" == "true" ]] ; then
|
|
162 echo "<tr><td>V-D</td><td><img src='circosVD_${sample}.png' width='700' height='700'/></td></tr>" >> $outputFile
|
|
163 fi
|
|
164 echo "<tr><td>V-J</td><td><img src='circosVJ_${sample}.png' width='700' height='700'/></td></tr>" >> $outputFile
|
|
165 if [[ "$useD" == "true" ]] ; then
|
|
166 echo "<tr><td>D-J</td><td><img src='circosDJ_${sample}.png' width='700' height='700'/></td></tr>" >> $outputFile
|
|
167 fi
|
|
168 echo "<center></table></div>" >> $outputFile
|
|
169 count=$((count+1))
|
|
170 done
|
|
171 echo "</div></div>" >> $outputFile
|
|
172 fi
|
|
173 #echo "<div class='tabbertab' title='Interactive'><svg class='chart'></svg><script src='http://d3js.org/d3.v3.min.js'></script></div>" >> $outputFile
|
|
174
|
|
175 hasReplicateColumn="$(if head -n 1 $inputFile | grep -q 'Replicate'; then echo 'Yes'; else echo 'No'; fi)"
|
|
176 echo "$hasReplicateColumn"
|
|
177 #if its a 'new' merged file with replicate info
|
|
178 if [[ "$hasReplicateColumn" == "Yes" ]] ; then
|
|
179 echo "<div class='tabbertab' title='Clonality'><div class='tabber'>" >> $outputFile
|
|
180 for sample in $samples; do
|
|
181 echo "${clonality_method}"
|
|
182 if [[ "${clonality_method}" == "old" ]] ; then
|
|
183 echo "in old"
|
|
184 clonalityScore="$(cat $outputDir/ClonalityScore_$sample.csv)"
|
|
185 echo "<div class='tabbertab' title='$sample'><table class='pure-table pure-table-striped'>" >> $outputFile
|
|
186 echo "<thead><tr><th colspan='4'>Clonality Score: $clonalityScore</th></tr></thead>" >> $outputFile
|
|
187
|
|
188 #replicate,reads,squared
|
|
189 echo "<tr><td>Replicate ID</td><td>Number of Reads</td><td>Reads Squared</td><td></td></tr>" >> $outputFile
|
|
190 while IFS=, read replicate reads squared
|
|
191 do
|
|
192 echo "<tr><td>$replicate</td><td>$reads</td><td>$squared</td><td></td></tr>" >> $outputFile
|
|
193 done < $outputDir/ReplicateReads_$sample.csv
|
|
194
|
|
195 #sum of reads and reads squared
|
|
196 while IFS=, read readsSum squaredSum
|
|
197 do
|
|
198 echo "<tr><td>Sum</td><td>$readsSum</td><td>$squaredSum</td></tr>" >> $outputFile
|
|
199 done < $outputDir/ReplicateSumReads_$sample.csv
|
|
200
|
|
201 #overview
|
|
202 echo "<tr><td>Coincidence Type</td><td>Raw Coincidence Freq</td><td>Coincidence Weight</td><td>Coincidences, Weighted</td></tr>" >> $outputFile
|
|
203 while IFS=, read type count weight weightedCount
|
|
204 do
|
|
205 if [[ "$type" -eq "1" ]]; then
|
|
206 echo "<tr><td>$type</td><td>$count</td><td>$weight</td><td>$weightedCount</td></tr>" >> $outputFile
|
|
207 else
|
|
208 echo "<tr><td><a href='coincidences_${sample}_${type}.txt'>$type</a></td><td>$count</td><td>$weight</td><td>$weightedCount</td></tr>" >> $outputFile
|
|
209 fi
|
|
210
|
|
211 done < $outputDir/ClonalityOverView_$sample.csv
|
|
212 echo "</table></div>" >> $outputFile
|
|
213 else
|
|
214 echo "in new"
|
|
215 clonalityScore="$(cat $outputDir/lymphclon_clonality_${sample}.csv)"
|
|
216 echo "<div class='tabbertab' title='$sample'>" >> $outputFile
|
|
217 echo "Lymphclon clonality score: <br />$clonalityScore<br /><br />" >> $outputFile
|
|
218 echo "<table border = 1>" >> $outputFile
|
|
219 while IFS=, read type count
|
|
220 do
|
|
221 echo "<tr><td>$type</td><td>$count</td></tr>" >> $outputFile
|
|
222 done < $outputDir/lymphclon_coincidences_$sample.csv
|
|
223 echo "</table></div>" >> $outputFile
|
|
224 fi
|
|
225 done
|
|
226 echo "</div></div>" >> $outputFile
|
|
227 fi
|
|
228
|
|
229 #hasJunctionData="$(if head -n 1 $inputFile | grep -qE '3V.REGION.trimmed.nt.nb'; then echo 'Yes'; else echo 'No'; fi)"
|
|
230
|
|
231 #if [[ "$hasJunctionData" == "Yes" ]] ; then
|
|
232 if [ -a "$outputDir/junctionAnalysisProd_mean.csv" ] ; then
|
|
233 echo "<div class='tabbertab' title='Junction Analysis'>" >> $outputFile
|
|
234 echo "<table class='pure-table pure-table-striped' id='junction_table'> <caption>Productive mean</caption><thead><tr><th>Sample</th><th>count</th><th>V.DEL</th><th>P1</th><th>N1</th><th>P2</th><th>DEL.D</th><th>D.DEL</th><th>P3</th><th>N2</th><th>P4</th><th>DEL.J</th><th>Total.Del</th><th>Total.N</th><th>Total.P</th><th>Median.CDR3</th><thead></tr><tbody>" >> $outputFile
|
|
235 while IFS=, read Sample unique VDEL P1 N1 P2 DELD DDEL P3 N2 P4 DELJ TotalDel TotalN TotalP median
|
|
236 do
|
|
237 echo "<tr><td>$Sample</td><td>$unique</td><td>$VDEL</td><td>$P1</td><td>$N1</td><td>$P2</td><td>$DELD</td><td>$DDEL</td><td>$P3</td><td>$N2</td><td>$P4</td><td>$DELJ</td><td>$TotalDel</td><td>$TotalN</td><td>$TotalP</td><td>$median</td></tr>" >> $outputFile
|
|
238 done < $outputDir/junctionAnalysisProd_mean.csv
|
|
239 echo "</tbody></table>" >> $outputFile
|
|
240
|
|
241 echo "<table class='pure-table pure-table-striped' id='junction_table'> <caption>Unproductive mean</caption><thead><tr><th>Sample</th><th>count</th><th>V.DEL</th><th>P1</th><th>N1</th><th>P2</th><th>DEL.D</th><th>D.DEL</th><th>P3</th><th>N2</th><th>P4</th><th>DEL.J</th><th>Total.Del</th><th>Total.N</th><th>Total.P</th><th>Median.CDR3</th><thead></tr><tbody>" >> $outputFile
|
|
242 while IFS=, read Sample unique VDEL P1 N1 P2 DELD DDEL P3 N2 P4 DELJ TotalDel TotalN TotalP median
|
|
243 do
|
|
244 echo "<tr><td>$Sample</td><td>$unique</td><td>$VDEL</td><td>$P1</td><td>$N1</td><td>$P2</td><td>$DELD</td><td>$DDEL</td><td>$P3</td><td>$N2</td><td>$P4</td><td>$DELJ</td><td>$TotalDel</td><td>$TotalN</td><td>$TotalP</td><td>$median</td></tr>" >> $outputFile
|
|
245 done < $outputDir/junctionAnalysisUnProd_mean.csv
|
|
246 echo "</tbody></table>" >> $outputFile
|
|
247
|
|
248 echo "<table class='pure-table pure-table-striped' id='junction_table'> <caption>Productive median</caption><thead><tr><th>Sample</th><th>count</th><th>V.DEL</th><th>P1</th><th>N1</th><th>P2</th><th>DEL.D</th><th>D.DEL</th><th>P3</th><th>N2</th><th>P4</th><th>DEL.J</th><th>Total.Del</th><th>Total.N</th><th>Total.P</th><th>Median.CDR3</th><thead></tr><tbody>" >> $outputFile
|
|
249 while IFS=, read Sample unique VDEL P1 N1 P2 DELD DDEL P3 N2 P4 DELJ TotalDel TotalN TotalP median
|
|
250 do
|
|
251 echo "<tr><td>$Sample</td><td>$unique</td><td>$VDEL</td><td>$P1</td><td>$N1</td><td>$P2</td><td>$DELD</td><td>$DDEL</td><td>$P3</td><td>$N2</td><td>$P4</td><td>$DELJ</td><td>$TotalDel</td><td>$TotalN</td><td>$TotalP</td><td>$median</td></tr>" >> $outputFile
|
|
252 done < $outputDir/junctionAnalysisProd_median.csv
|
|
253 echo "</tbody></table>" >> $outputFile
|
|
254
|
|
255 echo "<table class='pure-table pure-table-striped' id='junction_table'> <caption>Unproductive median</caption><thead><tr><th>Sample</th><th>count</th><th>V.DEL</th><th>P1</th><th>N1</th><th>P2</th><th>DEL.D</th><th>D.DEL</th><th>P3</th><th>N2</th><th>P4</th><th>DEL.J</th><th>Total.Del</th><th>Total.N</th><th>Total.P</th><th>Median.CDR3</th><thead></tr><tbody>" >> $outputFile
|
|
256 while IFS=, read Sample unique VDEL P1 N1 P2 DELD DDEL P3 N2 P4 DELJ TotalDel TotalN TotalP median
|
|
257 do
|
|
258 echo "<tr><td>$Sample</td><td>$unique</td><td>$VDEL</td><td>$P1</td><td>$N1</td><td>$P2</td><td>$DELD</td><td>$DDEL</td><td>$P3</td><td>$N2</td><td>$P4</td><td>$DELJ</td><td>$TotalDel</td><td>$TotalN</td><td>$TotalP</td><td>$median</td></tr>" >> $outputFile
|
|
259 done < $outputDir/junctionAnalysisUnProd_median.csv
|
|
260 echo "</tbody></table>" >> $outputFile
|
|
261
|
|
262 echo "</div>" >> $outputFile
|
|
263 fi
|
|
264
|
|
265 echo "<div class='tabbertab' title='Comparison'><table class='pure-table pure-table-striped'><thead><tr><th>ID</th><th>Include</th></tr></thead>" >> $outputFile
|
|
266 for sample in $samples; do
|
|
267 echo "<tr><td>$sample</td><td><input type='checkbox' onchange=\"javascript:compareAdd('$sample')\" id='compare_checkbox_$sample'/></td></tr>" >> $outputFile
|
|
268 done
|
|
269 echo "</table><div name='comparisonarea'>" >> $outputFile
|
|
270 echo "<table><tr id='comparison_table_vd'></tr></table>" >> $outputFile
|
|
271 echo "<table><tr id='comparison_table_vj'></tr></table>" >> $outputFile
|
|
272 echo "<table><tr id='comparison_table_dj'></tr></table>" >> $outputFile
|
|
273 echo "</div></div>" >> $outputFile
|
|
274
|
|
275 echo "<div class='tabbertab' title='Downloads'>" >> $outputFile
|
|
276 echo "<table class='pure-table pure-table-striped'>" >> $outputFile
|
|
277 echo "<thead><tr><th>Description</th><th>Link</th></tr></thead>" >> $outputFile
|
|
278 echo "<tr><td>The dataset used to generate the frequency graphs and the heatmaps (Unique based on clonaltype, $clonalType)</td><td><a href='allUnique.csv'>Download</a></td></tr>" >> $outputFile
|
|
279 echo "<tr><td>The dataset used to calculate clonality score (Unique based on clonaltype, $clonalType)</td><td><a href='clonalityComplete.csv'>Download</a></td></tr>" >> $outputFile
|
|
280
|
|
281 echo "<tr><td>The dataset used to generate the CDR3 length frequency graph</td><td><a href='CDR3LengthPlot.csv'>Download</a></td></tr>" >> $outputFile
|
|
282
|
|
283 echo "<tr><td>The dataset used to generate the V gene family frequency graph</td><td><a href='VFFrequency.csv'>Download</a></td></tr>" >> $outputFile
|
|
284 if [[ "$useD" == "true" ]] ; then
|
|
285 echo "<tr><td>The dataset used to generate the D gene family frequency graph</td><td><a href='DFFrequency.csv'>Download</a></td></tr>" >> $outputFile
|
|
286 fi
|
|
287
|
|
288 echo "<tr><td>The dataset used to generate the V gene frequency graph</td><td><a href='VFrequency.csv'>Download</a></td></tr>" >> $outputFile
|
|
289 if [[ "$useD" == "true" ]] ; then
|
|
290 echo "<tr><td>The dataset used to generate the D gene frequency graph</td><td><a href='DFrequency.csv'>Download</a></td></tr>" >> $outputFile
|
|
291 fi
|
|
292 echo "<tr><td>The dataset used to generate the J gene frequency graph</td><td><a href='JFrequency.csv'>Download</a></td></tr>" >> $outputFile
|
|
293 echo "<tr><td>The dataset used to generate the AA composition graph</td><td><a href='AAComposition.csv'>Download</a></td></tr>" >> $outputFile
|
|
294
|
|
295 for sample in $samples; do
|
|
296 if [[ "$useD" == "true" ]] ; then
|
|
297 echo "<tr><td>The data used to generate the VD heatmap for $sample.</td><td><a href='HeatmapVD_$sample.csv'>Download</a></td></tr>" >> $outputFile
|
|
298 fi
|
|
299 echo "<tr><td>The data used to generate the VJ heatmap for $sample.</td><td><a href='HeatmapVJ_$sample.csv'>Download</a></td></tr>" >> $outputFile
|
|
300 if [[ "$useD" == "true" ]] ; then
|
|
301 echo "<tr><td>The data used to generate the DJ heatmap for $sample.</td><td><a href='HeatmapDJ_$sample.csv'>Download</a></td></tr>" >> $outputFile
|
|
302 fi
|
|
303 done
|
|
304
|
|
305 echo "<tr><td>A frequency count of V Gene + J Gene + CDR3</td><td><a href='VJCDR3_count.txt'>Download</a></td></tr>" >> $outputFile
|
|
306
|
|
307 echo "</table>" >> $outputFile
|
|
308 echo "</div></html>" >> $outputFile
|