Skip to content
Snippets Groups Projects
Select Git revision
  • 89ba3848227c63bbe333af31ba52b62884338af2
  • master default protected
2 results

index.md

Blame
  • fastqc_single.nf 576 B
    params.fastq = "$baseDir/data/fastq/*.fastq"
    
    log.info "fastq files : ${params.fastq}"
    
    Channel
      .fromPath( params.fastq )
      .ifEmpty { error "Cannot find any fastq files matching: ${params.fastq}" }
      .map { it -> [(it.baseName =~ /([^\.]*)/)[0][1], it]}
      .set { fastq_files }
    
    process fastqc_fastq {
      tag "$file_id"
      publishDir "results/fastq/fastqc/", mode: 'copy'
    
      input:
      set file_id, file(reads) from fastq_files
    
      output:
        file "*.{zip,html}" into fastqc_report
    
      script:
    """
    fastqc --quiet --threads ${task.cpus} --format fastq --outdir ./ ${reads}
    """
    }