forked from nf-core/configs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvai.config
34 lines (29 loc) · 1.14 KB
/
vai.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
params {
config_profile_description = 'Van Andel Institute HPC profile provided by nf-core/configs.'
config_profile_contact = 'Nathan Spix (@njspix)'
config_profile_url = 'https://vanandelinstitute.sharepoint.com/sites/SC/SitePages/HPC3-High-Performance-Cluster-and-Cloud-Computing.aspx'
max_memory = 250.GB
max_cpus = 40
max_time = 336.h
}
singularity {
enabled = true
autoMounts = true
}
// See if we can find evidence that we're on the new HPC
def new_cluster = false
try {
new_cluster = ['/bin/bash', '-c', 'echo $HOSTNAME'].execute().text.trim() ==~ /(compute|submit)[0-9]{3}/
} catch (java.io.IOException e) {
System.err.println("WARNING: Couldn't figure out which cluster we're on, defaulting to old (PBS) cluster")
}
if (new_cluster) {
System.out.println("Using VAI institutional configuration for new HPC cluster")
} else {
System.out.println("Using VAI institutional configuration for old HPC cluster")
}
process {
beforeScript = { new_cluster ? '' : 'module load VARI/singularity' }()
executor = { new_cluster ? 'slurm' : 'pbs' }()
queue = { new_cluster ? 'long' : { task.time <= 48.h ? 'shortq' : 'longq' } }()
}