diff --git a/src/fasta_sampler.nf b/src/fasta_sampler.nf new file mode 100644 index 0000000000000000000000000000000000000000..5b7135d46f81c338988ac4fc9c240ce96b96900a --- /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