-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnextflow.config
264 lines (228 loc) · 6.81 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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
// Nextflow config for AgVic x UQ CLRC pipeline
manifest {
name = 'BovLRC-pipeline'
description = 'Long Read analysis pipeline implemented with Nextflow - Developed for the Bovine Long Read Consortium'
author = 'Tuan Nguyen | tuan.nguyen@agriculture.vic.gov.au'
nextflowVersion = '>=20.07.0'
}
nextflow.enable.configProcessNamesValidation = false
//////////////////////////////////////////////////////////////
// CHECK BASE PARAMETERS TO SEE IF IT WORKS FOR YOUR SYSTEM //
//////////////////////////////////////////////////////////////
// Output Dir # User only need to update this address, the rest should be automatically resolved :)
params.Source_Dir = '/group/dairy/BovLRC/AgVic/'
// Metadata Dir # SR metadata can be blank. Change name here if you want a different file name :)
params.LR_MetaDir = 'meta/metadata_LR.csv' // LR metadata Dir
params.SR_MetaDir = 'meta/metadata_SR.csv' // SR metadata Dir
// Set process executor
// For institute with different system, say PBS or AWS, change this to its appropriate executor
process.executor = 'slurm'
executor {
queueSize = 300
pollInterval = '30 sec'
}
// Cluster specs settings - Please adjust this to your local cluster specifications
process {
withLabel: single_cpu_job {
cpus = 1
memory = 16.GB
}
}
process {
withLabel: tiny_job {
cpus = 2
memory = 16.GB
}
}
process {
withLabel: small_job {
cpus = 8
memory = 32.GB
}
}
process {
withLabel: medium_job {
cpus = 16
memory = 64.GB
}
}
process {
withLabel: big_job {
cpus = 24
memory = 128.GB
}
}
process {
withLabel: extreme_job {
cpus = 48
memory = 256.GB
}
}
process {
withLabel: high_mem {
cpus = 8
memory = 256.GB
}
}
process {
withLabel: py_high_mem {
cpus = 1
memory = 256.GB
}
}
//////////////////////////
// END BASE PARAMETERS //
/////////////////////////
profiles {
debug { process.beforeScript = 'echo $HOSTNAME' }
conda {
params.enable_conda = true
docker.enabled = false
singularity.enabled = false
podman.enabled = false
shifter.enabled = false
charliecloud.enabled = false
}
docker {
docker.enabled = true
docker.runOptions = '-u \$(id -u):\$(id -g)'
singularity.enabled = false
podman.enabled = false
shifter.enabled = false
charliecloud.enabled = false
}
singularity {
singularity.enabled = true
singularity.autoMounts = true
singularity.runOptions = "--bind \${TMPDIR}:/tmp --bind \${TMPDIR} --bind ${params.Source_Dir}"
docker.enabled = false
podman.enabled = false
shifter.enabled = false
charliecloud.enabled = false
}
podman {
podman.enabled = true
docker.enabled = false
singularity.enabled = false
shifter.enabled = false
charliecloud.enabled = false
}
shifter {
process.beforeScript = 'module load shifter'
shifter.enabled = true
docker.enabled = false
singularity.enabled = false
podman.enabled = false
charliecloud.enabled = false
}
charliecloud {
charliecloud.enabled = true
docker.enabled = false
singularity.enabled = false
podman.enabled = false
shifter.enabled = false
}
test {
includeConfig 'conf/test.config'
}
}
// Docker/Shifter container - built by Tuan Nguyen
process {
withName:MINIMAP2 {
container = 'tuannguyen90/clrc_mapping:1.0'
}
withName:WINNOWMAP2 {
container = 'tuannguyen90/clrc_mapping:1.0'
}
withName:NGMLR {
container = 'tuannguyen90/clrc_mapping:1.0'
}
withName:SAMTOOLS_DEPTH {
container = 'tuannguyen90/samtools_datamash:1.0'
}
withName:CLAIR3 {
container = 'hkubal/clair3:v1.0.5'
}
withName:CLAIR3_Y {
container = 'hkubal/clair3:v1.0.5'
}
withName:PEPPER {
container = 'kishwars/pepper_deepvariant:r0.8'
}
withName:SNIFFLES2 {
container = 'tuannguyen90/sniffles:2.2'
}
withName:CUTESV {
container = 'tuannguyen90/cutesv:2.0.3'
}
withName:NANOFILT {
container = 'tuannguyen90/clrc_qc:1.0.2'
}
withName:FILTLONG{
container = 'tuannguyen90/filtlong:0.2.2'
}
withName:DYSGU{
container = 'tuannguyen90/dysgu:1.3.16'
}
withName:DEEPVARIANT {
container = 'google/deepvariant:1.5.0'
}
withName:DEEPVARIANT_Y {
container = 'google/deepvariant:1.5.0'
}
withName:MOSDEPTH {
container = 'tuannguyen90/mosdepth:0.0.3'
}
withName:LONGSHOT{
container = 'tuannguyen90/longshot:0.4.3'
}
withName:MULTIQC {
container = 'ewels/multiqc:v1.14'
}
}
// Save settings
params.SaveMode = 'copy'
params.Overwrite = true
// Pipeline settings - DEFAULT is both TRUE - but assume if you already have clean reads, you might disable enable_QC for example
params.enable_QC = true
params.enable_SNV_SV = true
// Default program
params.MapMethod = 'Minimap2'
params.SVCallMethod = 'Sniffles2'
params.SNPCallMethod = 'Clair3'
// Mapping // One at a time only
params.enable_minimap2 = true
params.enable_ngmlr = false
params.enable_winnowmap2 = false
// Mapping stats
params.enable_mosdepth = true
// QC // One at a time only
params.enable_nanofilt = false
params.enable_filtlong = true
// SNP calling // Multiple allow
params.enable_clair3 = true
params.enable_pepper = false
params.enable_longshot = false // Currently supporting, cannot calling INDEL, suitable for > 30X coverage
params.enable_deepvar = false
// Enable Y calling
params.chrY = 'Y'
// SVs calling // Multiple allow
params.enable_sniffles2 = true
params.enable_cutesv = false
params.enable_dysgu = false
// Genome Dir
params.GenomeDir = 'asset/genome_compact'
/////////////////////////////////
// ANALYSIS DEFAULT PARAMETERS //
/////////////////////////////////
// SNVs calling settings
// Clair3
params.clair3_model_path = 'asset/models'
/// DO NOT EDIT :) ///
params.Report_Dir = "${params.Source_Dir}/Log"
params.Basecall_Dir = "${params.Source_Dir}/Basecall"
params.QC_Dir = "${params.Source_Dir}/LR_QC"
params.Map_Dir = "${params.Source_Dir}/Mapping"
params.SV_Dir = "${params.Source_Dir}/SV"
params.SNP_Dir = "${params.Source_Dir}/SNP"
params.Merge_Variant_Dir = "${params.Source_Dir}/Merged_Variant"