Skip to content
Snippets Groups Projects
Select Git revision
  • 2c488dbfc63f5c1c2f53febe4345ce0ca4607c02
  • master default protected
  • dev
  • 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
15 results

trimming_paired.nf

Blame
  • Forked from LBMC / nextflow
    1280 commits behind the upstream repository.
    trimming_paired.nf 502 B
    log.info "fastq files : ${params.fastq}"
    
    Channel
      .fromFilePairs( params.fastq )
      .ifEmpty { error "Cannot find any fastq files matching: ${params.fastq}" }
      .set { fastq_files }
    
    process trimming {
      tag "$pair_id"
    
      input:
      set pair_id, file(reads) from fastq_files
    
      output:
      file "*_trim_R{1,2}.fastq.gz" into fastq_files_cut
    
      script:
      """
      cutadapt -q 20,20 \
      -o ${pair_id}_trim_R1.fastq.gz -p ${pair_id}_trim_R2.fastq.gz \
      ${reads[0]} ${reads[1]} > ${pair_id}_report.txt
      """
    }