diff --git a/ui/nG6/pi1/analyzes/Demultiplex_ONT.tpl b/ui/nG6/pi1/analyzes/Demultiplex_ONT.tpl index 301a04640fb3609ae3afd0419cede4e1e6e48023..4c5a4a6f147983002debee904e2f50ac35b4d23a 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}