From 30d17edcb313f1d6eeb8b1ae5664e01c212b8c4b Mon Sep 17 00:00:00 2001
From: Laurent Modolo <laurent@modolo.fr>
Date: Mon, 25 Jan 2021 17:19:01 +0100
Subject: [PATCH] bedtools: bam_to_fastq emits tuple

---
 src/nf_modules/bedtools/main.nf | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/nf_modules/bedtools/main.nf b/src/nf_modules/bedtools/main.nf
index 22361ed8..f55991eb 100644
--- a/src/nf_modules/bedtools/main.nf
+++ b/src/nf_modules/bedtools/main.nf
@@ -31,7 +31,7 @@ process bam_to_fastq_singleend {
   path bam
 
   output:
-  path "*.fastq", emit: fastq
+  tuple val(bam.baseName), path("*.fastq"), emit: fastq
 
   script:
 """
@@ -50,7 +50,7 @@ process bam_to_fastq_pairedend {
   path bam
 
   output:
-  path "*.fastq", emit: fastq
+  tuple val(bam.baseName), path("*.fastq"), emit: fastq
 
   script:
 """
-- 
GitLab