How to find variants which are not present in second file
1
0
Entering edit mode
3.0 years ago

Hey guys,

I have two VCF files, Now I want variants from file1 that are NOT present in file2. How can I do this?

newbieinbioinfo

vcf • 638 views
ADD COMMENT
0
Entering edit mode
3.0 years ago
bcftools isec   -n~10  f1.vcf.gz f2.vcf.gz
ADD COMMENT
0
Entering edit mode

Thanks for the help! Is there a way I can get output in vcf file containing all fields like chr position ID ref alt filter and INFO column. The above command only gives chr position ref and alt.

ADD REPLY
1
Entering edit mode

bcftools query

ADD REPLY

Login before adding your answer.

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