Skip to content

Commit

Permalink
Merge pull request nf-core#632 from alneberg/Fastqc_threading
Browse files Browse the repository at this point in the history
2 threads and 2 cpus for each FastQC process
  • Loading branch information
maxulysse authored Sep 4, 2018
2 parents f813314 + 3130f6a commit d094e2b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions configuration/uppmax-localhost.config
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ process {
memory = {params.singleCPUMem * 2 * task.attempt}
}
withName:RunFastQC {
cpus = 2 // FastQC is only capable of running one thread per fastq file.
errorStrategy = {task.exitStatus == 143 ? 'retry' : 'ignore'}
}
withName:RunFreeBayes {
Expand Down
1 change: 1 addition & 0 deletions configuration/uppmax-slurm.config
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ process {
queue = 'core'
}
withName:RunFastQC {
cpus = 2 // FastQC is only capable of running one thread per fastq file.
errorStrategy = { task.exitStatus == 143 ? 'retry' : 'ignore' }
}
withName:RunFreeBayes {
Expand Down
2 changes: 1 addition & 1 deletion main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ process RunFastQC {

script:
"""
fastqc -q ${fastqFile1} ${fastqFile2}
fastqc -t 2 -q ${fastqFile1} ${fastqFile2}
"""
}

Expand Down

0 comments on commit d094e2b

Please sign in to comment.