Identifying private and shared SNPs using VCFtools
2
1
Entering edit mode
7.9 years ago
outlier95 ▴ 30

I want to identify private and shared polymorphisms between two .vcf files (or multi-sample vcf) using VCFtools. Any suggestions would be great. Thanks.

vcftools snps • 6.9k views
ADD COMMENT
3
Entering edit mode
5.7 years ago

update: bcftools isec does exactly these kind of comparisons, and faster. this quick example

bcftools isec -p isec_results file1 file2

generates in a isec_results folder vcf files with private variants from file1, private variants from file2, file1 variants shared with file2, and file2 variants shared with file1. these 2 last ones allow keeping file1 or file2 annotations respectively.

ADD COMMENT
1
Entering edit mode
7.9 years ago
Ram 43k

You could use vcf-contrast and vcf-isec to find unique and shared variants. The former works on a single VCF file, the latter with multiple VCF files. I'd play around with them until a better solution can be found.

ADD COMMENT
0
Entering edit mode

Could you please provide a simple example using vcf-contrast or vcf-isec to get me started? Thanks.

ADD REPLY
0
Entering edit mode

There are examples with explanations in the link. Do you have a specific question?

ADD REPLY
0
Entering edit mode

I see that now :). I will try and report back if I have any issues. Thanks again...

ADD REPLY

Login before adding your answer.

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