-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnextflow.config
224 lines (171 loc) · 4.49 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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
// global configuration
manifest {
name = 'npm-sample-qc'
author = 'Justin Jeyakani, Mar Gonzalez-Porta, Maxime HEBRARD, Rodrigo Toro, Nicolas Bertin'
homePage = 'https://github.com/c-BIG/NPM-sample-qc'
description = 'Nextflow NPM-sample-qc analysis pipeline, part of the GHIF community.'
mainScript = 'main.nf'
nextflowVersion = '!>=23.10.1'
version = '0.13.0'
}
docker_version = '0.13.0'
cleanup = true
params {
// output
outdir = "."
publishdir = "${params.publish_dir}/results"
info_dir = "${params.publish_dir}/pipeline_info"
publish_mode = 'copy'
// help
params.help = null
// Default to signed request when accessing s3 bucket
// can be overwritten using params.aws_no_sign_request
aws_no_sign_request = false
}
process {
errorStrategy = 'retry'
maxRetries = 2
withName: 'samtools_stats' {
cpus = 2
disk = '50 GB'
memory = { 1.GB * task.attempt }
publishDir = [
path: "${params.publishdir}/samtools",
mode: params.publish_mode,
]
}
withName: 'verifybamid2' {
cpus = 4
disk = '50 GB'
memory = { 2.GB * task.attempt }
publishDir = [
path: "${params.publishdir}/verifybamid2",
mode: params.publish_mode,
]
}
withName: 'picard_collect_multiple_metrics' {
cpus = 1
disk = '50 GB'
memory = { 4.GB * task.attempt }
publishDir = [
path: "${params.publishdir}/picard_collect_multiple_metrics",
mode: params.publish_mode,
]
}
withName: 'picard_collect_wgs_metrics' {
cpus = 1
disk = '50 GB'
memory = { 8.GB * task.attempt }
publishDir = [
path: "${params.publishdir}/picard_collect_wgs_metrics",
mode: params.publish_mode,
]
}
withName:bcftools_stats {
cpus = 4
disk = '50 GB'
memory = '1 GB'
publishDir = [
path: "${params.publishdir}/bcftools",
mode: params.publish_mode,
]
}
withName:count_variants {
cpus = 4
disk = '50 GB'
memory = '1 GB'
}
withName:metric_variants {
cpus = 1
disk = '1 GB'
memory = '1 GB'
publishDir = [
path: "${params.publishdir}/metrics",
mode: params.publish_mode,
]
}
withName: 'count_aln' {
cpus = 1
disk = '1 GB'
memory = { 1.GB * task.attempt }
}
withName:metric_aln {
cpus = 1
disk = '1 GB'
memory = '1 GB'
publishDir = [
path: "${params.publishdir}/metrics",
mode: params.publish_mode,
]
}
withName: 'compile_aln_vcf' {
cpus = 1
disk = '1 GB'
memory = { 1.GB * task.attempt }
publishDir = [
path: "${params.publishdir}/metrics",
mode: params.publish_mode,
]
}
}
plugins {
id "nf-amazon"
}
if (params.aws_no_sign_request) {
aws.client.anonymous = true
}
aws.client.downloadParallel = true
aws.client.maxConnections = 4
aws.batch.maxParallelTransfers = 8
executor.queueSize = 5000
// Container slug. Stable releases should specify release tag!
// Developmental code should specify :dev
process.container = "cbig/npm-sample-qc:v${docker_version}"
docker.enabled = true
docker.runOptions = '-u \$(id -u):\$(id -g)'
docker.tmp = "auto"
// To use container provisioning service integrated with Nextflow
// See https://www.nextflow.io/docs/latest/wave.html
wave {
enabled = true
}
// Load resources.config by default
includeConfig 'conf/resources.config'
// environment-specific configuration
profiles {
singularity {
includeConfig 'conf/singularity.config'
}
docker {
includeConfig 'conf/docker.config'
// executor.pollInterval = "2 sec"
}
awsbatch {
includeConfig 'conf/awsbatch.config'
}
}
// sample-specific configuration to be provided through args
// see tests/NA12878_1000genomes-dragen-3.7.6/params.yml for an example
// generate trace
trace {
enabled = true
overwrite = true
file = "${params.info_dir}/trace.txt"
}
// generate timeline
timeline {
enabled = true
overwrite = true
file = "${params.info_dir}/timeline.html"
}
report {
enabled = true
overwrite = true
file = "${params.info_dir}/report.html"
}
// generate dag
dag {
enabled = true
overwrite = true
file = "${params.info_dir}/dag.pdf"
}