From 823d23356eb40e1b8f11a5b9c918e68f2c997d32 Mon Sep 17 00:00:00 2001 From: mshamjal <113-mshamjal@users.noreply.gitlab.biologie.ens-lyon.fr> Date: Fri, 17 Jan 2020 13:38:02 +0000 Subject: [PATCH] creat fasta sampler --- src/fasta_sampler.nf | 16 ++++++++++++++++ 1 file changed, 16 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..5b7135d --- /dev/null +++ b/src/fasta_sampler.nf @@ -0,0 +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 +""" +} \ No newline at end of file -- GitLab