How to merge VCF from disjoint sample lists
1
0
Entering edit mode
2.6 years ago
MAPK2 ▴ 50

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 • 765 views
ADD COMMENT
3
Entering edit mode
2.6 years ago
Ram 44k

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

ADD COMMENT
0
Entering edit mode

Thanks. This is what I need.

ADD REPLY
0
Entering edit mode

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

ADD REPLY

Login before adding your answer.

Traffic: 1790 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6