Skip to content

Commit 6fd0b0f

Browse files
committed
Resource update
1 parent a49fcf8 commit 6fd0b0f

File tree

1 file changed

+33
-6
lines changed

1 file changed

+33
-6
lines changed

conf/base.config

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,16 @@ process {
125125
// RESOURCES: CHANGES TO FREQUENT FAILURES BELOW THIS MEM POINT
126126
withName: '.*:.*:GENE_ALIGNMENT:.*:MINIPROT_ALIGN' {
127127
cpus = { 6 * task.attempt }
128-
memory = { 1.GB * ( ref.size() < 2e9 ? 50 : Math.ceil( ( ref.size() / 1e+9 ) * 20 ) * Math.ceil( task.attempt * 1 ) ) }
128+
memory = {
129+
1.GB * (
130+
reference.size() < 2e9 ? 30 :
131+
(reference.size() < 5e9 ? 50 :
132+
(reference.size() < 10e9 ? 60 :
133+
Math.ceil((reference.size() / 1e9) * 3)
134+
)
135+
)
136+
) * Math.ceil(task.attempt * 1)
137+
}
129138
time = { 10.h * task.attempt }
130139
}
131140

@@ -143,9 +152,18 @@ process {
143152

144153
// Standard parameters, covers most insecta. However the memory should be approx 10 * genome size
145154
withName: '.*:.*:READ_COVERAGE:MINIMAP2_ALIGN' {
146-
cpus = { 20 * 1 }
147-
memory = { 1.GB * ( reference.size() < 2e9 ? 50 : Math.ceil( ( reference.size() / 1e+9 ) * 2.5 ) * Math.ceil( task.attempt * 1 ) ) }
148-
time = { 1.h * ( reference.size() < 1e9 ? 10 : reference.size() < 10e9 ? 30 : 48) }
155+
cpus = { 20 * 1 }
156+
memory = {
157+
1.GB * (
158+
reference.size() < 2e9 ? 30 :
159+
(reference.size() < 5e9 ? 40 :
160+
(reference.size() < 10e9 ? 60 :
161+
Math.ceil((reference.size() / 1e9) * 3)
162+
)
163+
)
164+
) * Math.ceil(task.attempt * 1)
165+
}
166+
time = { 1.h * ( reference.size() < 1e9 ? 10 : reference.size() < 10e9 ? 30 : 48) }
149167
}
150168

151169
withName: '.*:.*:READ_COVERAGE:BEDTOOLS_GENOMECOV' {
@@ -170,8 +188,17 @@ process {
170188
}
171189

172190
withName: CRAM_FILTER_MINIMAP2_FILTER5END_FIXMATE_SORT {
173-
cpus = { 16 * 1 }
174-
memory = { 1.GB * ( reference.size() < 2e9 ? 50 : Math.ceil( ( reference.size() / 1e+9 ) * 3 ) * Math.ceil( task.attempt * 1 ) ) }
191+
cpus = { 16 * 1 }
192+
memory = {
193+
1.GB * (
194+
reference.size() < 2e9 ? 30 :
195+
(reference.size() < 5e9 ? 40 :
196+
(reference.size() < 10e9 ? 60 :
197+
Math.ceil((reference.size() / 1e9) * 3)
198+
)
199+
)
200+
) * Math.ceil(task.attempt * 1)
201+
}
175202
}
176203

177204
withName: SNAPSHOT_SRES {

0 commit comments

Comments
 (0)