-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnextflow.config
192 lines (158 loc) · 5.9 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
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
params {
// Modes: run_standard, run_dataset, generate_and_run
mode = "run_dataset"
standard = "none" // This needs to be specified if mode is run_standard
annot = "celltype"
remap_annot = false // provide an absolute file directory
sampleID = "none"
deconv_args = [cell2location: [build: "", fit:""],
stereoscope: "", spotlight: "",
destvi: [build: "", fit: ""],
dstg: [dir: ""], rctd: "", seurat: "",
tangram: "", stride: ""]
synthspot = [:]
methods = "all"
gpu = false
cuda_device = 0 // only matters if gpu is true
verbose = false
skip_metrics = false // don't calculate metrics
runID_props = ""
runID_metrics = ""
}
manifest {
author = 'Chananchida Sang-aram'
description = 'Pipeline for benchmarking spatial deconvolution and mapping tools'
mainScript = 'main.nf'
version = '0.1'
defaultBranch = 'main'
}
profiles {
local {
process.executor = 'local'
params {
rootdir = "$HOME/spotless-benchmark"
outdir = [props: "${params.rootdir}/deconv_proportions",
metrics: "${params.rootdir}/results",
synthspot: "${params.rootdir}/synthetic_data/"]
sc_input = "${params.rootdir}/unit-test/test_sc_data.rds"
sp_input = "${params.rootdir}/unit-test/test_sp_data.rds"
epoch_build = 10
epoch_fit = 10
deconv_args.dstg.dir = "$HOME"
}
workDir = "${params.rootdir}/work"
executor {
queueSize = 5
}
}
docker {
docker.enabled = true
singularity.enabled = false
params.deconv_args.dstg.dir = ""
process {
withLabel: use_gpu {
containerOptions = "--mount type=bind,source=$HOME,target=$HOME --gpus all"
}
withLabel: use_cpu {
containerOptions = "--mount type=bind,source=$HOME,target=$HOME"
}
}
}
singularity {
docker.enabled = false
singularity.enabled = true
}
prism {
process {
executor = "sge"
penv = "serial"
cpus = 4
// Default shell is csh -> change to bash
// "memory" directive uses h_rss instead of h_vmem
clusterOptions = { "-S /bin/bash -l h_vmem=8G -N ${task.tag}" }
// More intensive processes, increase number of cores, also allow retries
withLabel: retry {
errorStrategy = 'retry'
maxRetries = 2
cpus = { task.attempt * 12 }
}
}
singularity {
enabled = true
cacheDir = "/group/irc/shared/spotless_benchmark/singularity"
}
// Script parameters
params {
rootdir = "$HOME/spotless-benchmark"
outdir = [props: "${params.rootdir}/deconv_proportions",
metrics: "${params.rootdir}/results",
synthspot: "${params.rootdir}/synthetic_data/"]
sc_input = "${params.rootdir}/unit-test/test_sc_data.rds"
sp_input = "${params.rootdir}/unit-test/test_sp_data.rds"
epoch_build = "default"
epoch_fit = "default"
}
workDir = "${params.rootdir}/work"
// Trace
trace {
enabled = true
fields = 'task_id,hash,name,tag,status,exit,container,duration,realtime,cpus,disk,memory,attempt,%cpu,%mem,rss,peak_rss,vmem,peak_vmem'
}
}
hpc {
process {
executor = "slurm"
cpus = 1
memory = { "${task.attempt * 8} GB" }
time = { "${task.attempt * 1}h" }
clusterOptions = "--mail-type FAIL --mail-user chananchidas@irc.vib-ugent.be"
// More intensive processes, increase number of resources, also allow retries
withLabel: retry {
errorStrategy = 'retry'
maxRetries = 2
}
withLabel: longer_time {
time = { "${task.attempt * 4}h" }
}
withLabel: use_gpu {
clusterOptions = "--gres=gpu:1 --mail-type FAIL --mail-user chananchidas@irc.vib-ugent.be"
containerOptions = "--nv"
}
withLabel: use_cpu {
cpus = { task.attempt * 1 }
memory = { "${task.attempt * 24} GB" }
time = { "${task.attempt * 10}h" }
}
withLabel: trivial {
memory = "1 GB"
cpus = 1
time = '10m'
}
}
executor {
queueSize = 25
}
singularity {
enabled = true
cacheDir = "$VSC_SCRATCH_KYUKON_VO_USER/singularity"
}
workDir = "$VSC_SCRATCH_KYUKON_VO_USER/work"
// Script parameters
params {
rootdir = "$VSC_DATA_VO_USER/spotless-benchmark"
outdir = [props: "${params.rootdir}/deconv_proportions",
metrics: "${params.rootdir}/results",
synthspot: "${params.rootdir}/synthetic_data/"]
sc_input = "${params.rootdir}/unit-test/test_sc_data.rds"
sp_input = "${params.rootdir}/unit-test/test_sp_data.rds"
epoch_build = "default"
epoch_fit = "default"
}
// Trace
trace {
enabled = true
fields = 'task_id,hash,name,tag,status,exit,container,duration,realtime,cpus,disk,memory,attempt,%cpu,%mem,rss,peak_rss,vmem,peak_vmem'
}
}
test { includeConfig 'conf/test.config' }
}