From 12c06ef0637688639fc68ee424dacb452d8232f1 Mon Sep 17 00:00:00 2001
From: jshapiro <julie.shapiro@ens-lyon.fr>
Date: Fri, 13 Dec 2019 14:27:31 +0100
Subject: [PATCH] added process to fasta_sampler.nf

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

diff --git a/src/fasta_sampler.nf b/src/fasta_sampler.nf
index 17348ca..6fb67de 100644
--- a/src/fasta_sampler.nf
+++ b/src/fasta_sampler.nf
@@ -1,4 +1,16 @@
 Channel
   .fromPath( "data/tiny_dataset/fasta/*.fasta" )
   .set { fasta_file }
+process sample_fasta {
+  input:
+file fasta from fasta_file
+
+  output:
+file "sample.fasta" into fasta_sample
+
+  script:
+"""
+head ${fasta} > sample.fasta
+"""
+}
 
-- 
GitLab