vcf_gather_bcftools
Concatenate several VCF files using bcftools concat. Especially works well with the scatter subworkflows in nf-core. An additional option can be given to sort the concatenated VCF.
Description
Concatenate several VCF files using bcftools concat. Especially works well with the scatter subworkflows in nf-core. An additional option can be given to sort the concatenated VCF.
Input
Groovy Map containing at least two fields: ‘id’ and a common field for each VCF that needs to be merged
e.g. [ id:‘test.001’, common_meta:‘test’ ]
VCF files and their indices that should be concatenated
Structure: [ meta, vcf, tbi ]
The output created from a scatter subworkflow (contains a BED file and scatter_count).
The BED file isn’t actually used in the pipeline so can remain empty if you manually set this input channel
Structure: [ meta, bed, scatter_count ]
OPTIONAL:
The string of the common meta to use as the new ‘id’.
Please make sure all VCFs that need to be concatenated have the same value in the
the meta field specified. (and that only the ID is different between these files)