Mercurial > repos > davidvanzessen > report_clonality_igg
comparison r_wrapper.sh @ 15:c6d0ee9b3d91 draft
Uploaded
author | davidvanzessen |
---|---|
date | Thu, 04 Dec 2014 10:53:23 -0500 |
parents | 24a80d4eff0c |
children | 8bdf54f37286 |
comparison
equal
deleted
inserted
replaced
14:8002401b83c4 | 15:c6d0ee9b3d91 |
---|---|
17 cp $dir/tabber.js $outputDir | 17 cp $dir/tabber.js $outputDir |
18 cp $dir/style.css $outputDir | 18 cp $dir/style.css $outputDir |
19 cp $dir/script.js $outputDir | 19 cp $dir/script.js $outputDir |
20 cp $dir/jquery-1.11.0.min.js $outputDir | 20 cp $dir/jquery-1.11.0.min.js $outputDir |
21 samples=`cat $outputDir/samples.txt` | 21 samples=`cat $outputDir/samples.txt` |
22 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>" > $2 | 22 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 |
23 echo "<table border = 1>" >> $2 | |
24 echo "<thead><tr><th>Sample/Replicate</th><th>All</th><th>Productive</th><th>Unique Productive</th><th>Unproductive</th><th>Unique Unproductive</th></tr></thead>" >> $2 | |
25 while IFS=, read sample all productive perc_prod productive_unique perc_prod_un unproductive perc_unprod unproductive_unique perc_unprod_un | |
26 do | |
27 echo "<tr><td>$sample</td>" >> $2 | |
28 echo "<td>$all</td>" >> $2 | |
29 echo "<td>$productive (%${perc_prod})</td>" >> $2 | |
30 echo "<td>$productive_unique (%${perc_prod_un})</td>" >> $2 | |
31 echo "<td>$unproductive (%${perc_unprod})</td>" >> $2 | |
32 echo "<td>$unproductive_unique (%${perc_unprod_un})</td></tr>" >> $2 | |
33 done < $outputDir/productive_counting.txt | |
34 echo "</table border></center></html>" >> $2 | |
35 | |
36 echo "productive_counting.txt" | |
23 echo "<html><head><title>Report on:" >> $outputFile | 37 echo "<html><head><title>Report on:" >> $outputFile |
24 for sample in $samples; do | 38 for sample in $samples; do |
25 echo " $sample" >> $outputFile | 39 echo " $sample" >> $outputFile |
26 done | 40 done |
27 echo "</title><script type='text/javascript' src='jquery-1.11.0.min.js'></script>" >> $outputFile | 41 echo "</title><script type='text/javascript' src='jquery-1.11.0.min.js'></script>" >> $outputFile |