-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnextflow.config
More file actions
80 lines (69 loc) · 1.88 KB
/
nextflow.config
File metadata and controls
80 lines (69 loc) · 1.88 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
def scratch_dir = System.getenv("VSC_SCRATCH_PROJECTS_BASE") ? "${System.getenv("VSC_SCRATCH_PROJECTS_BASE")}/${params.tier1_project}" : // Tier 1 scratch
System.getenv("VSC_SCRATCH_VO_USER") ?: // VO scratch
System.getenv("VSC_SCRATCH") // user scratch
// Specify the work directory
workDir = "$scratch_dir/work"
// Perform work directory cleanup when the run has succesfully completed
cleanup = true
singularity {
enabled = true
autoMounts = true
cacheDir = "$scratch_dir/singularity"
}
env {
APPTAINER_TMPDIR="$scratch_dir/.apptainer/tmp"
APPTAINER_CACHEDIR="$scratch_dir/.apptainer/cache"
}
process {
// Global process config
executor = 'local' //change to pbs if you want to sent jobs instead
}
executor {
// How many jobs do we run in parallel?
queueSize = 50
submitRateLimit = '30/1min'
exitReadTimeout = "3day"
}
// Add backoff strategy to catch cluster timeouts and proper symlinks of files in scratch to the work directory
process {
stageInMode = "symlink"
stageOutMode = "rsync"
errorStrategy = { sleep(Math.pow(2, task.attempt ?: 1) * 200 as long); return 'retry' }
maxRetries = 5
}
// Process-specific resource requirements
process {
withLabel:plots {
beforeScript = 'module load R-bundle-Bioconductor/3.15-foss-2022a-R-4.2.1'
cpus = 2
memory = 64.GB
time = 30.min
}
withLabel:low {
cpus = 1
memory = 32.GB
time = 30.min
}
withLabel:med {
cpus = 2
memory = 64.GB
time = 2.h
}
withLabel:high {
cpus = 4
memory = 100.GB
time = 4.h
}
withLabel:gpu {
beforeScript = 'module load PyTorch-bundle/2.1.2-foss-2023a-CUDA-12.1.1'
memory = 100.GB
time = 4.h
cpus = 4
clusterOptions = {"-l gpus=4:ppn=${task.cpus}"}
ext.args = "--num-gpus 4"
}
}
includeConfig "$projectDir/Params.config"
plugins {
id 'nf-validation'
}