I want to identify private and shared polymorphisms between two .vcf files (or multi-sample vcf) using VCFtools. Any suggestions would be great. Thanks.
I want to identify private and shared polymorphisms between two .vcf files (or multi-sample vcf) using VCFtools. Any suggestions would be great. Thanks.
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.
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.
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Could you please provide a simple example using vcf-contrast or vcf-isec to get me started? Thanks.
There are examples with explanations in the link. Do you have a specific question?
I see that now :). I will try and report back if I have any issues. Thanks again...