From 8aa7a13a7469ac127044c95e16168f230955e5db Mon Sep 17 00:00:00 2001
From: elabaron <emmanuel.labaronne@ens-lyon.fr>
Date: Wed, 6 Jun 2018 12:39:51 +0000
Subject: [PATCH] fasta_sampler.nf : add process

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

diff --git a/src/fasta_sampler.nf b/src/fasta_sampler.nf
new file mode 100644
index 0000000..434b9b2
--- /dev/null
+++ b/src/fasta_sampler.nf
@@ -0,0 +1,12 @@
+process sample_fasta {
+  input:
+file fasta from fasta_file
+
+  output:
+file "sample.fasta" into fasta_sample
+
+  script:
+"""
+head ${fasta} > sample.fasta
+"""
+}
-- 
GitLab