{* 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 . # *} {extends file='AnalysisTemplate.tpl'} {block name=params_title} Parameters {/block} {block name=params_content} {assign var="params" value=" "|explode:$analyse.params} {/block} {block name=results_title} Illumina metrics {/block} {block name=results} {assign var="analyse_results_sorted" value=$analyse_results|@ksort} {assign var="total" value=0} {assign var="undetermined" value=0} {assign var="determined" value=0} {foreach from=$analyse_results_sorted key=sample item=sample_results} {if array_key_exists("undetermined", $sample_results)} {$total = $total+$sample_results["undetermined"].number} {$undetermined = $undetermined+$sample_results["undetermined"].number} {else} {$total = $total+$sample_results["determined"].number} {$determined = $determined+$sample_results["determined"].number} {/if} {/foreach} {foreach from=$analyse_results_sorted key=sample item=sample_results} {if array_key_exists("undetermined", $sample_results)} {else} {/if} {/foreach} {if $analyse_results|@count > 1 } {/if}
Sample {if $analyse_results|@count > 1 }({$analyse_results|@count}){/if} Type Index % of total fragments Number of fragments % of passing filter
- Undetermined {$sample} {((($sample_results["undetermined"].number)/$total)*100)|number_format:2:'.':' '} {$sample_results["undetermined"].number|number_format:0:' ':' '} {($sample_results["undetermined"].passing_filter*100/$sample_results["undetermined"].number)|number_format:2:'.':' '}{$sample|get_description:$descriptions} Sample {$sample} {((($sample_results["determined"].number)/$total)*100)|number_format:2:'.':' '} {$sample_results["determined"].number|number_format:0:' ':' '} {($sample_results["determined"].passing_filter*100/$sample_results["determined"].number)|number_format:2:'.':' '}
Total Samples {(($determined/$total)*100)|number_format:2:'.':' '} {$determined|number_format:0:' ':' '}
Total Undetermined {(($undetermined/$total)*100)|number_format:2:'.':' '} {$undetermined|number_format:0:' ':' '}
{/block} {block name=download}{/block}