vcf_gather_bcftools
Concatenate several VCF files using bcftools concat. An additional option can be given to sort the concatenated VCF.
Description
Concatenate several VCF files using bcftools concat. An additional option can be given to sort the concatenated VCF.
Input
VCF files and their indices that should be concatenated, as well as the
expected number of VCFs per group. The meta map must contain at least a
common field for each VCF that needs to be merged,
e.g. [ id:‘test.001’, common_meta:‘test’ ]
Structure: [ val(meta), path(vcf), path(tbi), val(count) ]
OPTIONAL:
A string array of the common meta keys to use to group the vcfs.
Please make sure all VCFs that need to be concatenated have the same value in the
the meta fields specified - the subworkflow will error if a required key is missing from a meta map.
