Skip to content

Commit

Permalink
Don't check if task.memory is null. See nf-core/rnaseq#95
Browse files Browse the repository at this point in the history
  • Loading branch information
ewels committed Sep 28, 2018
1 parent f04b0c1 commit 176d8a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ if (params.skipDupRemoval) {

script:
prefix = bam[0].toString() - ~/(\.sorted)?(\.bam)?$/
if( task.memory == null ){
if( !task.memory ){
log.warn "[Picard MarkDuplicates] Available memory not known - defaulting to 6GB ($prefix)"
avail_mem = 6000
} else {
Expand Down

0 comments on commit 176d8a2

Please sign in to comment.