From 845e92b246845e8f909a933a6469beb2c906355c Mon Sep 17 00:00:00 2001
From: fduveau <102-fduveau@users.noreply.gitlab.biologie.ens-lyon.fr>
Date: Fri, 13 Dec 2019 14:19:53 +0000
Subject: [PATCH] Update 2

---
 src/fasta_sampler.nf | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/src/fasta_sampler.nf b/src/fasta_sampler.nf
index 6a146b3..4987c82 100644
--- a/src/fasta_sampler.nf
+++ b/src/fasta_sampler.nf
@@ -1,3 +1,19 @@
 Channel
   .fromPath( "data/tiny_dataset/fasta/*.fasta" )
   .set { fasta_file }
+
+
+
+process sample_fasta {
+publishDir "results/sampling/", mode: 'copy'
+  input:
+file fasta from fasta_file
+
+  output:
+file "*_sample.fasta" into fasta_sample
+
+  script:
+"""
+head ${fasta} > ${fasta.baseName}_sample.fasta
+"""
+}
\ No newline at end of file
-- 
GitLab