From 610ef711cf23a087d51eed36a54e0af28b96d583 Mon Sep 17 00:00:00 2001
From: Laurent Modolo <laurent.modolo@ens-lyon.fr>
Date: Tue, 19 Oct 2021 10:30:42 +0200
Subject: [PATCH] uscs: fix of wig_to_bedgraph

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

diff --git a/src/nf_modules/ucsc/main.nf b/src/nf_modules/ucsc/main.nf
index 7d77a075..ff3fbe27 100644
--- a/src/nf_modules/ucsc/main.nf
+++ b/src/nf_modules/ucsc/main.nf
@@ -46,10 +46,10 @@ process wig_to_bedgraph {
   }
 
   input:
-  tuple val(file_id) path(wig)
+  tuple val(file_id), path(wig)
 
   output:
-  tuple val(file_id), path("*.bg"), emit: bedgraph
+  tuple val(file_id), path("${wig.simpleName}.bg"), emit: bedgraph
 
   script:
 """
-- 
GitLab