Skip to content

Commit

Permalink
Note for further updates
Browse files Browse the repository at this point in the history
  • Loading branch information
DLBPointon committed Dec 12, 2024
1 parent 4d3f395 commit 4335b1e
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion conf/base.config
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ process {
}

withName: 'MINIMAP2_ALIGN_SE' {
cpus = { check_max( 6 * task.attempt, 'cpus' ) }
cpus = { check_max( 16 * task.attempt, 'cpus' ) }
memory = { check_max( 2.GB * ( reference.size() < 2e9 ? 70 : Math.ceil( ( reference.size() / 1e+9 ) * 50 ) * Math.ceil( task.attempt * 1 ) ) , 'memory') }
time = { check_max( 10.h * task.attempt, 'time' ) }
}
Expand Down Expand Up @@ -86,6 +86,13 @@ process {
time = { check_max( task.attempt == 1 ? 12.h : ( task.attempt == 2 ? 47.h : 167.h ), 'time' ) }
}

withLabel:KRAKEN2_KRAKEN2 {
// Scalling based on the size of the input genome.
cpus = { check_max( 12 * task.attempt, 'cpus' ) }
memory = { check_max( 72.GB * task.attempt, 'memory' ) }
time = { check_max( 16.h * task.attempt, 'time' ) }
}

// Process-specific resource requirements
// NOTE - Please try and re-use the labels below as much as possible.
// These labels are used and recognised by default in DSL2 files hosted on nf-core/modules.
Expand All @@ -98,30 +105,37 @@ process {
memory = { check_max( 6.GB * task.attempt, 'memory' ) }
time = { check_max( 4.h * task.attempt, 'time' ) }
}

withLabel:process_low {
cpus = { check_max( 2 * task.attempt, 'cpus' ) }
memory = { check_max( 12.GB * task.attempt, 'memory' ) }
time = { check_max( 4.h * task.attempt, 'time' ) }
}

withLabel:process_medium {
cpus = { check_max( 6 * task.attempt, 'cpus' ) }
memory = { check_max( 36.GB * task.attempt, 'memory' ) }
time = { check_max( 8.h * task.attempt, 'time' ) }
}

withLabel:process_high {
cpus = { check_max( 12 * task.attempt, 'cpus' ) }
memory = { check_max( 72.GB * task.attempt, 'memory' ) }
time = { check_max( 16.h * task.attempt, 'time' ) }
}

withLabel:process_long {
time = { check_max( 20.h * task.attempt, 'time' ) }
}

withLabel:process_high_memory {
memory = { check_max( 200.GB * task.attempt, 'memory' ) }
}

withLabel:error_ignore {
errorStrategy = 'ignore'
}

withLabel:error_retry {
errorStrategy = 'retry'
maxRetries = 2
Expand Down

0 comments on commit 4335b1e

Please sign in to comment.