Skip to content
Snippets Groups Projects
fasta_sampler.nf 306 B
Newer Older
Channel
  .fromPath( "data/tiny_dataset/fasta/*.fasta" )
  .set { fasta_file }

process sample_fasta {
nfontrod's avatar
nfontrod committed
  publishDir "results/sampling/", mode: 'copy'

  input:
file fasta from fasta_file

  output:
file "*_sample.fasta" into fasta_sample
head ${fasta} > ${fasta.baseName}_sample.fasta