-
Notifications
You must be signed in to change notification settings - Fork 1
/
nextflow.config
64 lines (53 loc) · 1.87 KB
/
nextflow.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
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
icbi-lab/crca Nextflow config file
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
manifest {
name = 'icbi-lab/crc-atlas'
author = 'valentin.marteau'
description = 'nf-pipeline colorectal cancer atlas'
nextflowVersion = '>=23.04'
version = 'v1.0'
}
// Global default params, used in configs´
params {
publish_dir_mode = "copy" // Choose between "symlink" - absolute path, "rellink" -relative path, "link " -hard link, "copy"
}
// Load base.config by default for all pipelines
includeConfig 'conf/base.config'
// include workflow-specific configurations
if (params.workflow == "build_atlas") {
includeConfig 'conf/build_atlas.config'
} else {
includeConfig 'conf/downstream_analyses.config'
}
conda {
useMamba = true
enabled = true
}
//
// import plain java classes Paths
// and get realpaths for bind mounts
//
import java.nio.file.Paths;
new File(params.tmpDir).mkdirs()
params.singularityTmpMount = params.tmpDir.startsWith("/tmp/") ? "/tmp" : Paths.get(params.tmpDir).toRealPath()
singularity {
enabled = true
runOptions = "--no-home" + " -H " + params.singularityTmpMount + ":" + "/home/\$USER" + " --env " + "APPTAINERENV_TMPDIR=/tmp/\$USER/apptainerenv_cache" + "," + "NUMBA_CACHE_DIR=/tmp/\$USER/numba_cache" + "," + "MPLCONFIGDIR=/tmp/\$USER/matplotlib_cache" + " -B " + params.singularityTmpMount + ":" + "/home/\$USER/.jupyter"
autoMounts = true
}
profiles {
standard {
process.executor = 'local'
}
cluster {
process.executor = 'slurm'
process.clusterOptions = { '--gres=cputype:XG6342' } // run only on latest cpus
//process.clusterOptions = '--nodelist=apollo-02' // run on specific node
process.memory = '32 GB'
process.cores = '2'
process.queueSize = 600
}
}