From 94bb6475e64bdd0e7c35cbcac347f70b9e26f943 Mon Sep 17 00:00:00 2001
From: Laurent Modolo <laurent.modolo@ens-lyon.fr>
Date: Tue, 5 Oct 2021 17:09:25 +0200
Subject: [PATCH] danpos: change publishDir capture pattern

---
 src/nf_modules/danpos/main.nf | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/nf_modules/danpos/main.nf b/src/nf_modules/danpos/main.nf
index f23b5a8c..d2b94109 100644
--- a/src/nf_modules/danpos/main.nf
+++ b/src/nf_modules/danpos/main.nf
@@ -13,7 +13,7 @@ process dpos_bam {
   label "big_mem_mono_cpus"
   tag "$file_id"
   if (params.dpos_out != "") {
-    publishDir "results/${params.dpos_out}", mode: 'copy', pattern: "${file_prefix}/*"
+    publishDir "results/${params.dpos_out}", mode: 'copy', pattern: "*/*"
   }
 
   input:
@@ -67,7 +67,7 @@ process dpos_wig {
   label "big_mem_mono_cpus"
   tag "$file_id"
   if (params.dpos_out != "") {
-    publishDir "results/${params.dpos_out}", mode: 'copy', pattern: "${file_prefix}/*"
+    publishDir "results/${params.dpos_out}", mode: 'copy', pattern: "*/*"
   }
 
   input:
@@ -126,7 +126,7 @@ process dpos_wigvswig {
   label "big_mem_mono_cpus"
   tag "$file_id"
   if (params.dpos_out != "") {
-    publishDir "results/${params.dpos_out}", mode: 'copy', pattern: "${file_prefix}/*"
+    publishDir "results/${params.dpos_out}", mode: 'copy', pattern: "*/*"
   }
 
   input:
@@ -173,7 +173,7 @@ process dpeak_bam {
   label "big_mem_mono_cpus"
   tag "$file_id"
   if (params.dpeak_out != "") {
-    publishDir "results/${params.dpeak_out}", mode: 'copy', pattern: "${file_prefix}/*"
+    publishDir "results/${params.dpeak_out}", mode: 'copy', pattern: "*/*"
   }
 
   input:
@@ -228,7 +228,7 @@ process dpeak_wig {
   label "big_mem_mono_cpus"
   tag "$file_id"
   if (params.dpeak_out != "") {
-    publishDir "results/${params.dpeak_out}", mode: 'copy', pattern: "${file_prefix}/*"
+    publishDir "results/${params.dpeak_out}", mode: 'copy', pattern: "*/*"
   }
 
   input:
@@ -288,7 +288,7 @@ process dpeak_wigvswig {
   label "big_mem_mono_cpus"
   tag "$file_id"
   if (params.dpeak_out != "") {
-    publishDir "results/${params.dpeak_out}", mode: 'copy', pattern: "${file_prefix}/*"
+    publishDir "results/${params.dpeak_out}", mode: 'copy', pattern: "*/*"
   }
 
   input:
-- 
GitLab