Mercurial > repos > davidvanzessen > shm_csr
diff wrapper.sh @ 16:4e596473c25c draft
Uploaded
author | davidvanzessen |
---|---|
date | Wed, 23 Nov 2016 09:05:40 -0500 |
parents | 59765d2c8890 |
children | 949a30f04d9b |
line wrap: on
line diff
--- a/wrapper.sh Thu Nov 17 07:33:21 2016 -0500 +++ b/wrapper.sh Wed Nov 23 09:05:40 2016 -0500 @@ -447,58 +447,58 @@ PWD="$tmp" -echo "<div class='tabbertab' title='Clonality'>" >> $output #clonality tab + echo "<div class='tabbertab' title='Clonality'>" >> $output #clonality tab -function clonality_table { - local infile=$1 - local outfile=$2 - - echo "<table class='pure-table pure-table-striped'>" >> $outfile - echo "<thead><tr><th>Clone size</th><th>Nr of clones</th><th>Nr of sequences</th></tr></thead>" >> $outfile - - first='true' - - while read size clones seqs - do - if [[ "$first" == "true" ]]; then - first="false" - continue - fi - echo "<tr><td>$size</td><td>$clones</td><td>$seqs</td></tr>" >> $outfile - done < $infile - - echo "</table>" >> $outfile -} -echo "<div class='tabber'>" >> $output + function clonality_table { + local infile=$1 + local outfile=$2 + + echo "<table class='pure-table pure-table-striped'>" >> $outfile + echo "<thead><tr><th>Clone size</th><th>Nr of clones</th><th>Nr of sequences</th></tr></thead>" >> $outfile + + first='true' + + while read size clones seqs + do + if [[ "$first" == "true" ]]; then + first="false" + continue + fi + echo "<tr><td>$size</td><td>$clones</td><td>$seqs</td></tr>" >> $outfile + done < $infile + + echo "</table>" >> $outfile + } + echo "<div class='tabber'>" >> $output -echo "<div class='tabbertab' title='All'>" >> $output -clonality_table $outdir/change_o/change-o-defined_clones-summary.txt $output -echo "</div>" >> $output + echo "<div class='tabbertab' title='All'>" >> $output + clonality_table $outdir/change_o/change-o-defined_clones-summary.txt $output + echo "</div>" >> $output -echo "<div class='tabbertab' title='IGA'>" >> $output -clonality_table $outdir/change_o/change-o-defined_clones-summary-IGA.txt $output -echo "</div>" >> $output + echo "<div class='tabbertab' title='IGA'>" >> $output + clonality_table $outdir/change_o/change-o-defined_clones-summary-IGA.txt $output + echo "</div>" >> $output -echo "<div class='tabbertab' title='IGG'>" >> $output -clonality_table $outdir/change_o/change-o-defined_clones-summary-IGG.txt $output -echo "</div>" >> $output + echo "<div class='tabbertab' title='IGG'>" >> $output + clonality_table $outdir/change_o/change-o-defined_clones-summary-IGG.txt $output + echo "</div>" >> $output -echo "<div class='tabbertab' title='IGM'>" >> $output -clonality_table $outdir/change_o/change-o-defined_clones-summary-IGM.txt $output -echo "</div>" >> $output + echo "<div class='tabbertab' title='IGM'>" >> $output + clonality_table $outdir/change_o/change-o-defined_clones-summary-IGM.txt $output + echo "</div>" >> $output -echo "<div class='tabbertab' title='IGE'>" >> $output -clonality_table $outdir/change_o/change-o-defined_clones-summary-IGM.txt $output -echo "</div>" >> $output + echo "<div class='tabbertab' title='IGE'>" >> $output + clonality_table $outdir/change_o/change-o-defined_clones-summary-IGM.txt $output + echo "</div>" >> $output -echo "<div class='tabbertab' title='Overview'>" >> $output -cat "$outdir/sequence_overview/index.html" >> $output -echo "</div>" >> $output + echo "<div class='tabbertab' title='Overview'>" >> $output + cat "$outdir/sequence_overview/index.html" >> $output + echo "</div>" >> $output -echo "</div>" >> $output #clonality tabber end + echo "</div>" >> $output #clonality tabber end -echo "</div>" >> $output #clonality tab end + echo "</div>" >> $output #clonality tab end fi