Combine multiple VCF/BCF files into a single multi-sample dataset
BCFTOOLS MERGEbcftools merge combines multiple VCF/BCF files into a single multi-sample dataset, aligning variants across samples into one unified file.
.vcf, .vcf.gz).bcf).vcf.gz).bcf)bcftools merge sample1.vcf.gz sample2.vcf.gz -Oz -o merged.vcf.gz
bcftools merge --force-samples file1.vcf.gz file2.vcf.gz -Oz -o merged.vcf.gz
bcftools merge -l vcf_list.txt -Oz -o cohort.vcf.gz
--force-samples if sample names overlap../..