Mercurial > repos > davidvanzessen > argalaxy_tools
diff report_clonality/r_wrapper.sh @ 48:d08dfc8d5225 draft
Uploaded
author | davidvanzessen |
---|---|
date | Wed, 27 Jan 2016 10:36:35 -0500 |
parents | d97e1421aa86 |
children | 5ba0377b7737 |
line wrap: on
line diff
--- a/report_clonality/r_wrapper.sh Wed Jan 27 10:25:43 2016 -0500 +++ b/report_clonality/r_wrapper.sh Wed Jan 27 10:36:35 2016 -0500 @@ -35,12 +35,14 @@ 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 echo "<table border = 1>" >> $2 -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 +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 while IFS=, read sample all productive perc_prod productive_unique perc_prod_un unproductive perc_unprod unproductive_unique perc_unprod_un removed perc_rem do echo "<tr><td>$sample</td>" >> $2 + + echo "<td>$((all+removed))</td>" >> $2 + echo "<td>${removed} (${perc_rem}%)</td>" >> $2 echo "<td>$all</td>" >> $2 - echo "<td>${removed} (${perc_rem}%)</td>" >> $2 echo "<td>$productive (${perc_prod}%)</td>" >> $2 echo "<td>$productive_unique (${perc_prod_un}%)</td>" >> $2 echo "<td>$unproductive (${perc_unprod}%)</td>" >> $2