From c12898c54b7ff3f27828db068daf94a65f8b0a19 Mon Sep 17 00:00:00 2001
From: gsalin <gerald.salin@inrae.fr>
Date: Sun, 5 May 2024 18:29:55 +0200
Subject: [PATCH] correct unclassified way of identify them (changed over time)

---
 ui/nG6/pi1/analyzes/Demultiplex_ONT.tpl | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/ui/nG6/pi1/analyzes/Demultiplex_ONT.tpl b/ui/nG6/pi1/analyzes/Demultiplex_ONT.tpl
index 0d6e8b5e..301a0464 100644
--- a/ui/nG6/pi1/analyzes/Demultiplex_ONT.tpl
+++ b/ui/nG6/pi1/analyzes/Demultiplex_ONT.tpl
@@ -54,10 +54,9 @@ 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 != "unclassified_noBarcode"}<tr><th>{$fastq}</th>{/if}
-
+                                {if $fastq|regex_replace:"/unclassified/":"" == $fastq}<tr><th>{$fastq}</th>{/if}
                                 {foreach from=$stats_headers key=k item=stat}
-                                        {if $fastq == "unclassified_noBarcode"}
+                                        {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}
@@ -74,7 +73,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
                                                 {if $stat == "N50"}{$totalN50=$totalN50+$fastq_metrics[$stat]|replace:',':''|replace:'.':','}{/if}
                                         {/if}
                                 {/foreach}
-                                {if $fastq != "unclassified_noBarcode"}</tr>{/if}
+                                {if $fastq|regex_replace:"/unclassified/":"" == $fastq}</tr>{/if}
                         {/foreach}
                 </tbody>
                 {if $analyse_results|@count > 1 }
-- 
GitLab