Commit c662e81c authored by Jerome Mariette's avatar Jerome Mariette
Browse files

add GAAS analysis

parent e98d97b4
......@@ -18,5 +18,58 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
{extends file='BasicAnalyse.tpl'}
{block name=results}
results
<h3> {$llang.GAASAnalyse_result_title} </h3>
<div class="underline"> </div>
<br />
<table class="display analysis-result-table">
<thead>
<tr>
<th><center><input type="checkbox" id="chk_all_sample"></center></th>
{if $analyse_results|@count > 1 }
<th>{$llang.Analyse_sample} ({$analyse_results|@count})</th>
{/if}
<th>{$llang.nb_sequences}</th>
<th>{$llang.GAASAnalyse_affiliated}</th>
</tr>
</thead>
<tbody>
{assign var="total" value=0}
{assign var="totalaff" value=0}
{assign var="analyse_results_sorted" value=$analyse_results|@ksort}
{foreach from=$analyse_results_sorted key=sample item=sample_results}
<tr>
<td><center>
<input type="checkbox" id="chk_sample_{$i}" value="sample">
</center></td>
{if $analyse_results|@count > 1 }
<td id="sample_id_{$i}">{$sample|get_description:$descriptions}</td>
{/if}
{$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>
</tr>
{/foreach}
</tbody>
<tfoot>
<tr>
<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>
</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>
</tr>
<tr>
<th align="left" colspan="4">
{$llang.toolbar_title}
<button type="button" class="btn length-view-btn"><span><span>{$llang.GAASAnalyse_krona_btn}</span></span></button>
</th>
</tr>
</tfoot>
</table>
{/block}
\ No newline at end of file
......@@ -395,6 +395,10 @@
<label index="FlashAnalyse_nb_notcombined1">Not combined fragments (R1+R2)</label>
<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_krona_btn">krona view</label>
</languageKey>
<languageKey index="fr" type="array">
......@@ -786,6 +790,10 @@
<label index="FlashAnalyse_nb_notcombined1">Fragments non assemblés (R1+R2)</label>
<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_krona_btn">krona</label>
</languageKey>
</data>
</T3locallang>
\ No newline at end of file
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