Demultiplex_ONT.tpl 2.71 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{*
Copyright (C) 2009 INRA
 
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*}

{extends file='AnalysisTemplate.tpl'}

{block name=params}

{/block}


{block name=results_title} Reports {/block}
{block name=results}
27

28
29
30
31
32
33
34
35
	{* find if user is CTD *}
	<input type="hidden" id="user_login" value="{$user_login}" />
	{if $user_login == "CTD"}
		{assign var="isCTD" value=true}
	{else}
		{assign var="isCTD" value=false}
	{/if}
	
36
37
38
	{assign var="stats_metrics" value=$analyse_results["stats_metrics"]|@ksort}
	{assign var="stats_headers" value=','|explode:$analyse_results["metrics"].stats_names.headers}
	{assign var="stats_names" value=['format' => 'Format','num_seqs' => 'NB Sequences','sum_len' => 'Total Length','avg_len' => 'Mean Length','min_len' => 'Min Length','max_len' => 'Max Length','N50' => 'N50']}
39
40
41
	
	<table id="ont_stats_datatable" class="table table-striped table-bordered dataTable analysis-result-table" style="white-space:nowrap;">
		<thead>
42
43
44
45
			<th>Sample</th>
			{foreach from=$stats_headers key=k item=stat}
				<th>{$stats_names.$stat}</th>
			{/foreach}
46
47
		</thead>
		<tbody>
48
49
50
51
52
53
54
			{foreach from=$stats_metrics key=fastq item=fastq_metrics}
				<tr><th>{$fastq}</th>
				{foreach from=$stats_headers key=k item=stat}
					<td>{$fastq_metrics[$stat]}</td>
				{/foreach}
				</tr>
			{/foreach}
55
56
57
58
59
60
61
62
63
		</tbody>
	</table>

{* Help block *}
	<div class="tx-nG6-pi1-help">
		<img src="" alt="" class="img" />
		<p>Help for ONT metrics report :</p>
		<span class="meta">
			<ul>
64
65
66
				<li><strong>Format</strong> : 
					The format of the sample file.
				</li>
67
68
				<li><strong>NB Sequences</strong> : 
					The total number of reads/sequences for this sample.
69
				</li>
70
71
				<li><strong>Total Length</strong> : 
					The number of bases for this sample.
72
				</li>
73
74
				<li><strong>Mean Length</strong> : 
					The mean sequence length this sample (bases).
75
				</li>
76
77
78
79
80
81
82
83
				<li><strong>Min Length</strong> : 
					The minimum sequence length this sample (bases).
				</li>
				<li><strong>Max Length</strong> : 
					The maximum sequence length this sample (bases).
				</li>
				<li><strong>N50</strong> : 
					50% of all bases come from reads/sequences longer than this value.
84
85
86
			</ul>
		</span>
	</div>
87
{/block}