Is there any scripts out there that can calculate absolute divergence (dxy) between populations/species using many alignments of sequence data?
Is there any scripts out there that can calculate absolute divergence (dxy) between populations/species using many alignments of sequence data?
Hi... Back to the question above, how to calculate window-based Dxy between two populations given a set of genomewide SNP dataset using R? I am still at the early stage in R or perl.
Many thanks in advance.
I guess R would be the fastest way to do this...By the way, I eventually managed to calculate windows of 10kb nucleotide diversities (pi, π) for each population πx and πy. This may be another silly question, can I use these π values to estimate the Dxy between the two populations?
In this paper, there is a link to their supplementary material. Within, these is a genomescan_dxy.pl
.
I'm not understanding Perl enough to be able to read and interpret what is happening, but that could be one way of doing it.
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Could you give the right reference to the paper and possibly explain the terms in the equation?
The equation is described in Box 1 in a recent Molecular Ecology paper by Cruickshank and Hahn (2014). Link to the open access paper: http://onlinelibrary.wiley.com/doi/10.1111/mec.12796/pdf.
Thanks, and I should have put this in my first comment: Do you have some example dataset to play with? (In general it's good to make life easier to those willing to answer questions...)
Below are 3 example alignments
Locus1:
Locus2:
Locus3:
I've implemented PI, which is very similar to dxy. https://github.com/zeeev/popFastaaa
If more people express interest I will implement dxy.