Skip to content
Snippets Groups Projects
Select Git revision
  • 8ef138b4761eced5dc13c166c11582528d514e4f
  • 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

main.nf

Blame
  • main.nf 1.26 KiB
    version = "0.11.5"
    container_url = "lbmc/fastqc:${version}"
    
    params.fastqc_fastq = ""
    process fastqc_fastq {
      container = "${container_url}"
      label "big_mem_mono_cpus"
      tag "$pair_id"
    
      input:
      tuple val(pair_id), path(reads)
    
      output:
      path "*.{zip,html}", emit: report
    
      script:
    if (reads instanceof List)
    """
    fastqc --quiet --threads ${task.cpus} --format fastq --outdir ./ \
      ${params.fastqc_fastq} \
      ${reads[0]} ${reads[1]}
    """
    else
    """
      fastqc --quiet --threads ${task.cpus} --format fastq --outdir ./ ${reads}
    """
    }
    
    params.fastqc_fastq_pairedend = ""
    process fastqc_fastq_pairedend {
      container = "${container_url}"
      label "big_mem_mono_cpus"
      tag "$pair_id"
    
      input:
      tuple val(pair_id), path(reads)
    
      output:
      path "*.{zip,html}", emit: report
    
      script:
    """
    fastqc --quiet --threads ${task.cpus} --format fastq --outdir ./ \
      ${params.fastqc_fastq_pairedend} \
      ${reads[0]} ${reads[1]}
    """
    }
    
    params.fastqc_fastq_singleend = ""
    process fastqc_fastq_singleend {
      container = "${container_url}"
      label "big_mem_mono_cpus"
      tag "$file_id"
    
      input:
      tuple val(file_id), path(reads)
    
      output:
        path "*.{zip,html}", emit: report
    
      script:
    """
      fastqc --quiet --threads ${task.cpus} ${params.fastqc_fastq_singleend} --format fastq --outdir ./ ${reads}
    """
    }