Skip to content

Commit bb9a292

Browse files
peterpruramprasadn
andauthored
Declare deepvariant optional html output (#9469)
* Add deepvariant optional html * update snapshot * Update modules/nf-core/deepvariant/rundeepvariant/main.nf Co-authored-by: Ramprasad Neethiraj <[email protected]> * trigger html generation * revert config change --------- Co-authored-by: Ramprasad Neethiraj <[email protected]>
1 parent d09b58a commit bb9a292

File tree

4 files changed

+68
-21
lines changed

4 files changed

+68
-21
lines changed

modules/nf-core/deepvariant/rundeepvariant/main.nf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ process DEEPVARIANT_RUNDEEPVARIANT {
2020
tuple val(meta), path("${prefix}.vcf.gz.{tbi,csi}") , emit: vcf_index
2121
tuple val(meta), path("${prefix}.g.vcf.gz") , emit: gvcf
2222
tuple val(meta), path("${prefix}.g.vcf.gz.{tbi,csi}") , emit: gvcf_index
23+
tuple val(meta), path("${prefix}.visual_report.html") , emit: report, optional: true
2324
path "versions.yml" , emit: versions
2425

2526
when:

modules/nf-core/deepvariant/rundeepvariant/meta.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,18 @@ output:
122122
description: Tabix index file of compressed GVCF
123123
pattern: "*.g.vcf.gz.{tbi,csi}"
124124
ontologies: []
125+
report:
126+
- - meta:
127+
type: map
128+
description: |
129+
Groovy Map containing sample information
130+
e.g. [ id:'test', single_end:false ]
131+
- ${prefix}.visual_report.html:
132+
type: file
133+
description: Visual report in HTML format
134+
pattern: "*.html"
135+
optional: true
136+
ontologies: []
125137
versions:
126138
- versions.yml:
127139
type: file

modules/nf-core/deepvariant/rundeepvariant/tests/main.nf.test.snap

Lines changed: 55 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
]
4040
],
4141
"4": [
42+
43+
],
44+
"5": [
4245
"versions.yml:md5,3609b8b1430f8fa9038d70e359be0056"
4346
],
4447
"gvcf": [
@@ -58,6 +61,9 @@
5861
},
5962
"test_out.g.vcf.gz.tbi:md5,1680c67fe988bc1d8220fbb4127c2c18"
6063
]
64+
],
65+
"report": [
66+
6167
],
6268
"vcf": [
6369
[
@@ -83,10 +89,10 @@
8389
}
8490
],
8591
"meta": {
86-
"nf-test": "0.9.2",
87-
"nextflow": "24.10.5"
92+
"nf-test": "0.9.3",
93+
"nextflow": "25.10.0"
8894
},
89-
"timestamp": "2025-03-12T15:16:11.704882305"
95+
"timestamp": "2025-11-28T13:05:09.499778645"
9096
},
9197
"homo_sapiens - [bam, bai] - fasta - fai": {
9298
"content": [
@@ -128,6 +134,9 @@
128134
]
129135
],
130136
"4": [
137+
138+
],
139+
"5": [
131140
"versions.yml:md5,3609b8b1430f8fa9038d70e359be0056"
132141
],
133142
"gvcf": [
@@ -147,6 +156,9 @@
147156
},
148157
"test_out.g.vcf.gz.tbi:md5,1680c67fe988bc1d8220fbb4127c2c18"
149158
]
159+
],
160+
"report": [
161+
150162
],
151163
"vcf": [
152164
[
@@ -172,10 +184,10 @@
172184
}
173185
],
174186
"meta": {
175-
"nf-test": "0.9.2",
176-
"nextflow": "24.10.5"
187+
"nf-test": "0.9.3",
188+
"nextflow": "25.10.0"
177189
},
178-
"timestamp": "2025-03-12T15:14:44.890205274"
190+
"timestamp": "2025-11-28T13:03:26.419020939"
179191
},
180192
"homo_sapiens - [cram, crai, genome_bed] - fasta - fai": {
181193
"content": [
@@ -217,6 +229,9 @@
217229
]
218230
],
219231
"4": [
232+
233+
],
234+
"5": [
220235
"versions.yml:md5,3609b8b1430f8fa9038d70e359be0056"
221236
],
222237
"gvcf": [
@@ -236,6 +251,9 @@
236251
},
237252
"test_out.g.vcf.gz.tbi:md5,1680c67fe988bc1d8220fbb4127c2c18"
238253
]
254+
],
255+
"report": [
256+
239257
],
240258
"vcf": [
241259
[
@@ -261,10 +279,10 @@
261279
}
262280
],
263281
"meta": {
264-
"nf-test": "0.9.2",
265-
"nextflow": "24.10.5"
282+
"nf-test": "0.9.3",
283+
"nextflow": "25.10.0"
266284
},
267-
"timestamp": "2025-03-12T15:15:21.933753648"
285+
"timestamp": "2025-11-28T13:04:01.115384036"
268286
},
269287
"homo_sapiens - [cram, crai, genome_bed] - fasta - fai - par_bed": {
270288
"content": [
@@ -306,6 +324,9 @@
306324
]
307325
],
308326
"4": [
327+
328+
],
329+
"5": [
309330
"versions.yml:md5,3609b8b1430f8fa9038d70e359be0056"
310331
],
311332
"gvcf": [
@@ -325,6 +346,9 @@
325346
},
326347
"test_out.g.vcf.gz.tbi:md5,673ce95e6701a5e7d58ea2ab93440b27"
327348
]
349+
],
350+
"report": [
351+
328352
],
329353
"vcf": [
330354
[
@@ -350,10 +374,10 @@
350374
}
351375
],
352376
"meta": {
353-
"nf-test": "0.9.2",
354-
"nextflow": "24.10.4"
377+
"nf-test": "0.9.3",
378+
"nextflow": "25.10.0"
355379
},
356-
"timestamp": "2025-08-16T11:50:27.672287"
380+
"timestamp": "2025-11-28T13:04:35.257314075"
357381
},
358382
"homo_sapiens - [bam, bai] - fasta - fai - stub": {
359383
"content": [
@@ -395,6 +419,9 @@
395419
]
396420
],
397421
"4": [
422+
423+
],
424+
"5": [
398425
"versions.yml:md5,3609b8b1430f8fa9038d70e359be0056"
399426
],
400427
"gvcf": [
@@ -414,6 +441,9 @@
414441
},
415442
"test_out.g.vcf.gz.tbi:md5,d41d8cd98f00b204e9800998ecf8427e"
416443
]
444+
],
445+
"report": [
446+
417447
],
418448
"vcf": [
419449
[
@@ -439,10 +469,10 @@
439469
}
440470
],
441471
"meta": {
442-
"nf-test": "0.9.2",
443-
"nextflow": "24.10.4"
472+
"nf-test": "0.9.3",
473+
"nextflow": "25.10.0"
444474
},
445-
"timestamp": "2025-08-16T11:50:55.188159"
475+
"timestamp": "2025-11-28T13:05:19.534057506"
446476
},
447477
"homo_sapiens - [bam, bai] - fasta_gz - fasta_gz_fai - stub": {
448478
"content": [
@@ -484,6 +514,9 @@
484514
]
485515
],
486516
"4": [
517+
518+
],
519+
"5": [
487520
"versions.yml:md5,3609b8b1430f8fa9038d70e359be0056"
488521
],
489522
"gvcf": [
@@ -503,6 +536,9 @@
503536
},
504537
"test_out.g.vcf.gz.tbi:md5,d41d8cd98f00b204e9800998ecf8427e"
505538
]
539+
],
540+
"report": [
541+
506542
],
507543
"vcf": [
508544
[
@@ -528,9 +564,9 @@
528564
}
529565
],
530566
"meta": {
531-
"nf-test": "0.9.2",
532-
"nextflow": "24.10.5"
567+
"nf-test": "0.9.3",
568+
"nextflow": "25.10.0"
533569
},
534-
"timestamp": "2025-03-12T15:16:35.978912843"
570+
"timestamp": "2025-11-28T13:05:29.423589845"
535571
}
536-
}
572+
}
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
process {
2-
32
withName: DEEPVARIANT_RUNDEEPVARIANT {
43
ext.args = params.module_args
54
ext.prefix = { "${meta.id}_out" }
65
}
7-
86
}

0 commit comments

Comments
 (0)