Compare 2 VCF files A & B and return TRUE for every A variant in B, FALSE otherwise
0
0
Entering edit mode
3.0 years ago
felixm ▴ 40

Hello,

My problem is I think simple.

I have 2 VCF files: A.vcf and B.vcf

A.vcf has 300,000 variants.

B.vcf has 3,000,000 variants.

I would like to compare A.vcf and B.vcf and return a boolean (TRUE/FALSE, 1/0) vector of length 300,000.

The vector should have TRUE if the entry of A is also in B. FALSE otherwise.

How can I achieve this please?

Best regards,

Felix

compare vcf • 578 views
ADD COMMENT
0
Entering edit mode

have a look at bcftools isec

ADD REPLY

Login before adding your answer.

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