From d188a3eb70f45bca520a6f302ffe970b352b98ee Mon Sep 17 00:00:00 2001 From: gsalin <gerald.salin@inrae.fr> Date: Tue, 14 May 2024 11:01:52 +0200 Subject: [PATCH] adapt table : display barcode first in sample name and add unclassified in a row of the table #256 --- ui/nG6/pi1/analyzes/Demultiplex_ONT.tpl | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/ui/nG6/pi1/analyzes/Demultiplex_ONT.tpl b/ui/nG6/pi1/analyzes/Demultiplex_ONT.tpl index 301a0464..4c5a4a6f 100644 --- a/ui/nG6/pi1/analyzes/Demultiplex_ONT.tpl +++ b/ui/nG6/pi1/analyzes/Demultiplex_ONT.tpl @@ -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} -- GitLab