annotate report_clonality/r_wrapper.sh @ 17:da95be204ebc draft

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