Commit 1ed68ddc authored by Jerome Mariette's avatar Jerome Mariette
Browse files

add GAAS analysis

parent 04a4bda8
......@@ -17,6 +17,16 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
{extends file='BasicAnalyse.tpl'}
{* First find out all databse used *}
{assign var="database" value=array()}
{foreach from=$analyse_results key=sample item=sample_results}
{foreach from=$sample_results key=group item=value}
{if !in_array($group, $database) && $group != "default"}
{$database[]=$group}
{/if}
{/foreach}
{/foreach}
{block name=results}
<h3> {$llang.GAASAnalyse_result_title} </h3>
<div class="underline"> </div>
......@@ -29,7 +39,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<th>{$llang.Analyse_sample} ({$analyse_results|@count})</th>
{/if}
<th>{$llang.nb_sequences}</th>
<th>{$llang.GAASAnalyse_affiliated}</th>
<th></th>
{foreach $database as $group}
<th> {$llang.GAASAnalyse_affiliated|replace:"###DATABASE###":$group} </th>
{/foreach}
</tr>
</thead>
<tbody>
......@@ -47,7 +60,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
{$total=$total+$sample_results["default"].nb_sequences}
{$totalaff=$totalaff+$sample_results["default"].nb_affiliated}
<td>{$sample_results["default"].nb_sequences|number_format:0:' ':' '}</td>
<td>{$sample_results["default"].nb_affiliated}%</td>
{foreach $database as $group}
<td>{$sample_results[$group].nb_affiliated}%</td>
{/foreach}
</tr>
{/foreach}
</tbody>
......@@ -57,13 +72,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<td class="info"></td>
<td class="info">{$llang.Analyse_total}</td>
<td class="info">{$total|number_format:0:' ':' '}</td>
<td class="info">{($nb_affiliated/($analyse_results|@count))|number_format:0:' ':' '}%</td>
<td class="info">-</td>
</tr>
<tr>
<td class="info"></td>
<td class="info">{$llang.Analyse_mean}</td>
<td class="info">{($total/($analyse_results|@count))|number_format:0:' ':' '}</td>
<td class="info">{($nb_affiliated/($analyse_results|@count))|number_format:0:' ':' '}%</td>
<td class="info">-</td>
</tr>
{/if}
<tr>
......
......@@ -396,7 +396,7 @@
<label index="FlashAnalyse_length_btn">Length distribution</label>
<label index="GAASAnalyse_result_title">Classifying results</label>
<label index="GAASAnalyse_affiliated">% affiliated</label>
<label index="GAASAnalyse_affiliated">% affiliated with ###DATABASE###</label>
<label index="GAASAnalyse_krona_btn">Krona view</label>
</languageKey>
......@@ -791,7 +791,7 @@
<label index="FlashAnalyse_length_btn">Distribution des longueurs</label>
<label index="GAASAnalyse_result_title">Résultats de la classification</label>
<label index="GAASAnalyse_affiliated">% affiliation</label>
<label index="GAASAnalyse_affiliated">% affiliation avec ###DATABASE###</label>
<label index="GAASAnalyse_krona_btn">Krona view</label>
</languageKey>
......
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