fasta_sampler.nf 258 Bytes
Newer Older
fmortreu's avatar
fmortreu committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
  """
  }