annotate wrapper.sh @ 4:89d80f086328 draft

Uploaded
author davidvanzessen
date Mon, 25 Sep 2017 08:20:12 -0400
parents 75853bceec00
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
1 #!/bin/bash
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
2
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
3 inputFile=$1
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
4 outputFile=$2
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
5 outputDir=$3
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
6 min_freq=$4
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
7 min_cells=$5
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
8 merge_on="$6"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
9
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
10 dir="$(cd "$(dirname "$0")" && pwd)"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
11 mkdir $outputDir
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
12
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
13
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
14 Rscript --verbose $dir/RScript.r $inputFile $outputDir $outputFile $min_freq $min_cells "${merge_on}" 2>&1
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
15 cp $dir/jquery-1.11.0.min.js $outputDir
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
16 cp $dir/script.js $outputDir
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
17 cp $dir/style.css $outputDir
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
18 cp $dir/tabber.js $outputDir
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
19 mv "$outputFile" "$outputDir/log.html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
20
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
21 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
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
22
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
23 cd $outputDir
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
24
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
25 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>"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
26 singles=()
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
27 pairs_BM_PB=()
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
28 pairs_Left_Right=()
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
29 pairs_R_Dx=()
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
30 while read patient sample1 sample2 type
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
31 do
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
32 echo "$patient"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
33 html="${patient}.html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
34 echo "$header" > "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
35 if [[ "$type" == *pair* ]] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
36 if [[ "$sample1" == *_BM* ]] || [[ "$sample1" == *_PB* ]] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
37 pairs_BM_PB+=( "$patient" )
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
38 elif [[ "$sample1" == *_Left* ]] || [[ "$sample1" == *_Right* ]] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
39 pairs_Left_Right+=( "$patient" )
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
40 else
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
41 pairs_R_Dx+=( "$patient" )
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
42 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
43 else
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
44 singles+=( "$patient" )
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
45 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
46 oldLocus=""
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
47 sample1="$(echo ${sample1} | tr -d '\r' | tr -d '\n')"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
48 sample2="$(echo ${sample2} | tr -d '\r' | tr -d '\n')"
1
75853bceec00 Uploaded
davidvanzessen
parents: 0
diff changeset
49 tail -n+2 "${patient}_freq.txt" | sed "s/>//" > tmp.txt
0
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
50 echo "<div class='tabber'>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
51 echo "<div class='tabbertab' title='Data frequency'>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
52 echo "<table><tr><td style='vertical-align:top;'>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
53 echo "<table border = 1 class='result_table summary_table' id='summary_table_${patient}_freq'>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
54 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"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
55 echo "<tbody>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
56 scatterplot_tab="<div class='tabbertab' title='Scatter Plots Frequency'><table border='0'><tr>"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
57 while read locus j_segment v_segment cut_off_value both one read_count1 two read_count2 sum percent locusreadsum1 locusreadsum2
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
58 do
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
59 if [ "$locus" != "$oldLocus" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
60 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"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
61 echo "<tr><td><b>$locus</b></td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
62 else
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
63 echo "<td></td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
64 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
65 echo "<td>$v_segment</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
66 echo "<td>$j_segment</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
67 echo "<td>>$cut_off_value</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
68 if [ "$both" != "0" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
69 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample1}_${sample2}_${locus}_${cut_off_value}.txt\", \"$patient\", \"freq\")'>$both</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
70 else
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
71 echo "<td>$both</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
72 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
73 if [ "$one" != "0" ] && [ "$cut_off_value" != "0" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
74 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample1}_${locus}_${cut_off_value}.txt\", \"$patient\", \"freq\")'>$one</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
75 else
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
76 echo "<td>$one</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
77 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
78 echo "<td>$read_count1</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
79 if [ "$two" != "0" ] && [ "$cut_off_value" != "0" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
80 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample2}_${locus}_${cut_off_value}.txt\", \"$patient\", \"freq\")'>$two</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
81 else
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
82 echo "<td>$two</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
83 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
84 echo "<td>$read_count2</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
85 echo "<td>$sum</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
86 echo "<td>${percent}&#37;</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
87 echo "</tr>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
88 oldLocus="$locus"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
89 if [ "${cut_off_value}" == "0" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
90 scatterplot_tab="${scatterplot_tab}<td><img src='${patient}_${sample1}_${sample2}_freq_${locus}_scatter.png' /></td>"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
91 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
92 done < tmp.txt
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
93 echo "</tbody></table>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
94 echo "</td><td style='vertical-align:top;'><div id='result_div_${patient}_freq'></div></td></tr></table>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
95 echo "</div>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
96 echo "<div class='tabbertab' title='Graphs frequency'>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
97 echo "<a href='${patient}_freq.png'><img src='${patient}_freq.png' width='1280' height='720' /></a><br />" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
98 echo "<a href='${patient}_freq_both.png'><img src='${patient}_freq_both.png' width='1280' height='720' /></a><br />" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
99 echo "<a href='${patient}_percent_freq.png'><img src='${patient}_percent_freq.png' width='1280' height='720' /></a></div>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
100 echo "${scatterplot_tab}</tr></table></div>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
101
1
75853bceec00 Uploaded
davidvanzessen
parents: 0
diff changeset
102 tail -n+2 "${patient}_reads.txt" | sed "s/>//" > tmp.txt
0
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
103 echo "<div class='tabbertab' title='Data reads'>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
104 echo "<table><tr><td style='vertical-align:top;'>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
105 echo "<table border = 1 class='result_table summary_table' id='summary_table_${patient}_reads'>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
106 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"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
107 echo "<tbody>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
108 scatterplot_tab="<div class='tabbertab' title='Scatter Plots Reads'><table border='0'><tr>"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
109 while read locus j_segment v_segment cut_off_value both one read_count1 two read_count2 sum percent locusreadsum1 locusreadsum2
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
110 do
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
111 if [ "$locus" != "$oldLocus" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
112 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"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
113 echo "<tr><td><b>$locus</b></td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
114 else
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
115 echo "<td></td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
116 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
117 echo "<td>$v_segment</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
118 echo "<td>$j_segment</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
119 echo "<td>>$cut_off_value</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
120 if [ "$both" != "0" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
121 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample1}_${sample2}_${locus}_${cut_off_value}.txt\", \"$patient\", \"reads\")'>$both</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
122 else
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
123 echo "<td>$both</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
124 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
125 if [ "$one" != "0" ] && [ "$cut_off_value" != "0" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
126 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample1}_${locus}_${cut_off_value}.txt\", \"$patient\", \"reads\")'>$one</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
127 else
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
128 echo "<td>$one</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
129 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
130 echo "<td>$read_count1</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
131 if [ "$two" != "0" ] && [ "$cut_off_value" != "0" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
132 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample2}_${locus}_${cut_off_value}.txt\", \"$patient\", \"reads\")'>$two</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
133 else
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
134 echo "<td>$two</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
135 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
136 echo "<td>$read_count2</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
137 echo "<td>$sum</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
138 echo "<td>${percent}&#37;</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
139 echo "</tr>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
140 oldLocus="$locus"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
141 if [ "${cut_off_value}" == "0" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
142 scatterplot_tab="${scatterplot_tab}<td><img src='${patient}_${sample1}_${sample2}_reads_${locus}_scatter.png' /></td>"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
143 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
144 done < tmp.txt
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
145 echo "</tbody></table>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
146 echo "</td><td style='vertical-align:top;'><div id='result_div_${patient}_reads'></div></td></tr></table>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
147 echo "</div>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
148 echo "<div class='tabbertab' title='Graphs reads'>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
149 echo "<a href='${patient}_reads.png'><img src='${patient}_reads.png' width='1280' height='720' /></a><br />" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
150 echo "<a href='${patient}_reads_both.png'><img src='${patient}_reads_both.png' width='1280' height='720' /></a><br />" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
151 echo "<a href='${patient}_percent_reads.png'><img src='${patient}_percent_reads.png' width='1280' height='720' /></a></div>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
152 echo "${scatterplot_tab}</tr></table></div>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
153 echo "</div>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
154 echo "</div>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
155 echo "</html>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
156 done < patients.txt
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
157
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
158 html="index.html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
159 echo "<html>" > $html
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
160 echo "<table>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
161 echo "<tr><td><b>Singles (<a href='singles_freq_scatterplot.png'>Frequency scatterplot</a>, <a href='singles_reads_scatterplot.png'>Reads scatterplot</a>):</b></td></tr>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
162 for patient in "${singles[@]}"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
163 do
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
164 echo "<tr><td><a href='${patient}.html'>$patient</a></td></tr>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
165 done
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
166 echo "<tr><td><b>Pairs (Left & Right):</b></td></tr>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
167 for patient in "${pairs_Left_Right[@]}"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
168 do
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
169 echo "<tr><td><a href='${patient}.html'>$patient</a></td></tr>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
170 done
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
171 echo "<tr><td><b>Pairs (BM & PB):</b></td></tr>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
172 for patient in "${pairs_BM_PB[@]}"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
173 do
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
174 echo "<tr><td><a href='${patient}.html'>$patient</a></td></tr>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
175 done
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
176 echo "<tr><td><b>Pairs (Dx & R):</b></td></tr>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
177 for patient in "${pairs_R_Dx[@]}"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
178 do
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
179 echo "<tr><td><a href='${patient}.html'>$patient</a></td></tr>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
180 done
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
181 echo "<tr><td><b>Triplets:</b></td></tr>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
182
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
183 while read sample1 sample2 sample3
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
184 do
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
185 sample1="$(echo ${sample1} | tr -d '\r' | tr -d '\n')"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
186 sample2="$(echo ${sample2} | tr -d '\r' | tr -d '\n')"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
187 sample3="$(echo ${sample3} | tr -d '\r' | tr -d '\n')"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
188 patient="${sample1}_${sample2}_${sample3}"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
189 echo "$patient"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
190 html="${patient}.html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
191 echo "<tr><td><a href='${patient}.html'>$patient</a></td></tr>" >> "index.html"
1
75853bceec00 Uploaded
davidvanzessen
parents: 0
diff changeset
192 echo "$header" > "$html"
0
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
193 oldLocus=""
1
75853bceec00 Uploaded
davidvanzessen
parents: 0
diff changeset
194 tail -n+2 "${patient}_freq.txt" | sed "s/>//" > tmp.txt
0
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
195 echo "<div class='tabber'>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
196 echo "<div class='tabbertab' title='Data frequency'>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
197 echo "<table><tr><td style='vertical-align:top;'>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
198 echo "<table border = 1 class='result_table summary_table' id='summary_table_${patient}_freq'>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
199 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"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
200 echo "<tbody>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
201 scatterplot_tab="<div class='tabbertab' title='Scatter Plots Frequency'><table border='0'><tr>"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
202 while read locus j_segment v_segment cut_off_value all one two three one_two one_three two_three
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
203 do
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
204 if [ "$locus" != "$oldLocus" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
205 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"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
206 echo "<tr><td><b>$locus</b></td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
207 else
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
208 echo "<td></td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
209 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
210 echo "<td>$v_segment</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
211 echo "<td>$j_segment</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
212 echo "<td>>$cut_off_value</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
213 if [ "$all" != "0" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
214 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample1}_${sample2}_${sample3}_${locus}_${cut_off_value}.txt\", \"$patient\", \"freq\")'>$all</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
215 else
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
216 echo "<td>$all</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
217 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
218 if [ "$one" != "0" ] && [ "$cut_off_value" != "0" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
219 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample1}_${locus}_${cut_off_value}.txt\", \"$patient\", \"freq\")'>$one</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
220 else
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
221 echo "<td>$one</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
222 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
223 if [ "$two" != "0" ] && [ "$cut_off_value" != "0" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
224 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample2}_${locus}_${cut_off_value}.txt\", \"$patient\", \"freq\")'>$two</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
225 else
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
226 echo "<td>$two</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
227 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
228 if [ "$three" != "0" ] && [ "$cut_off_value" != "0" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
229 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample3}_${locus}_${cut_off_value}.txt\", \"$patient\", \"freq\")'>$three</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
230 else
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
231 echo "<td>$three</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
232 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
233
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
234 if [ "${one_two}" != "0" ] && [ "$cut_off_value" != "0" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
235 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample1}_${sample2}_${locus}_${cut_off_value}freq.txt\", \"$patient\", \"freq\")'>${one_two}</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
236 else
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
237 echo "<td>${one_two}</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
238 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
239 if [ "${one_three}" != "0" ] && [ "$cut_off_value" != "0" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
240 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample1}_${sample3}_${locus}_${cut_off_value}freq.txt\", \"$patient\", \"freq\")'>${one_three}</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
241 else
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
242 echo "<td>${one_three}</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
243 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
244 if [ "${two_three}" != "0" ] && [ "$cut_off_value" != "0" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
245 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample2}_${sample3}_${locus}_${cut_off_value}freq.txt\", \"$patient\", \"freq\")'>${two_three}</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
246 else
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
247 echo "<td>${two_three}</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
248 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
249
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
250 echo "</tr>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
251 oldLocus="$locus"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
252 if [ "${cut_off_value}" == "0" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
253 scatterplot_tab="${scatterplot_tab}<td><img src='${sample1}_${sample2}_${sample3}_freq_${locus}_scatter.png' /></td>"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
254 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
255 done < tmp.txt
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
256 echo "</tbody></table>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
257 echo "</td><td style='vertical-align:top;'><div id='result_div_${patient}_freq'></div></td></tr></table>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
258 echo "</div>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
259 echo "<div class='tabbertab' title='Graphs frequency'>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
260 echo "<a href='${patient}_freq_total_all.png'><img src='${patient}_freq_total_all.png' width='1280' height='720' /></a><br />" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
261 echo "<a href='${patient}_freq_indiv_all.png'><img src='${patient}_freq_indiv_all.png' width='1280' height='720' /></a><br /></div>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
262 echo "${scatterplot_tab}</tr></table></div>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
263
1
75853bceec00 Uploaded
davidvanzessen
parents: 0
diff changeset
264 tail -n+2 "${patient}_reads.txt" | sed "s/>//" > tmp.txt
0
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
265 echo "<div class='tabbertab' title='Data reads'>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
266 echo "<table><tr><td style='vertical-align:top;'>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
267 echo "<table border = 1 class='result_table summary_table' id='summary_table_${patient}_reads'>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
268 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"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
269 echo "<tbody>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
270 scatterplot_tab="<div class='tabbertab' title='Scatter Plots Reads'><table border='0'><tr>"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
271 while read locus j_segment v_segment cut_off_value all one two three one_two one_three two_three
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
272 do
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
273 if [ "$locus" != "$oldLocus" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
274 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"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
275 echo "<tr><td><b>$locus</b></td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
276 else
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
277 echo "<td></td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
278 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
279 echo "<td>$v_segment</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
280 echo "<td>$j_segment</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
281 echo "<td>>$cut_off_value</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
282 if [ "$all" != "0" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
283 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample1}_${sample2}_${sample3}_${locus}_${cut_off_value}.txt\", \"$patient\", \"reads\")'>$all</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
284 else
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
285 echo "<td>$all</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
286 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
287 if [ "$one" != "0" ] && [ "$cut_off_value" != "0" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
288 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample1}_${locus}_${cut_off_value}.txt\", \"$patient\", \"reads\")'>$one</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
289 else
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
290 echo "<td>$one</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
291 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
292 if [ "$two" != "0" ] && [ "$cut_off_value" != "0" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
293 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample2}_${locus}_${cut_off_value}.txt\", \"$patient\", \"reads\")'>$two</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
294 else
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
295 echo "<td>$two</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
296 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
297 if [ "$three" != "0" ] && [ "$cut_off_value" != "0" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
298 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample3}_${locus}_${cut_off_value}.txt\", \"$patient\", \"reads\")'>$three</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
299 else
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
300 echo "<td>$three</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
301 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
302
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
303 if [ "${one_two}" != "0" ] && [ "$cut_off_value" != "0" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
304 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample1}_${sample2}_${locus}_${cut_off_value}reads.txt\", \"$patient\", \"reads\")'>${one_two}</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
305 else
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
306 echo "<td>${one_two}</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
307 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
308 if [ "${one_three}" != "0" ] && [ "$cut_off_value" != "0" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
309 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample1}_${sample3}_${locus}_${cut_off_value}reads.txt\", \"$patient\", \"reads\")'>${one_three}</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
310 else
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
311 echo "<td>${one_three}</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
312 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
313 if [ "${two_three}" != "0" ] && [ "$cut_off_value" != "0" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
314 echo "<td data-patient='${patient}' style='cursor:pointer' onclick='javascript:loadfile(\"${sample2}_${sample3}_${locus}_${cut_off_value}reads.txt\", \"$patient\", \"reads\")'>${two_three}</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
315 else
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
316 echo "<td>${two_three}</td>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
317 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
318
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
319 echo "</tr>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
320 oldLocus="$locus"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
321 if [ "${cut_off_value}" == "0" ] ; then
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
322 scatterplot_tab="${scatterplot_tab}<td><img src='${sample1}_${sample2}_${sample3}_reads_${locus}_scatter.png' /></td>"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
323 fi
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
324 done < tmp.txt
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
325 echo "</tbody></table>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
326 echo "</td><td style='vertical-align:top;'><div id='result_div_${patient}_reads'></div></td></tr></table>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
327 echo "</div>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
328 echo "<div class='tabbertab' title='Graphs reads'>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
329 echo "<a href='${patient}_reads_total_all.png'><img src='${patient}_reads_total_all.png' width='1280' height='720' /></a><br />" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
330 echo "<a href='${patient}_reads_indiv_all.png'><img src='${patient}_reads_indiv_all.png' width='1280' height='720' /></a><br /></div>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
331 echo "${scatterplot_tab}</tr></table></div>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
332 echo "</div>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
333 echo "</div>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
334 echo "</html>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
335 done < triplets.txt
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
336 rm tmp.txt
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
337
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
338
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
339 html="index.html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
340
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
341 echo "</table>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
342 echo "<a href='log.html'>log</a><br />" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
343 echo "<a href='single_matches.html'>single_matches</a><br />" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
344 echo "<a href='multiple_matches.html'>multiple_matches</a><br />" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
345 echo "</html>" >> "$html"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
346
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
347 cp "index.html" "$outputFile"
ed6885c85660 Uploaded
davidvanzessen
parents:
diff changeset
348