Description Usage Arguments Details Value Note Author(s) References Examples
Estimating pairwise Shannon differentiation (Delta D)
1 | pwDeltaD(x, para)
|
x |
Input file, data matrix or data frame |
para |
Indicating whether using parallel process |
Calculating pairwise Shannon differentiation, Delta D (Gaggiotti, O. E.,et al, 2018).
PairwiseDeltaD |
Pairwise Delta D |
Note that for windows system, the parallel doesn't work for multiple cores.In that case, users should set para=FALSE.
qinxinghu@gmail.com
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, 11(7), 1176-1193.
1 2 3 4 5 6 7 8 9 10 | ### Users can test the example in their own computer,
##as this is pairwise differentiation, using parallel
# will save more time
#f <- system.file('extdata',package='HierDpart')
#infile <- file.path(f, "Island.gen")
#library(adegenet)
#Islandfile=read.genepop(infile,ncode=3)
#Islandfreq=tab(Islandfile,freq=TRUE)
#IslandpwD=pwDeltaD(Islandfreq,para=FALSE)
#print(IslandpwD)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.