R-Plot-Snps-Sliding Window Or Circular Plot
1
3
Entering edit mode
12.2 years ago
jackuser1979 ▴ 890

I have VCF file with 20K SNPs predicted over 20K contigs. I have calculated SNPs, heterozygous, homozygous from VCF file

From VCF file, I have created file which as

Contig length  No.of SNPs  No.of het  No.of Homo
     500               23            3        0
     800            12            0        1
    1037            223           5        0
   33876            26            0        2

I would like to plot SNPs over contigs either in sliding window or circular visualization or any other easy visualization plot. Did anybody did plotting SNPs for contigs, please share or recommend your good visualization plot. Below shown some example of plot.

enter image description here

enter image description here

r snp vcf • 8.9k views
ADD COMMENT
0
Entering edit mode

Off topic comment: How about Circos?

ADD REPLY
0
Entering edit mode

I would like to do in R package. I never tried circos. Did it support VCF format?

ADD REPLY
2
Entering edit mode

Circos uses its own format for data, which is tightly tied to its presentation. You would need to write a script to convert the VCF file to the format the Circos understands, along with presentation settings for subcategories of your input data.

ADD REPLY
1
Entering edit mode
12.2 years ago

Both comments are spot on. Circos and R are some of your best options. For a genomic sliding window in [R] you could use my C function.

https://github.com/jewmanchue/ZevRTricks

ADD COMMENT

Login before adding your answer.

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