forked from FAANG/analysis-TAGADA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnextflow.config
63 lines (50 loc) · 1.17 KB
/
nextflow.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
params.'max-cpus' = 16
params.'max-memory' = 64.GB
params.'max-time' = 12.h
executor {
cpus = params.'max-cpus' as int
memory = params.'max-memory' as nextflow.util.MemoryUnit
}
profiles {
slurm {
process.executor = 'slurm'
}
docker {
docker.enabled = true
process.container = 'registry.gitlab.com/chbk/rnaseq'
}
singularity {
singularity.enabled = true
singularity.autoMounts = true
process.container = 'registry.gitlab.com/chbk/rnaseq'
}
}
process {
cpus = 1
memory = {
min(2.GB * task.attempt, params.'max-memory' as nextflow.util.MemoryUnit)
}
time = params.'max-time' as nextflow.util.Duration
errorStrategy = {
task.exitStatus in [143,137,104,134,139] ? 'retry' : 'terminate'
}
maxRetries = 2
withLabel: high_cpu {
cpus = {
min(16, params.'max-cpus' as int)
}
}
withLabel: medium_memory {
memory = {
min(12.GB + 4.GB * task.attempt, params.'max-memory' as nextflow.util.MemoryUnit)
}
}
withLabel: high_memory {
memory = {
min(24.GB + 8.GB * task.attempt, params.'max-memory' as nextflow.util.MemoryUnit)
}
}
}
def min(a, b) {
a.compareTo(b) == 1 ? b : a;
}