Learn R Programming

HierDpart (version 1.5.0)

HierDjost: Hierarchical DJost

Description

This function partitions the DJost into hierarchical levels

Usage

HierDjost(x, nreg, r, ncode)

Arguments

x

Input file, genepop format

nreg

The number of aggregates

r

The number of subaggregates in each aggregates

ncode

The integer used to code an allele

Value

HierDjost_perloc

DJost per locus

HieDjost_overall

Overall DJost

pairDjostp

Pairwise DJost between subaggregates (populations)

pairDjostr

Pairwise DJost between aggregates (regions)

%% ~Describe the value returned %% If it is a LIST, use %% \item{HierDjost_perloc}{Description of 'comp1'} %% \item{comp2 }{Description of 'comp2'} %% ...

Details

This function partitions genetic differentiation, DJost, into different hierarchical levels

References

Jost, L. O. U. (2008). GST and its relatives do not measure differentiation. Molecular ecology, 17(18), 4015-4026.

Examples

Run this code
# NOT RUN {
f <- system.file('extdata',package='HierDpart')
infile <- file.path(f, "Island.gen")
HierDjost_Island=HierDjost(infile,nreg=4,r=c(7,4,2,3),ncode=3)
print(HierDjost_Island)
# }

Run the code above in your browser using DataLab