|
| 1 | +/* |
| 2 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 3 | + mira-nf/mira Nextflow sge and slurm config file |
| 4 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 5 | + A config file, appropriate for general use on most high performance |
| 6 | + compute environments. Assumes that all software is installed and available on |
| 7 | + the PATH. |
| 8 | +---------------------------------------------------------------------------------------- |
| 9 | +*/ |
| 10 | + |
| 11 | +process { |
| 12 | + |
| 13 | + cpus = { check_max( 1 * task.attempt, 'cpus' ) } |
| 14 | + memory = { check_max( 6.GB * task.attempt, 'memory' ) } |
| 15 | + time = { check_max( 4.h * task.attempt, 'time' ) } |
| 16 | + |
| 17 | + errorStrategy = { task.exitStatus in ((130..145) + 104) ? 'retry' : 'finish' } |
| 18 | + maxRetries = 1 |
| 19 | + maxErrors = '-1' |
| 20 | + |
| 21 | + // Process-specific resource requirements |
| 22 | + withLabel:process_single { |
| 23 | + cpus = { check_max( 1 , 'cpus' ) } |
| 24 | + memory = { check_max( 6.GB * task.attempt, 'memory' ) } |
| 25 | + time = { check_max( 4.h * task.attempt, 'time' ) } |
| 26 | + } |
| 27 | + withLabel:process_low { |
| 28 | + cpus = { check_max( 2 * task.attempt, 'cpus' ) } |
| 29 | + memory = { check_max( 12.GB * task.attempt, 'memory' ) } |
| 30 | + time = { check_max( 4.h * task.attempt, 'time' ) } |
| 31 | + } |
| 32 | + withLabel:process_medium { |
| 33 | + cpus = { check_max( 4 * task.attempt, 'cpus' ) } |
| 34 | + memory = { check_max( 12.GB * task.attempt, 'memory' ) } |
| 35 | + time = { check_max( 8.h * task.attempt, 'time' ) } |
| 36 | + } |
| 37 | + withLabel:process_high { |
| 38 | + cpus = { check_max( 8 * task.attempt, 'cpus' ) } |
| 39 | + memory = { check_max( 24.GB * task.attempt, 'memory' ) } |
| 40 | + time = { check_max( 16.h * task.attempt, 'time' ) } |
| 41 | + } |
| 42 | + withLabel:process_long { |
| 43 | + time = { check_max( 20.h * task.attempt, 'time' ) } |
| 44 | + } |
| 45 | + withLabel:process_high_memory { |
| 46 | + memory = { check_max( 200.GB * task.attempt, 'memory' ) } |
| 47 | + } |
| 48 | + withLabel:error_ignore { |
| 49 | + errorStrategy = 'ignore' |
| 50 | + } |
| 51 | + withLabel:error_retry { |
| 52 | + errorStrategy = 'retry' |
| 53 | + maxRetries = 3 |
| 54 | + } |
| 55 | + |
| 56 | +} |
0 commit comments