From 514305e38c7f36444a43555783ac1c4953e26c38 Mon Sep 17 00:00:00 2001
From: nfontrod <nicolas.fontrodona@ens-lyon.fr>
Date: Wed, 6 Jun 2018 13:29:04 +0000
Subject: [PATCH] fasta_sampler.nt : output modification

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

diff --git a/src/fasta_sampler.nf b/src/fasta_sampler.nf
index ab6f36a..d1200ed 100644
--- a/src/fasta_sampler.nf
+++ b/src/fasta_sampler.nf
@@ -9,10 +9,10 @@ process sample_fasta {
 file fasta from fasta_file
 
   output:
-file "sample.fasta" into fasta_sample
+file "*_sample.fasta" into fasta_sample
 
   script:
 """
-head ${fasta} > sample.fasta
+head ${fasta} > ${fasta.baseName}_sample.fasta
 """
 }
-- 
GitLab