This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to merge VCF from disjoint sample lists

Hi All, I am trying to merge VCF files from two different cohorts. Since one cohort is smaller in size, there are a different number of variants between these VCF files. Can you please suggest me the tools/commands that merge these VCF files? Note: if there are samples with no variants in one or the other cohorts, I want to have REF/REF for those samples in the merged file. Thanks!

vcf

1 answer

Have you taken a look at bcftools merge? It has an option -0 to "assume genotypes at missing sites are 0/0".

Thanks. This is what I need.

I've moved my comment to an answer. Please accept it to mark the post as solved.

Log in to answer this question.