COR_DeltaDd | R Documentation |
This function calculates new pairwise genetic differentiation, Delta D (Gaggiotti OE, et al, 2018), as well as the correlation between genetic differentiation (Delta D) and geographic distance.
COR_DeltaDd(f, d, ncode, nrepet)
f |
A genetic data files, the format is genepop format. |
d |
Pairwise geographic distance for calculating correlations. If no actual geographic distance, d=NULL. If TRUE, the geographic distance should be a matrix that corresponds to the pairwise genetic differentiation matrix. |
ncode |
The coding type of your genetic data. |
nrepet |
Number of permutations. |
This function returns to lists of pairwise Delta D matrix, and a matrix of theorical geographical distance if d is NULL, as well as the correlation coefficient.
PairwiseDeltaD |
The pairwise genetic differentiation matrix (Delta D). |
Dgeo |
The pairwise geographical distance matrix. |
CorDeltaDd |
Pearson correlation coefficient between genetic differentiation (Delta D) and geographic distance. |
qinxinghu@gmail.com
Qin, X.,Gaggiotti, O. E. (2022). Information-based summary statistics for spatial genetic structure inference. Molecular Ecology Resources, 22(6), 2183-2195.
Gaggiotti, O. E., Chao, A., Peres-Neto, P., Chiu, C. H., Edwards, C., Fortin, M. J., ... & Selkoe, K. A. (2018). Diversity from genes to ecosystems: A unifying framework to study variation across biological metrics and scales. Evolutionary Applications.
COR_Fst
# example genepop file
f1 <- function(f) system.file("extdata", f,package="HierDpart")
d1=COR_DeltaDd(f1("Island.gen"),d=NULL,ncode=3,nrepet=999)
print(d1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.