Mercurial > repos > davidvanzessen > argalaxy_tools
comparison report_clonality/r_wrapper.sh @ 48:d08dfc8d5225 draft
Uploaded
author | davidvanzessen |
---|---|
date | Wed, 27 Jan 2016 10:36:35 -0500 |
parents | d97e1421aa86 |
children | 5ba0377b7737 |
comparison
equal
deleted
inserted
replaced
47:d97e1421aa86 | 48:d08dfc8d5225 |
---|---|
33 cp $dir/jquery-1.11.0.min.js $outputDir | 33 cp $dir/jquery-1.11.0.min.js $outputDir |
34 samples=`cat $outputDir/samples.txt` | 34 samples=`cat $outputDir/samples.txt` |
35 | 35 |
36 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 | 36 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 |
37 echo "<table border = 1>" >> $2 | 37 echo "<table border = 1>" >> $2 |
38 echo "<thead><tr><th>Sample/Replicate</th><th>All</th><th>Removed</th><th>Productive</th><th>Unique Productive</th><th>Unproductive</th><th>Unique Unproductive</th></tr></thead>" >> $2 | 38 echo "<thead><tr><th>Sample/Replicate</th><th>Input</th><th>Removed</th><th>All</th><th>Productive</th><th>Unique Productive</th><th>Unproductive</th><th>Unique Unproductive</th></tr></thead>" >> $2 |
39 while IFS=, read sample all productive perc_prod productive_unique perc_prod_un unproductive perc_unprod unproductive_unique perc_unprod_un removed perc_rem | 39 while IFS=, read sample all productive perc_prod productive_unique perc_prod_un unproductive perc_unprod unproductive_unique perc_unprod_un removed perc_rem |
40 do | 40 do |
41 echo "<tr><td>$sample</td>" >> $2 | 41 echo "<tr><td>$sample</td>" >> $2 |
42 | |
43 echo "<td>$((all+removed))</td>" >> $2 | |
44 echo "<td>${removed} (${perc_rem}%)</td>" >> $2 | |
42 echo "<td>$all</td>" >> $2 | 45 echo "<td>$all</td>" >> $2 |
43 echo "<td>${removed} (${perc_rem}%)</td>" >> $2 | |
44 echo "<td>$productive (${perc_prod}%)</td>" >> $2 | 46 echo "<td>$productive (${perc_prod}%)</td>" >> $2 |
45 echo "<td>$productive_unique (${perc_prod_un}%)</td>" >> $2 | 47 echo "<td>$productive_unique (${perc_prod_un}%)</td>" >> $2 |
46 echo "<td>$unproductive (${perc_unprod}%)</td>" >> $2 | 48 echo "<td>$unproductive (${perc_unprod}%)</td>" >> $2 |
47 echo "<td>$unproductive_unique (${perc_unprod_un}%)</td></tr>" >> $2 | 49 echo "<td>$unproductive_unique (${perc_unprod_un}%)</td></tr>" >> $2 |
48 done < $outputDir/productive_counting.txt | 50 done < $outputDir/productive_counting.txt |