-
Notifications
You must be signed in to change notification settings - Fork 283
/
Copy pathdaisybio.config
81 lines (70 loc) · 2.27 KB
/
daisybio.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
params {
config_profile_description = 'DaiSyBio cluster profile provided by nf-core/configs.'
config_profile_contact = 'Johannes Kersting (@JohannesKersting)'
config_profile_url = 'https://www.mls.ls.tum.de/daisybio/startseite/'
max_memory = 1.TB
max_cpus = 120
max_time = 96.h
igenomes_base = '/nfs/data/references/igenomes'
}
// define workDir in /nfs/scratch/nf-core_work/ named after the launch dir
def work_dir = "/nfs/scratch/nf-core_work/"
if(new File(work_dir).exists() && System.getenv("PWD")) {
work_dir = work_dir+System.getenv("PWD").tokenize('/').join('.')
workDir = work_dir
// if directory does not exist, create it and set the group to the group launch dir
if(!new File(work_dir).exists()) {
"mkdir -p ${work_dir}".execute()
def pwd = System.getenv("PWD")
def group = "stat -c %g ${pwd}".execute().text.trim()
"chgrp -R ${group} ${work_dir}".execute()
"chmod -R g+s ${work_dir}".execute()
}
}
process {
resourceLimits = [
memory: 1.TB,
cpus: 120,
time: 96.h
]
executor = 'slurm'
queue = 'shared-cpu'
maxRetries = 2
}
executor {
queueSize = 50
submitRateLimit = '10 sec'
}
cleanup = true
profiles {
// profile to keep work directory
keep_work {
cleanup = false
}
//profile for singularity
singularity {
singularity.enabled = true
singularity.autoMounts = true
conda.enabled = false
docker.enabled = false
podman.enabled = false
shifter.enabled = false
charliecloud.enabled = false
apptainer.enabled = false
process.beforeScript = 'module load singularity'
singularity.cacheDir = '/nfs/scratch/singularity_cache'
}
// profile for apptainer
apptainer {
apptainer.enabled = true
apptainer.autoMounts = true
conda.enabled = false
docker.enabled = false
singularity.enabled = false
podman.enabled = false
shifter.enabled = false
charliecloud.enabled = false
process.beforeScript = 'module load apptainer'
apptainer.cacheDir = '/nfs/scratch/apptainer_cache'
}
}