From 03ab1966a257b05413f0a1c75b2a38da6e295fb9 Mon Sep 17 00:00:00 2001 From: elabaron <emmanuel.labaronne@ens-lyon.fr> Date: Wed, 6 Jun 2018 13:30:27 +0000 Subject: [PATCH] sampler_fasta.nf : add sample name in the output --- 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