Create a Venn diagram for 5 VCF Files (each VCF file is a population)
0
0
Entering edit mode
5.4 years ago

Hi All Dear,

I have 5 VCF files, each of this files is for a population. So, I want to create a Venn Diagram based on SNPs.

I have been able to find this script by searching.

vcf-compare sample1.flt.vcf.gz sample2.flt.vcf.gz > venn.out

So, How do I edit this script for my case?

Best Regard

SNP vcf venn • 4.0k views
ADD COMMENT
1
Entering edit mode

From each VCF subset, "chrom, pos, alt, ref" columns (bcftools), read into R (or Python). Paste those columns together, then use one of the many ready packages for Venn diagrams.

ADD REPLY
0
Entering edit mode

There is already a relevant thread in Biostars How To Create A Venn Diagram Of Sample1.Vcf, Sample2.Vcf And Sample1&2(Union).Vcf Files . Also, use upSet plots while comparing more than 3 samples together.

ADD REPLY

Login before adding your answer.

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