-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWGS.config
335 lines (275 loc) · 11.3 KB
/
WGS.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
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
params {
genome = '/hpc/diaggen/data/databases/ref_genomes/Homo_sapiens.GRCh37.GATK.illumina/Homo_sapiens.GRCh37.GATK.illumina.fasta'
dxtracks_path = '/hpc/diaggen/software/production/Dx_tracks'
gatk_path = '/hpc/diaggen/software/tools/GenomeAnalysisTK-3.8-1-0-gf15c1c3ef/GenomeAnalysisTK.jar'
gatk_bqsr_options = '--knownSites /hpc/diaggen/data/databases/GATK_resource_bundle/b37/1000G_phase1.indels.b37.vcf.gz --knownSites /hpc/diaggen/data/databases/GATK_resource_bundle/b37/dbsnp_137.b37.vcf.gz --knownSites /hpc/diaggen/data/databases/GATK_resource_bundle/b37/Mills_and_1000G_gold_standard.indels.b37.vcf.gz'
gatk_bqsr_pr_options = '--static_quantized_quals 10 --static_quantized_quals 20 --static_quantized_quals 30'
fingerprint_target = 'fingerprint/81SNP_design.vcf'
gatk_hc_interval_list = '/hpc/diaggen/data/databases/ref_genomes/Homo_sapiens.GRCh37.GATK.illumina/Homo_sapiens.GRCh37.GATK.illumina.interval_list'
gatk_hc_options = '-stand_call_conf 10 -GQB 1 -GQB 2 -GQB 3 -GQB 4 -GQB 5 -GQB 6 -GQB 7 -GQB 8 -GQB 9 -GQB 10 -GQB 11 -GQB 12 -GQB 13 -GQB 14 -GQB 15 -GQB 16 -GQB 17 -GQB 18 -GQB 19 -GQB 20 -GQB 21 -GQB 22 -GQB 23 -GQB 24 -GQB 25 -GQB 26 -GQB 27 -GQB 28 -GQB 29 -GQB 30 -GQB 31 -GQB 32 -GQB 33 -GQB 34 -GQB 35 -GQB 36 -GQB 37 -GQB 38 -GQB 39 -GQB 40 -GQB 41 -GQB 42 -GQB 43 -GQB 44 -GQB 45 -GQB 46 -GQB 47 -GQB 48 -GQB 49 -GQB 50 -GQB 51 -GQB 52 -GQB 53 -GQB 54 -GQB 55 -GQB 56 -GQB 57 -GQB 58 -GQB 59 -GQB 60 -GQB 70 -GQB 80 -GQB 90 -GQB 99'
gatk_ggvcf_options = '--dbsnp /hpc/diaggen/data/databases/GATK_resource_bundle/b37/dbsnp_137.b37.vcf.gz'
gatk_snp_filter = "-filter 'QD < 2.0' -filterName SNP_LowQualityDepth -filter 'MQ < 40.0' -filterName SNP_MappingQuality -filter 'FS > 60.0' -filterName SNP_StrandBias -filter 'HaplotypeScore > 13.0' -filterName SNP_HaplotypeScoreHigh -filter 'MQRankSum < -12.5' -filterName SNP_MQRankSumLow -filter 'ReadPosRankSum < -8.0' -filterName SNP_ReadPosRankSumLow -filter 'MQ0 >= 4 && ((MQ0 / (1.0 * DP)) > 0.1)' -filterName SNP_HardToValidate -filter 'DP < 5' -filterName SNP_LowCoverage -filter 'QUAL < 30' -filterName SNP_VeryLowQual -filter 'QUAL >= 30.0 && QUAL < 50.0' -filterName SNP_LowQual -filter 'SOR > 4.0' -filterName SNP_SOR"
gatk_snp_cluster = "--clusterSize 3 --clusterWindowSize 10"
gatk_indel_filter = "-filter 'QD < 2.0' -filterName INDEL_LowQualityDepth -filter 'FS > 200.0' -filterName INDEL_StrandBias -filter 'ReadPosRankSum < -20.0' -filterName INDEL_ReadPosRankSumLow -filter 'MQ0 >= 4 && ((MQ0 / (1.0 * DP)) > 0.1)' -filterName INDEL_HardToValidate -filter 'DP < 5' -filterName INDEL_LowCoverage -filter 'QUAL < 30.0' -filterName INDEL_VeryLowQual -filter 'QUAL >= 30.0 && QUAL < 50.0' -filterName INDEL_LowQual -filter 'SOR > 10.0' -filterName INDEL_SOR"
exoncov_path = '/hpc/diaggen/software/production/ExonCov'
exoncov_bed = 'Tracks/ENSEMBL_UCSC_merged_collapsed_sorted_v3_20bpflank.bed'
freec_chr_len_file = "/hpc/diaggen/data/databases/ref_genomes/Homo_sapiens.GRCh37.GATK.illumina/freec/Homo_sapiens.GRCh37.GATK.illumina.len"
freec_chr_files = "/hpc/diaggen/data/databases/ref_genomes/Homo_sapiens.GRCh37.GATK.illumina/freec/chr_files"
freec_gem_mappability_file = "/hpc/diaggen/data/databases/ref_genomes/Homo_sapiens.GRCh37.GATK.illumina/freec/mappability_tracks/out100m2_hg19.gem"
freec_ploidy = 2
freec_window = 1000
freec_telocentromeric = 50000
baf_snsp_bed = "/hpc/diaggen/data/databases/CytoScanHD/CytoScanHD_hg19_SNPs_sorted.bed"
cluster_options = "--account=diaggen"
}
process {
withLabel: BWA_0_7_17_Mem {
cpus = 20
memory = { 20.GB * task.attempt }
time = { (1.ms * fastq.sum{it.size()} / 900) * task.attempt }
}
withLabel: Sambamba_0_7_0_MarkdupMerge {
cpus = 10
memory = { 50.GB * task.attempt }
time = { (1.ms * bam_files.sum{it.size()} / 11000) * task.attempt }
clusterOptions = "$params.cluster_options --gres=tmpspace:100G"
publishDir {
path = "$params.outdir/bam_files"
mode = 'link'
}
}
withLabel: GATK_3_8_1_0_gf15c1c3ef_BaseRecalibrator {
cpus = 4
memory = { 32.GB * task.attempt }
time = { (1.ms * bam_file.size() / 4000) * task.attempt }
}
withLabel: Sambamba_0_7_0_ViewUnmapped {
cpus = 2
memory = { 1.GB * task.attempt }
time = { (1.ms * bam_file.size() / 45000) * task.attempt }
clusterOptions = "$params.cluster_options --gres=tmpspace:10G"
}
withLabel: Sambamba_0_7_0_Merge {
cpus = 10
memory = { 10.GB * task.attempt }
time = { (1.ms * bam_files.sum{it.size()} / 20000) * task.attempt }
clusterOptions = "$params.cluster_options --gres=tmpspace:10G"
}
withLabel: PICARD_2_22_0_IntervalListTools {
cpus = 2
memory = { 5.GB * task.attempt }
time = { 5.m * task.attempt }
clusterOptions = "$params.cluster_options --gres=tmpspace:10G"
}
withLabel: GATK_3_8_1_0_gf15c1c3ef_HaplotypeCallerGVCF {
cpus = 2
memory = { 20.GB * task.attempt }
time = { (1.ms * bam_file.size() / 5500) * task.attempt }
}
withLabel: GATK_3_8_1_0_gf15c1c3ef_CatVariantsGVCF {
cpus = 2
memory = { 20.GB * task.attempt }
time = { (1.ms * gvcf_files.sum{it.size()} / 14000) * task.attempt }
publishDir {
path = "$params.outdir/gvcf"
mode = 'link'
}
}
withLabel: GATK_3_8_1_0_gf15c1c3ef_GenotypeGVCFs {
cpus = 2
memory = { 20.GB * task.attempt }
time = { 2.h * task.attempt }
}
withLabel: GATK_3_8_1_0_gf15c1c3ef_CombineVariants {
cpus = 2
memory = { 20.GB * task.attempt }
time = { (1.ms * vcf_files.sum{it.size()} / 2000) * task.attempt }
}
withLabel: GATK_3_8_1_0_gf15c1c3ef_VariantFiltrationSnpIndel {
cpus = 2
memory = { 20.GB * task.attempt }
time = { (1.ms * vcf_file.size() / 850) * task.attempt }
publishDir {
path = "$params.outdir"
mode = 'link'
}
}
withName: GATK_UnifiedGenotyper_Fingerprint {
cpus = 2
memory = { 5.GB * task.attempt }
time = { 5.m * task.attempt }
publishDir {
path = "$params.outdir/fingerprint"
mode = 'link'
}
}
withLabel: ExonCov {
cpus = 4
memory = { 20.GB * task.attempt }
time = { (1.ms * bam_file.size() / 24000) * task.attempt }
}
withLabel: ControlFreec_11_5_Freec {
cpus = 4
memory = { 5.GB * task.attempt }
time = { (1.ms * bam_file.size() / 6000) * task.attempt }
publishDir {
path = "$params.outdir/cnv/freec"
mode = 'link'
}
}
withLabel: ControlFreec_11_5_AssessSignificance {
cpus = 4
memory = { 5.GB * task.attempt }
time = { (1.s * cnv_file.size() / 2) * task.attempt }
publishDir {
path = "$params.outdir/cnv/freec"
mode = 'link'
}
}
withLabel: ControlFreec_11_5_MakeGraph {
cpus = 4
memory = { 5.GB * task.attempt }
time = { (1.s * cnv_file.size() / 140) * task.attempt }
publishDir {
path = "$params.outdir/cnv/freec"
mode = 'link'
}
}
withLabel: QDNAseq {
cpus = 2
memory = { 40.GB * task.attempt }
time = { (1.ms * bam_file.size() / 17000) * task.attempt }
publishDir {
path = "$params.outdir/cnv/qdnaseq"
mode = 'link'
}
}
withName: GATK_UnifiedGenotyper_BAF {
cpus = 2
memory = { 5.GB * task.attempt }
time = { (1.ms * bam_file.size() / 5300) * task.attempt }
publishDir {
path = "$params.outdir/baf"
mode = 'link'
}
}
withLabel: BAF {
cpus = 2
memory = { 8.GB * task.attempt }
time = { (1.ms * vcf_file.size() / 150) * task.attempt }
publishDir {
path = "$params.outdir/baf"
mode = 'link'
}
}
withLabel: FASTQC_0_11_8 {
cpus = 2
memory = { 1.GB * task.attempt }
time = { (1.ms * fastq[0].size() / 3000) * task.attempt }
clusterOptions = "$params.cluster_options --gres=tmpspace:10G"
publishDir {
path = "$params.outdir/QC/FastQC"
mode = 'link'
}
}
withLabel: PICARD_2_22_0_CollectMultipleMetrics {
cpus = 2
memory = { 8.GB * task.attempt }
time = { (1.ms * bam_file.size() / 4000) * task.attempt }
clusterOptions = "$params.cluster_options --gres=tmpspace:10G"
publishDir {
path = "$params.outdir/QC/Picard"
mode = 'link'
}
}
withLabel: PICARD_2_22_0_CollectWgsMetrics {
cpus = 2
memory = { 8.GB * task.attempt }
time = { (1.ms * bam_file.size() / 2500) * task.attempt }
clusterOptions = "$params.cluster_options --gres=tmpspace:10G"
publishDir {
path = "$params.outdir/QC/Picard"
mode = 'link'
}
}
withLabel: PICARD_2_22_0_EstimateLibraryComplexity {
cpus = 2
memory = { 8.GB * task.attempt }
time = { (1.ms * bam_file.size() / 800) * task.attempt }
clusterOptions = "$params.cluster_options --gres=tmpspace:100G"
publishDir {
path = "$params.outdir/QC/Picard"
mode = 'link'
}
}
withLabel: MultiQC_1_9 {
cpus = 2
memory = { 5.GB * task.attempt }
time = { 5.m * task.attempt }
publishDir {
path = "$params.outdir/QC"
mode = 'link'
}
}
withLabel: VersionLog {
cpus = 2
memory = { 5.GB * task.attempt }
time = { 5.m * task.attempt }
publishDir {
path = "$params.outdir/log"
mode = 'link'
}
}
withLabel: Workflow_Export_Params {
cpus = 2
memory = { 5.GB * task.attempt }
time = { 5.m * task.attempt }
publishDir {
path = "$params.outdir/log"
mode = 'link'
}
}
}
report {
enabled = true
file = "$params.outdir/log/nextflow_report.html"
}
trace {
enabled = true
file = "$params.outdir/log/nextflow_trace.txt"
fields = 'task_id,hash,native_id,process,tag,name,status,exit,module,container,cpus,time,disk,memory,attempt,submit,start,complete,duration,realtime,queue,%cpu,%mem,rss,vmem,peak_rss,peak_vmem,rchar,wchar,syscr,syscw,read_bytes,write_bytes,vol_ctxt,inv_ctxt'
}
timeline {
enabled = true
file = "$params.outdir/log/nextflow_timeline.html"
}
profiles {
slurm {
process {
executor = 'slurm'
queue = 'cpu'
clusterOptions = "$params.cluster_options"
errorStrategy = 'retry'
maxRetries = 1
}
singularity {
enabled = true
runOptions = '-B /hpc:/hpc -B $TMPDIR:$TMPDIR'
autoMounts = true
cacheDir = '/hpc/diaggen/software/singularity_cache'
}
executor {
queueSize = 1000
pollInterval = '1min'
queueStatInterval = '5min'
submitRatelimit = '10sec'
}
mail {
smtp.host = 'localhost'
}
}
mac {
docker.enabled = true
docker.runOptions = '-v /Users:/Users'
}
}