@@ -13,78 +13,76 @@ process {
1313
1414 container = params.container
1515
16- cpus = { check_max( 1 * task.attempt , 'cpus' ) }
16+ cpus = { check_max( 2 , 'cpus' ) }
1717 memory = { check_max( 8.GB * task.attempt, 'memory' ) }
1818 time = { check_max( 2.h * task.attempt, 'time' ) }
1919
20- errorStrategy = { task.exitStatus in [143,137] ? 'retry' : 'terminate' }
21- maxRetries = 1
20+ errorStrategy = { task.exitStatus in [1, 143,137,104,134,139 ] ? 'retry' : 'terminate' }
21+ maxRetries = 3
2222 maxErrors = '-1'
2323
2424 // Process-specific resource requirements
2525 withName:makeSTARindex {
26- cpus = { check_max( 10 * task.attempt , 'cpus' ) }
26+ cpus = { check_max( 10, 'cpus' ) }
2727 memory = { check_max( 80.GB * task.attempt, 'memory' ) }
2828 time = { check_max( 5.h * task.attempt, 'time' ) }
2929 }
3030 withName:makeHISATindex {
31- cpus = { check_max( 10 * task.attempt , 'cpus' ) }
31+ cpus = { check_max( 10, 'cpus' ) }
3232 memory = { check_max( 80.GB * task.attempt, 'memory' ) }
3333 time = { check_max( 5.h * task.attempt, 'time' ) }
3434 }
35- withName:fastqc {
36- errorStrategy = { task.exitStatus in [143,137] ? 'retry' : 'ignore' }
37- }
3835 withName:trim_galore {
39- cpus = { check_max( 2 * task.attempt, 'cpus' ) }
4036 memory = { check_max( 16.GB * task.attempt, 'memory' ) }
4137 time = { check_max( 8.h * task.attempt, 'time' ) }
4238 }
4339 withName:star {
44- cpus = { check_max( 10 * task.attempt , 'cpus' ) }
40+ cpus = { check_max (10 , 'cpus') }
4541 memory = { check_max( 80.GB * task.attempt, 'memory' ) }
4642 time = { check_max( 8.h * task.attempt, 'time' ) }
4743 }
4844 withName:hisat2Align {
49- cpus = { check_max( 8 * task.attempt , 'cpus' ) }
45+ cpus = { check_max( 8, 'cpus' ) }
5046 memory = { check_max( 64.GB * task.attempt, 'memory' ) }
5147 time = { check_max( 8.h * task.attempt, 'time' ) }
5248 }
5349 withName:hisat2_sortOutput {
54- cpus = { check_max( 4 * task.attempt , 'cpus' ) }
50+ cpus = { check_max( 4, 'cpus' ) }
5551 memory = { check_max( 32.GB * task.attempt, 'memory' ) }
5652 time = { check_max( 8.h * task.attempt, 'time' ) }
5753 }
5854 withName:rseqc {
55+ cpus = { check_max( 8, 'cpus' ) }
56+ memory = { check_max( 32.GB * task.attempt, 'memory' ) }
57+ time = { check_max( 7.h * task.attempt, 'time' ) }
58+ errorStrategy = 'ignore'
59+ }
60+ withName:createBigWig {
5961 cpus = { check_max( 8 * task.attempt, 'cpus' ) }
6062 memory = { check_max( 32.GB * task.attempt, 'memory' ) }
6163 time = { check_max( 7.h * task.attempt, 'time' ) }
62- errorStrategy = { task.exitStatus in [143,137] ? 'retry' : 'ignore' }
6364 }
6465 withName:genebody_coverage {
65- cpus = { check_max( 1 * task.attempt , 'cpus' ) }
66+ cpus = { check_max( 1, 'cpus' ) }
6667 memory = { check_max( 32.GB * task.attempt, 'memory' ) }
6768 time = { check_max( 7.h * task.attempt, 'time' ) }
68- errorStrategy = { task.exitStatus in [143,137] ? 'retry' : 'ignore' }
69- }
70- withName:preseq {
71- errorStrategy = { task.exitStatus in [143,137] ? 'retry' : 'ignore' }
7269 }
7370 withName:markDuplicates {
74- cpus = { check_max( 2 * task.attempt, 'cpus' ) }
7571 memory = { check_max( 16.GB * task.attempt, 'memory' ) }
7672 }
7773 withName:dupradar {
78- cpus = { check_max( 2 * task.attempt, 'cpus' ) }
74+ cpus = { check_max( 1, 'cpus' ) }
75+ memory = { check_max( 16.GB * task.attempt, 'memory' ) }
76+ }
77+ withName:featureCounts {
7978 memory = { check_max( 16.GB * task.attempt, 'memory' ) }
8079 }
8180 withName:sample_correlation {
82- cpus = { check_max( 2 * task.attempt, 'cpus' ) }
8381 memory = { check_max( 16.GB * task.attempt, 'memory' ) }
8482 }
8583 withName:multiqc {
8684 memory = { check_max( 2.GB * task.attempt, 'memory' ) }
87- errorStrategy = { task.exitStatus in [143,137] ? 'retry' : ' ignore' }
85+ errorStrategy = ' ignore'
8886 }
8987 withName:get_software_versions {
9088 memory = { check_max( 2.GB, 'memory' ) }
@@ -94,7 +92,6 @@ process {
9492 withName:workflow_summary_mqc {
9593 memory = { check_max( 2.GB, 'memory' ) }
9694 cache = false
97- executor = 'local'
9895 errorStrategy = 'ignore'
9996 }
10097}
@@ -105,5 +102,4 @@ params {
105102 max_cpus = 16
106103 max_time = 240.h
107104 igenomes_base = 's3://ngi-igenomes/igenomes/'
108- maxMultiqcEmailFileSize = 25.MB
109105}
0 commit comments