Skip to content
Snippets Groups Projects
Commit d188a3eb authored by gsalin's avatar gsalin
Browse files

adapt table : display barcode first in sample name and add unclassified

in a row of the table #256
parent c12898c5
No related branches found
No related tags found
1 merge request!160update demulitplexont analysis in NG6
......@@ -54,17 +54,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</thead>
<tbody>
{foreach from=$stats_metrics key=fastq item=fastq_metrics}
{if $fastq|regex_replace:"/unclassified/":"" == $fastq}<tr><th>{$fastq}</th>{/if}
{assign var=samplenameVar value="_"|explode:$fastq}
<tr><th>{$samplenameVar[1]} - {$samplenameVar[0]}</th>
{foreach from=$stats_headers key=k item=stat}
{if $fastq|regex_replace:"/unclassified/":"" !== $fastq}
{if $stat == "num_seqs"}{$totalNbSequenceswithoutBarcode=$totalNbSequenceswithoutBarcode+$fastq_metrics[$stat]|replace:',':''|replace:'.':','}{/if}
{if $stat == "sum_len"}{$totalLengthwithoutBarcode=$totalLengthwithoutBarcode+$fastq_metrics[$stat]|replace:',':''|replace:'.':','}{/if}
{else}
{if $stat == "format"}
<td>{$fastq_metrics[$stat]}</td>
{else}
<td>{$fastq_metrics[$stat]|replace:',':''|replace:'.':','|number_format:0:' ':' '}</td>
{/if}
{if $stat == "num_seqs"}{$totalNbSequences=$totalNbSequences+$fastq_metrics[$stat]|replace:',':''|replace:'.':','}{/if}
{if $stat == "sum_len"}{$totalLength=$totalLength+$fastq_metrics[$stat]|replace:',':''|replace:'.':','}{/if}
{if $stat == "avg_len"}{$totalAvgLength=$totalAvgLength+$fastq_metrics[$stat]|replace:',':''|replace:'.':','}{/if}
......@@ -72,8 +68,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
{if $stat == "max_len"}{$totalMaxLength=$totalMaxLength+$fastq_metrics[$stat]|replace:',':''|replace:'.':','}{/if}
{if $stat == "N50"}{$totalN50=$totalN50+$fastq_metrics[$stat]|replace:',':''|replace:'.':','}{/if}
{/if}
{if $stat == "format"}
<td>{$fastq_metrics[$stat]}</td>
{else}
<td>{$fastq_metrics[$stat]|replace:',':''|replace:'.':','|number_format:0:' ':' '}</td>
{/if}
{/foreach}
{if $fastq|regex_replace:"/unclassified/":"" == $fastq}</tr>{/if}
</tr>
{/foreach}
</tbody>
{if $analyse_results|@count > 1 }
......@@ -146,4 +147,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</ul>
</span>
</div>
{/block}
\ No newline at end of file
{/block}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment