Skip to content
Snippets Groups Projects
Select Git revision
  • 208d6eb8dff2f80cbc0f6e52185b9bfd719e4867
  • master default protected
  • dev
3 results

6613c53

Blame
  • Forked from LBMC / Hub / PSMN / modules
    Source project has a limited visibility.
    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}
    """
    }