Skip to content

Commit 578862b

Browse files
committed
Limit the required resources (hopefully)
1 parent a70d27b commit 578862b

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

sample-work-to-measure/run-downloaded-NXF-and-amplicon-analysis-pipeline.bash

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,32 @@ docker {
100100
autoMounts = true
101101
registry = "quay.io"
102102
}
103+
104+
process {
105+
// the default resources in conf/base.config are higher than your average laptop
106+
// so making these smaller for a local config
107+
withLabel:dada2_resources {
108+
cpus = { 4 * task.attempt }
109+
memory = { 4.GB * task.attempt }
110+
time = { 8.h * task.attempt }
111+
maxRetries = 3
112+
}
113+
withLabel:process_medium {
114+
cpus = { 4 * task.attempt }
115+
memory = { 4.GB * task.attempt }
116+
time = { 8.h * task.attempt }
117+
}
118+
withLabel:medium {
119+
cpus = { 4 * task.attempt }
120+
memory = { 4.GB * task.attempt }
121+
time = { 8.h * task.attempt }
122+
maxRetries = 3
123+
}
124+
125+
withName: INFERNAL_CMSEARCH {
126+
ext.args = '--noali --hmmonly -Z 1000 -o /dev/null'
127+
}
128+
}
103129
EOF
104130

105131
nextflow run "${workflowDir}" -c "${workdir}"/custom.conf -params-file "${workdir}"/input_params.yml

0 commit comments

Comments
 (0)