Skip to content

Commit 21920a6

Browse files
committed
Reformat & Update meta.yml
1 parent 0c06669 commit 21920a6

File tree

3 files changed

+119
-229
lines changed

3 files changed

+119
-229
lines changed

subworkflows/nf-core/vcf_vembrane/main.nf

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
include { TABIX_BGZIPTABIX as TABIX_BGZIPTABIX } from '../../../modules/nf-core/tabix/bgziptabix/main'
1+
include { TABIX_BGZIPTABIX } from '../../../modules/nf-core/tabix/bgziptabix/main'
22
include { VEMBRANE_FILTER } from '../../../modules/nf-core/vembrane/filter/main'
3-
include {
4-
VEMBRANE_SORT as VEMBRANE_SORT_DEFAULT ;
5-
VEMBRANE_SORT as VEMBRANE_SORT_VCF
6-
} from '../../../modules/nf-core/vembrane/sort/main'
3+
include { VEMBRANE_SORT as VEMBRANE_SORT_DEFAULT } from '../../../modules/nf-core/vembrane/sort/main'
4+
include { VEMBRANE_SORT as VEMBRANE_SORT_VCF } from '../../../modules/nf-core/vembrane/sort/main'
75
include { VEMBRANE_TABLE } from '../../../modules/nf-core/vembrane/table/main'
86

97
workflow VCF_VEMBRANE {
@@ -36,10 +34,10 @@ workflow VCF_VEMBRANE {
3634
// Always sort by 'CHROM, POS' before index and output compression
3735
VEMBRANE_SORT_DEFAULT(ch_vcf_current, "CHROM, POS")
3836
ch_vcf_current = VEMBRANE_SORT_DEFAULT.out.vcf
37+
ch_versions = ch_versions.mix(VEMBRANE_SORT_DEFAULT.out.versions)
3938

4039
// Index VCF.GZ (always performed on final VCF)
4140
TABIX_BGZIPTABIX(ch_vcf_current)
42-
filtered_ch = TABIX_BGZIPTABIX.out.gz_tbi
4341
ch_versions = ch_versions.mix(TABIX_BGZIPTABIX.out.versions)
4442

4543
// Conditionally create TSV table
@@ -52,9 +50,11 @@ workflow VCF_VEMBRANE {
5250
// Create empty channel when table is not generated
5351
tsv_ch = Channel.empty()
5452
}
53+
ch_vcf = TABIX_BGZIPTABIX.out.gz_tbi
5554

5655
emit:
57-
filtered_ch // channel: [ meta, path(vcf_file), path(tbi_file) ]
58-
tsv_ch // channel: [ meta, path(table_file) ] or empty
59-
versions = ch_versions // channel: [ path(versions.yml) ]
56+
vcf = ch_vcf_current // channel: [ val(meta), path(vcf_file), path(tbi_file) ]
57+
tsv = tsv_ch // channel: [ val(meta), path(table_file) ] or empty
58+
59+
versions = ch_versions // channel: [ path(versions.yml) ]
6060
}

subworkflows/nf-core/vcf_vembrane/meta.yml

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ name: "vcf_vembrane"
33
description: Filter and/or sort and optionally produce a TSV table for a VCF with vembrane.
44
keywords:
55
- vcf
6-
- variant
76
- filtering
87
- sorting
8+
- indexing
99
- vembrane
10-
- bgzip
1110
- tabix
1211
- table
1312
- tsv
@@ -18,41 +17,38 @@ components:
1817
- tabix/bgziptabix
1918
input:
2019
- ch_vcf:
21-
type: tuple
20+
type: channel
2221
description: |
23-
Input channel containing metadata and a VCF/BCF file to process.
24-
Structure: [ val(meta), path(vcf) ]
22+
Channel containing sample metadata and VCF files
23+
Structure: [ meta, vcf ]
2524
- filter_expression:
26-
type: val
27-
description: |
28-
Vembrane filter expression to select variants.
29-
If empty or 'null', the filtering step is skipped.
25+
type: string
26+
description: Expression for vembrane filter (optional - can be empty string or null)
27+
required: false
3028
- sort_expression:
31-
type: val
32-
description: |
33-
Vembrane sort expression used for optional intermediate sorting.
34-
If empty or 'null', this step is skipped.
35-
A final CHROM,POS sort is always applied.
29+
type: string
30+
description: Expression for vembrane sort (optional - can be empty string or null)
31+
required: false
3632
- table_expression:
37-
type: val
38-
description: |
39-
Vembrane table expression to generate a TSV table.
40-
If empty or 'null', table generation is skipped.
33+
type: string
34+
description: Expression for vembrane table generation (optional - can be empty string or null)
35+
required: false
4136
output:
42-
- filtered_ch:
43-
type: file
37+
- vcf:
38+
type: channel
4439
description: |
45-
Final filtered and sorted VCF file, bgzipped and indexed with Tabix.
46-
pattern: "*.{vcf,vcf.gz,bcf,bcf.gz}"
47-
- tsv_ch:
48-
type: file
40+
Processed and sorted VCF files
41+
Structure: [ meta, vcf, tbi ]
42+
pattern: "*.{vcf,vcf.gz,bcf,bcf.gz,.tbi}"
43+
- tsv:
44+
type: channel
4945
description: |
50-
Optional vembrane table (TSV) generated if a table expression is provided.
51-
pattern: "*.{tsv}"
46+
TSV table files generated from VCF (empty channel if table_expression not provided)
47+
Structure: [ meta, tsv ]
48+
pattern: "*.tsv"
5249
- versions:
5350
type: file
54-
description: |
55-
File containing software version information aggregated from all components.
51+
description: File containing software versions
5652
pattern: "versions.yml"
5753
authors:
5854
- "@dhtt"

0 commit comments

Comments
 (0)