Skip to content
Snippets Groups Projects
Select Git revision
  • 9ec0803c801a76e766d5020e74f9c0caec548482
  • master default protected
  • dev
  • v2.0.0
  • v0.4.0
  • v0.3.0
  • v0.2.9
  • v0.2.8
  • v0.2.7
  • v0.2.6
  • v0.1.0
  • v0.2.5
  • v0.2.4
  • v0.2.3
  • v0.2.2
  • v0.2.1
  • v0.2.0
  • v0.1.2
18 results

fasta_sampler.nf

Blame
  • fasta_sampler.nf 306 B
    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
    """
    }