forked from nf-core/configs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
crg.config
executable file
·45 lines (42 loc) · 1.32 KB
/
crg.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
//Profile config names for nf-core/configs
params {
config_profile_description = 'Centre for Genomic Regulation (CRG) cluster profile provided by nf-core/configs'
config_profile_contact = 'Jose Espinosa-Carrasco (@joseespinosa)'
config_profile_url = 'http://www.linux.crg.es/index.php/Main_Page'
}
def cluster_name = System.getenv("SLURM_CLUSTER_NAME")
if (cluster_name == "crg") {
process {
executor = 'slurm'
queue = 'genoa64'
clusterOptions = {
switch (task.time) {
case { it > 168.h } :
return '--qos=ethernal'
case (48<..168).h:
return '--qos=marathon'
case (24<..48).h:
return '--qos=vlong'
case (12<..24).h:
return '--qos=long'
case (6<..12).h:
return '--qos=normal'
case (3<..6).h:
return '--qos=short'
case (1<..3).h:
return '--qos=shorter'
default:
return '--qos=vshort'
}
}
}
} else {
process {
executor = 'crg'
beforeScript = 'module load Singularity/4.0.2'
queue = 'short-centos79,long-centos79'
}
}
singularity {
enabled = true
}