-
Notifications
You must be signed in to change notification settings - Fork 285
/
Copy pathincliva.config
63 lines (51 loc) · 1.54 KB
/
incliva.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
// Profile details
params {
config_profile_description = 'INCLIVA Health Research Institute profile for nf-core.'
config_profile_contact = 'Sheila Zúñiga Trejos - [email protected]'
config_profile_url = 'https://www.incliva.es/en/services/platforms/bioinformatics-unit/'
}
// Function to get hostname
def getHostname() {
def process = 'hostname'.execute()
process.waitFor()
return process.text.trim()
}
// Function to set singularity path according to which host nextflow is running on
def hostname = { getHostname() }
if (hostname == 'vlinuxcervantes3srv') {
System.out.println("\nINFO: working on ${hostname}\n")
// Resources details
params.max_memory = 60.GB
params.max_cpus = 15
singularity.cacheDir = "/nfs/home/software/singularity/nf_cacheDir"
process {
resourceLimits = [
memory: 60.GB,
cpus: 15,
]
}
} else if (hostname == 'vlinuxcervantes4srv') {
System.out.println("\nINFO: working on ${hostname}.\n")
// Resources details
params.max_memory = 120.GB
params.max_cpus = 19
singularity.cacheDir = "/nfs/home/software/singularity/nf_cacheDir"
process {
resourceLimits = [
memory: 120.GB,
cpus: 19,
]
}
} else {
System.err.println("\nERROR: unknown machine. Update incliva.config on nf-core/configs if you are working on another host.\n")
}
// Singularity details
singularity {
enabled = true
autoMounts = true
}
// Process details
process {
executor = 'local'
maxRetries = 2
}