Calculate Patterson's D-statistic
These functions calculate Patterson's D-statistic to compare the frequencies of discordant SNP genealogies. These tests assume equal substitution rates and unlinked loci, D-statistics significantly different from 0 suggest that introgression has occurred.
1 2 3
This is an alignment in fasta format. Sequences should be in the order: P1, P2, P3, Outgroup.
This indicates whether or if to test for significance. Options are "B" bootstrap, "J" jackknife, or "N" none.
The number of sites to be dropped in the jackknife approach
Number of replicates to be used in estimating variance
The functions CalcD and CalcPopD are implementations of the algorithm described in Durand et al. 2011. Significance of the D-stat can be calculated either through bootstrapping or jackknifing. Bootstrapping is appropriate for datasets where SNPs are unlinked for instance unmapped RADSeq data. Jackknifing is the appropriate approach when SNPs are potentially in linkage for instance gene alignments or genome alignments.
Returns the number of each type of site, Z scores and p-values
Durand, Eric Y., et al. Testing for ancient admixture between closely related populations. Molecular biology and evolution 28.8 (2011): 2239-2252.
Eaton, D. A. R., and R. H. Ree. 2013. Inferring phylogeny and introgression using RADseq data: An example from flowering plants (Pedicularis: Orobanchaceae). Syst. Biol. 62:689-706
1 2 3 4
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.