Skip to content

Commit

Permalink
Increase resouces for FastQC and fastq screen (#62)
Browse files Browse the repository at this point in the history
* Increase resouces for FastQC and fastq screen

* Add increased resources as label instead
  • Loading branch information
matrulda authored Sep 3, 2024
1 parent a6624f4 commit ed7490c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 3 additions & 2 deletions config/nextflow_config/compute_resources.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ process {
time = '12h'
}
withName: 'FASTQ_SCREEN' {
memory = '4G'
time = '12h'
memory = '4G'
}
withName: 'GET_QC_THRESHOLDS' {
errorStrategy = 'ignore'
}
withLabel: 'high_memory' {
withLabel: 'high_memory_and_cpus' {
memory = '47G'
cpus = 8
}
}
6 changes: 5 additions & 1 deletion main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ workflow CHECK_RUN_QUALITY {

process FASTQC {

label 'high_memory_and_cpus'

input:
tuple val(project), path(fastq_file)
path config_dir
Expand All @@ -183,6 +185,8 @@ process FASTQC {

process FASTQ_SCREEN {

label 'high_memory_and_cpus'

input:
tuple val(project), path(fastq_file)
path config_dir
Expand Down Expand Up @@ -271,7 +275,7 @@ process INTEROP_SUMMARY {
process MULTIQC_PER_FLOWCELL {

publishDir "${params.result_dir}/flowcell_report", mode: 'copy', overwrite: true
label 'high_memory'
label 'high_memory_and_cpus'

input:
val runfolder_name // Run folder name
Expand Down
5 changes: 3 additions & 2 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ profiles {
executor.memory = '12G'
includeConfig "$baseDir/config/nextflow_config/compute_resources.config"

// Overwrite high_memory label
// Overwrite high_memory_and_cpus label
process {
withLabel: 'high_memory' {
withLabel: 'high_memory_and_cpus' {
memory = '12G'
cpus = 1
}
}
}
Expand Down

0 comments on commit ed7490c

Please sign in to comment.