Mercurial > repos > davidvanzessen > argalaxy_tools
comparison report_clonality/r_wrapper.sh @ 16:21ca9391a3b7 draft
Uploaded
author | davidvanzessen |
---|---|
date | Tue, 20 Dec 2016 09:06:51 -0500 |
parents | 5f5d29c5e711 |
children | da95be204ebc |
comparison
equal
deleted
inserted
replaced
15:02efa5764a0a | 16:21ca9391a3b7 |
---|---|
191 clonalityScore="$(cat $outputDir/ClonalityScore_$sample.csv)" | 191 clonalityScore="$(cat $outputDir/ClonalityScore_$sample.csv)" |
192 echo "<div class='tabbertab' title='$sample'><table class='pure-table pure-table-striped'>" >> $outputFile | 192 echo "<div class='tabbertab' title='$sample'><table class='pure-table pure-table-striped'>" >> $outputFile |
193 echo "<thead><tr><th colspan='4'>Clonality Score: $clonalityScore</th></tr></thead>" >> $outputFile | 193 echo "<thead><tr><th colspan='4'>Clonality Score: $clonalityScore</th></tr></thead>" >> $outputFile |
194 | 194 |
195 #replicate,reads,squared | 195 #replicate,reads,squared |
196 echo "<tr><td>Replicate ID</td><td>Number of Reads</td><td>Reads Squared</td><td></td></tr>" >> $outputFile | 196 echo "<tr><td>Replicate ID</td><td>Number of Reads</td></tr>" >> $outputFile |
197 while IFS=, read replicate reads squared | 197 while IFS=, read replicate reads squared |
198 do | 198 do |
199 echo "<tr><td>$replicate</td><td>$reads</td><td>$squared</td><td></td></tr>" >> $outputFile | 199 echo "<tr><td>$replicate</td><td>$reads</td></tr>" >> $outputFile |
200 done < $outputDir/ReplicateReads_$sample.csv | 200 done < $outputDir/ReplicateReads_$sample.csv |
201 | 201 |
202 #sum of reads and reads squared | 202 #sum of reads and reads squared |
203 while IFS=, read readsSum squaredSum | 203 while IFS=, read readsSum squaredSum |
204 do | 204 do |
205 echo "<tr><td>Sum</td><td>$readsSum</td><td>$squaredSum</td></tr>" >> $outputFile | 205 echo "<tr><td>Sum</td><td>$readsSum</td></tr>" >> $outputFile |
206 done < $outputDir/ReplicateSumReads_$sample.csv | 206 done < $outputDir/ReplicateSumReads_$sample.csv |
207 | 207 |
208 #overview | 208 #overview |
209 echo "<tr><td>Coincidence Type</td><td>Raw Coincidence Freq</td><td>Coincidence Weight</td><td>Coincidences, Weighted</td></tr>" >> $outputFile | 209 echo "<tr><td>Coincidence Type</td><td>Raw Coincidence Freq</td></tr>" >> $outputFile |
210 while IFS=, read type count weight weightedCount | 210 while IFS=, read type count weight weightedCount |
211 do | 211 do |
212 if [[ "$type" -eq "1" ]]; then | 212 if [[ "$type" -eq "1" ]]; then |
213 echo "<tr><td>$type</td><td>$count</td><td>$weight</td><td>$weightedCount</td></tr>" >> $outputFile | 213 echo "<tr><td>$type</td><td>$count</td></tr>" >> $outputFile |
214 else | 214 else |
215 echo "<tr><td><a href='coincidences_${sample}_${type}.txt'>$type</a></td><td>$count</td><td>$weight</td><td>$weightedCount</td></tr>" >> $outputFile | 215 echo "<tr><td><a href='coincidences_${sample}_${type}.txt'>$type</a></td><td>$count</td></tr>" >> $outputFile |
216 fi | 216 fi |
217 | 217 |
218 done < $outputDir/ClonalityOverView_$sample.csv | 218 done < $outputDir/ClonalityOverView_$sample.csv |
219 echo "</table></div>" >> $outputFile | 219 echo "</table></div>" >> $outputFile |
220 else | 220 else |