Commit 272ab220 authored by Maxime Manno's avatar Maxime Manno 🍜
Browse files

Update barcode metrics table

parent e59f4830
......@@ -154,14 +154,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<br><br>
{*If there are barcodes file in the run*}
{if $barcode_name_count > 1 }
<table id="ont_stats_datatable" class="table table-striped table-bordered dataTable analysis-result-table">
<thead>
<tr>
<th rowspan="2"><center><input type="checkbox" id="chk_all_sample"/></center></th>
{assign var="nb_samples" value=$barcode_name_count}
<th class="string-sort" rowspan="2" id="th_id_1"><center>Sample {if $nb_samples > 1 }({$nb_samples}){/if}</center></th>
<th colspan="{$barcode_headers_count}"><center>Barcode ONT results</center></th>
......@@ -204,42 +203,32 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
{foreach from=$analyse_results_sorted key=sample item=sample_results}
{if $sample|in_array:$barcode_name_sample}
<tr>
<td><center><input type="checkbox" id="chk_sample_{$i}" value="sample"/></center></td>
<td id='sample_{$i}_col_1' class="sample_name">{$sample}</td>
{$col_id = 2}
{foreach from=$barcode_headers key=k item=head}
{if $head == 'total_bases'}
<th class = "numeric-sort" id="th_id_{$th_id}">{($sample_results.$head)|number_format:0:',':' '}</th>
<th id="sample_{$i}_col_{$col_id}">{($sample_results.$head)|number_format:0:',':' '}</th>
{elseif $head == 'nb_reads'}
<th class = "numeric-sort" id="th_id_{$th_id}">{($sample_results.$head)|number_format:0:',':' '}</th>
<th id="sample_{$i}_col_{$col_id}">{($sample_results.$head)|number_format:0:',':' '}</th>
{elseif $head == 'median_read_length'}
<th class = "numeric-sort" id="th_id_{$th_id}">{($sample_results.$head)|number_format:0:',':' '}</th>
<th id="sample_{$i}_col_{$col_id}">{($sample_results.$head)|number_format:0:',':' '}</th>
{elseif $head == 'median_read_quality'}
<th class = "numeric-sort" id="th_id_{$th_id}">{($sample_results.$head)|number_format:1:',':' '}</th>
<th id="sample_{$i}_col_{$col_id}">{($sample_results.$head)|number_format:1:',':' '}</th>
{elseif $head == 'N50_read_length'}
<th class = "numeric-sort" id="th_id_{$th_id}">{($sample_results.$head)|number_format:0:',':' '}</th>
<th id="sample_{$i}_col_{$col_id}">{($sample_results.$head)|number_format:0:',':' '}</th>
{elseif $head == 'L50_read_length'}
<th class = "numeric-sort" id="th_id_{$th_id}">{($sample_results.$head)|number_format:0:',':' '}</th>
<th id="sample_{$i}_col_{$col_id}">{($sample_results.$head)|number_format:0:',':' '}</th>
{elseif $head == 'barcode_score'}
<th class = "numeric-sort" id="th_id_{$th_id}">{($sample_results.$head)|number_format:1:',':' '}</th>
<th id="sample_{$i}_col_{$col_id}">{($sample_results.$head)|number_format:1:',':' '}</th>
{elseif $head == 'nb_read_Q>10'}
<th class = "numeric-sort" id="th_id_{$th_id}">{($sample_results.$head)|number_format:0:',':' '}</th>
<th id="sample_{$i}_col_{$col_id}">{($sample_results.$head)|number_format:0:',':' '}</th>
{elseif $head == 'total_bases_Q>10'}
<th class = "numeric-sort" id="th_id_{$th_id}">{($sample_results.$head)|number_format:0:',':' '}</th>
<th id="sample_{$i}_col_{$col_id}">{($sample_results.$head)|number_format:0:',':' '}</th>
{elseif $head == 'median_yield_per_sec'}
<th class = "numeric-sort" id="th_id_{$th_id}">{($sample_results.$head)|number_format:0:',':' '}</th>
<th id="sample_{$i}_col_{$col_id}">{($sample_results.$head)|number_format:0:',':' '}</th>
{elseif $head == 'nb_actif_channel'}
<th class = "numeric-sort" id="th_id_{$th_id}">{($sample_results.$head)|number_format:0:',':' '}</th>
{/if}
{$th_id = $th_id +1}
{if $head == 'Reads'}
<td id="sample_{$i}_col_{$col_id}">{$sample_results[$sample].$head|number_format:0:',':' '}</td>
{$totalReads = $totalReads + $sample_results[$sample].$head}
{elseif $head == 'Bases'}
<td id="sample_{$i}_col_{$col_id}">{$sample_results[$sample].$head|number_format:0:',':' '}</td>
{$totalBases = $totalBases + $sample_results[$sample].$head}
<th id="sample_{$i}_col_{$col_id}">{($sample_results.$head)|number_format:0:',':' '}</th>
{/if}
{$col_id = $col_id + 1}
......@@ -250,7 +239,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
{/foreach}
</tbody>
{*
<tfoot>
<tr>
<th>Total : </th>
......@@ -290,8 +279,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</th>
</tr>
</tfoot>
*}
</table>
<br><br>
{/if}
......@@ -369,9 +359,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<li><strong>qscorepertimeintervalsboxplot</strong> :
Boxplots for each barcode of the mean qscore of reads per interval of time for this Flow Cell.
</li>
<li><strong>qscorevariation</strong> :
Variation per time for each barcode of the mean qscore of reads for this Flow Cell.
</li>
{/if}
</ul>
</span>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment