From fa5d34649aafddcae484d7b20f507fad34e15ecc Mon Sep 17 00:00:00 2001
From: Laurent Modolo <laurent@modolo.fr>
Date: Fri, 17 Jan 2020 14:18:33 +0100
Subject: [PATCH] create fasta_sampler.nf

---
 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 00000000..434b9b27
--- /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