-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnextflow.config
More file actions
169 lines (152 loc) · 5.16 KB
/
nextflow.config
File metadata and controls
169 lines (152 loc) · 5.16 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BioimageAnalysisCoreWEHI/opal_inform_stitch Nextflow config file
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Default config options for all compute environments
----------------------------------------------------------------------------------------
*/
// Global default params, used in configs
params {
// Input/output options
base_dir = null
outdir = null
publish_dir_mode = 'copy'
// ROI finder options
roi_finder = false
roi_scale = 8
// Boilerplate options
monochrome_logs = false
help = false
version = false
// Schema validation default options
validate_params = true
}
profiles {
debug {
dumpHashes = true
process.beforeScript = 'echo $HOSTNAME'
cleanup = false
nextflow.enable.configProcessNamesValidation = true
}
conda {
conda.enabled = true
docker.enabled = false
singularity.enabled = false
podman.enabled = false
apptainer.enabled = false
}
mamba {
conda.enabled = true
conda.useMamba = true
docker.enabled = false
singularity.enabled = false
podman.enabled = false
apptainer.enabled = false
}
singularity {
singularity.enabled = true
singularity.autoMounts = true
conda.enabled = false
docker.enabled = false
podman.enabled = false
apptainer.enabled = false
}
apptainer {
apptainer.enabled = true
apptainer.autoMounts = true
conda.enabled = false
docker.enabled = false
singularity.enabled = false
podman.enabled = false
}
// For smaller slides (~150 GB RAM) — targets sml nodes (28 cores, 113GB)
small {
process {
executor = 'slurm'
queue = 'regular'
withLabel: 'process_stitch' {
cpus = { 4 }
memory = { 96.GB * task.attempt }
time = { 36.h }
}
}
executor {
queueSize = 20
submitRateLimit = '10 sec'
}
}
// For medium slides (~500 GB RAM) — targets med/il nodes (28-48 cores, 491GB)
medium {
process {
executor = 'slurm'
queue = 'regular'
withLabel: 'process_stitch' {
cpus = { 8 }
memory = { 240.GB * task.attempt }
time = { 36.h }
}
}
executor {
queueSize = 20
submitRateLimit = '10 sec'
}
}
// For large slides (~1 TB RAM) — targets lrg nodes (64 cores, 1498GB)
large {
process {
executor = 'slurm'
queue = 'regular'
withLabel: 'process_stitch' {
cpus = { 12 }
memory = { 960.GB * task.attempt }
time = { 36.h }
}
}
executor {
queueSize = 10
submitRateLimit = '10 sec'
}
}
}
// Export these variables to prevent local Python libraries conflicting with conda env
env {
PYTHONNOUSERSITE = 1
TMPDIR = "/vast/scratch/users/\$USER/temp"
}
// Set bash options
process.shell = [
"bash",
"-C", // No clobber - prevent output redirection from overwriting files.
"-e", // Exit if a tool returns a non-zero status/exit code
"-u", // Treat unset variables and parameters as an error
"-o", // Returns the status of the last command to exit..
"pipefail" // ..with a non-zero status or zero if all successfully execute
]
// Disable process selector warnings by default. Use debug profile to enable warnings.
nextflow.enable.configProcessNamesValidation = false
def trace_timestamp = new java.util.Date().format('yyyy-MM-dd_HH-mm-ss')
timeline {
enabled = true
file = "${params.outdir}/pipeline_info/execution_timeline_${trace_timestamp}.html"
}
report {
enabled = true
file = "${params.outdir}/pipeline_info/execution_report_${trace_timestamp}.html"
}
trace {
enabled = true
file = "${params.outdir}/pipeline_info/execution_trace_${trace_timestamp}.txt"
}
dag {
enabled = true
file = "${params.outdir}/pipeline_info/pipeline_dag_${trace_timestamp}.html"
}
manifest {
name = 'BioimageAnalysisCoreWEHI/opal_inform_stitch'
author = """WEHI Bioimaging Analysis Core"""
homePage = 'https://github.com/BioimageAnalysisCoreWEHI/opal_inform_stitch'
description = """Nextflow pipeline for stitching Opal/inForm images from Vectra Polaris in parallel"""
mainScript = 'main.nf'
nextflowVersion = '!>=24.04.2'
version = '0.1.0'
}