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