diff --git a/src/fasta_sampler.nf b/src/fasta_sampler.nf index 6a146b351d39d97c71382431cc71630b5eb29af1..4987c82c58f60b64a422659050757d49db4bc20b 100644 --- a/src/fasta_sampler.nf +++ b/src/fasta_sampler.nf @@ -1,3 +1,19 @@ Channel .fromPath( "data/tiny_dataset/fasta/*.fasta" ) .set { fasta_file } + + + +process sample_fasta { +publishDir "results/sampling/", mode: 'copy' + input: +file fasta from fasta_file + + output: +file "*_sample.fasta" into fasta_sample + + script: +""" +head ${fasta} > ${fasta.baseName}_sample.fasta +""" +} \ No newline at end of file