From c6189ba3aec5371979d91b3c1c0e383dcc8f4890 Mon Sep 17 00:00:00 2001
From: Laurent Modolo <laurent.modolo@ens-lyon.fr>
Date: Sat, 20 Feb 2021 08:09:21 +0100
Subject: [PATCH] macs2: cleanup output

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

diff --git a/src/nf_modules/macs2/main.nf b/src/nf_modules/macs2/main.nf
index 57bf3d7e..f50617b9 100644
--- a/src/nf_modules/macs2/main.nf
+++ b/src/nf_modules/macs2/main.nf
@@ -13,7 +13,8 @@ process peak_calling {
     tuple val(file_id), path(bam_ip), path(bam_control)
 
   output:
-    path "*", emit: peak
+    path "*.narrowpeak", emit: peak
+    path "*.bed", emit: summits
     path "*_report.txt", emit: report
 
   script:
@@ -45,7 +46,8 @@ process peak_calling_bg {
     tuple val(file_id), path(bg_ip), path(bg_control)
 
   output:
-    path "*", emit: peak
+    path "*.narrowpeak", emit: peak
+    path "*.bed", emit: summits
     path "*_report.txt", emit: report
 
   script:
-- 
GitLab