inner merge vcfs in one step?
1
0
Entering edit mode
2.5 years ago
curious ▴ 750

I have 3 vcfs with single sample each and different variants. I want one vcf with 3 samples and only variants that are present in all 3 vcfs.

I think I can do this a long way with

bcftools isec --nfiles 3 a.vcf b.vcf c.vcf

then grep out the list of variants present in all 3, do a filter step followed by standard bcftools merge

Is there any way to do this all in one step though?

bcftools • 757 views
ADD COMMENT
1
Entering edit mode
2.5 years ago
bcftools merge  -O u --file-list in.list | bcftools view -i 'COUNT(GT="hom")=0 && COUNT(GT="mis")=0' 
ADD COMMENT

Login before adding your answer.

Traffic: 1474 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