Skip to content

Commit fdcc397

Browse files
authored
Topics for a bunch of SV related modules (nf-core#10113)
* topics delly/call * topic smoove/call * topics strvctvre/strvctvre * topics svtools/vcftobedpe * topics svync * topics wisecondorx/gender * topics wisecondorx/convert * topics wisecondorx/newref * topics wisecondorx/predict * fix bam_cnv_wisecondorx
1 parent eb57b95 commit fdcc397

39 files changed

Lines changed: 501 additions & 658 deletions

modules/nf-core/delly/call/main.nf

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ process DELLY_CALL {
1515
output:
1616
tuple val(meta), path("*.{bcf,vcf.gz}") , emit: bcf
1717
tuple val(meta), path("*.{csi,tbi}") , emit: csi
18-
path "versions.yml" , emit: versions
18+
tuple val("${task.process}"), val('delly'), eval("delly --version |& sed -n '1s/Delly version: *v//p'"), emit: versions_delly, topic: versions
1919

2020
when:
2121
task.ext.when == null || task.ext.when
@@ -43,11 +43,6 @@ process DELLY_CALL {
4343
${exclude} \\
4444
${input} \\
4545
${vcf_output}
46-
47-
cat <<-END_VERSIONS > versions.yml
48-
"${task.process}":
49-
delly: \$( echo \$(delly --version 2>&1) | sed 's/^.*Delly version: v//; s/ using.*\$//')
50-
END_VERSIONS
5146
"""
5247

5348
stub:
@@ -60,10 +55,5 @@ process DELLY_CALL {
6055
"""
6156
${bcf_output}
6257
${vcf_output}
63-
64-
cat <<-END_VERSIONS > versions.yml
65-
"${task.process}":
66-
delly: \$( echo \$(delly --version 2>&1) | sed 's/^.*Delly version: v//; s/ using.*\$//')
67-
END_VERSIONS
6858
"""
6959
}

modules/nf-core/delly/call/meta.yml

Lines changed: 34 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ keywords:
77
- bcf
88
tools:
99
- delly:
10-
description: Structural variant discovery by integrated paired-end and split-read
11-
analysis
10+
description: Structural variant discovery by integrated paired-end and
11+
split-read analysis
1212
homepage: https://github.com/dellytools/delly
1313
documentation: https://github.com/dellytools/delly/blob/master/README.md
1414
doi: "10.1093/bioinformatics/bts378"
15-
licence: ["BSD-3-Clause"]
15+
licence:
16+
- "BSD-3-Clause"
1617
identifier: ""
1718
input:
1819
- - meta:
@@ -22,8 +23,8 @@ input:
2223
e.g. [ id:'test', single_end:false ]
2324
- input:
2425
type: file
25-
description: BAM/CRAM file from alignment must be sorted, indexed, and duplicate
26-
marked
26+
description: BAM/CRAM file from alignment must be sorted, indexed, and
27+
duplicate marked
2728
pattern: "*.{bam,cram}"
2829
ontologies: []
2930
- input_index:
@@ -33,8 +34,8 @@ input:
3334
ontologies: []
3435
- vcf:
3536
type: file
36-
description: A BCF/VCF file to genotype with Delly. If this is supplied, the
37-
variant calling will be skipped
37+
description: A BCF/VCF file to genotype with Delly. If this is supplied,
38+
the variant calling will be skipped
3839
pattern: "*.{vcf.gz,bcf}"
3940
ontologies: []
4041
- vcf_index:
@@ -44,8 +45,8 @@ input:
4445
ontologies: []
4546
- exclude_bed:
4647
type: file
47-
description: An optional bed file containing regions to exclude from the called
48-
VCF
48+
description: An optional bed file containing regions to exclude from the
49+
called VCF
4950
pattern: "*.bed"
5051
ontologies: []
5152
- - meta2:
@@ -77,8 +78,8 @@ output:
7778
e.g. [ id:'test', single_end:false ]
7879
- "*.{bcf,vcf.gz}":
7980
type: file
80-
description: Called variants in BCF/VCF format. Specify either "bcf" or "vcf"
81-
in ext.suffix to define the output type
81+
description: Called variants in BCF/VCF format. Specify either "bcf" or
82+
"vcf" in ext.suffix to define the output type
8283
pattern: "*.{bcf,vcf.gz}"
8384
ontologies: []
8485
csi:
@@ -89,17 +90,31 @@ output:
8990
e.g. [ id:'test', single_end:false ]
9091
- "*.{csi,tbi}":
9192
type: file
92-
description: A generated csi index that matches the bcf output (not generated
93-
for vcf files)
93+
description: A generated csi index that matches the bcf output (not
94+
generated for vcf files)
9495
pattern: "*.{bcf.csi}"
9596
ontologies: []
97+
versions_delly:
98+
- - ${task.process}:
99+
type: string
100+
description: The name of the process
101+
- delly:
102+
type: string
103+
description: The name of the tool
104+
- "delly --version |& sed -n '1s/Delly version: *v//p'":
105+
type: eval
106+
description: The expression to obtain the version of the tool
107+
topics:
96108
versions:
97-
- versions.yml:
98-
type: file
99-
description: File containing software versions
100-
pattern: "versions.yml"
101-
ontologies:
102-
- edam: http://edamontology.org/format_3750 # YAML
109+
- - ${task.process}:
110+
type: string
111+
description: The name of the process
112+
- delly:
113+
type: string
114+
description: The name of the tool
115+
- "delly --version |& sed -n '1s/Delly version: *v//p'":
116+
type: eval
117+
description: The expression to obtain the version of the tool
103118
authors:
104119
- "@projectoriented"
105120
- "@nvnieuwk"

modules/nf-core/delly/call/tests/main.nf.test

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ nextflow_process {
3939
then {
4040
assertAll(
4141
{ assert process.success },
42-
{ assert snapshot(process.out).match("bam") }
42+
{ assert snapshot(sanitizeOutput(process.out)).match() }
4343
)
4444
}
4545

@@ -73,7 +73,7 @@ nextflow_process {
7373
then {
7474
assertAll(
7575
{ assert process.success },
76-
{ assert snapshot(process.out).match("cram") }
76+
{ assert snapshot(sanitizeOutput(process.out)).match() }
7777
)
7878
}
7979

@@ -107,7 +107,7 @@ nextflow_process {
107107
then {
108108
assertAll(
109109
{ assert process.success },
110-
{ assert snapshot(process.out).match("bed") }
110+
{ assert snapshot(sanitizeOutput(process.out)).match() }
111111
)
112112
}
113113

@@ -141,7 +141,7 @@ nextflow_process {
141141
then {
142142
assertAll(
143143
{ assert process.success },
144-
{ assert snapshot(process.out).match("genotype") }
144+
{ assert snapshot(sanitizeOutput(process.out)).match() }
145145
)
146146
}
147147

@@ -178,7 +178,7 @@ nextflow_process {
178178
then {
179179
assertAll(
180180
{ assert process.success },
181-
{ assert snapshot(process.out).match("stub") }
181+
{ assert snapshot(sanitizeOutput(process.out)).match() }
182182
)
183183
}
184184

0 commit comments

Comments
 (0)