From 1fbc5ef8e9ce8d5b36c92fbc34ffc71e440524ac Mon Sep 17 00:00:00 2001
From: Laurent Modolo <laurent.modolo@ens-lyon.fr>
Date: Thu, 2 Aug 2018 17:21:35 +0200
Subject: [PATCH] MultiQC: update test to match fastqc.nf

---
 src/nf_modules/MultiQC/tests/multiqc_single.nf | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/nf_modules/MultiQC/tests/multiqc_single.nf b/src/nf_modules/MultiQC/tests/multiqc_single.nf
index 4842803..ea1115b 100644
--- a/src/nf_modules/MultiQC/tests/multiqc_single.nf
+++ b/src/nf_modules/MultiQC/tests/multiqc_single.nf
@@ -5,15 +5,16 @@ log.info "fastq files : ${params.fastq}"
 Channel
   .fromPath( params.fastq )
   .ifEmpty { error "Cannot find any fastq files matching: ${params.fastq}" }
+  .map { it -> [(it.baseName =~ /([^\.]*)/)[0][1], it]}
   .set { fastq_files }
 
 process fastqc_fastq {
-  tag "$reads.baseName"
+  tag "$file_id"
   publishDir "results/fastq/fastqc/", mode: 'copy'
   cpus = 1
 
   input:
-    file reads from fastq_files
+    set file_id, file(reads) from fastq_files
 
   output:
     file "*.{zip,html}" into fastqc_report
-- 
GitLab