Learn R Programming

DEMEtics (version 0.8.1)

D and Dest: D and Dest - Differentiation Indices

Description

These functions calculate D and Dest values of genetic differentiation that are independent of mean heterozygosity and of the number of unique alleles per population (Jost, 2008).

Usage

D(Hs, Ht, values)
Dest(Hs, Ht, values)

Arguments

Hs
The mean heterozygosity within populations. This value can be calculated by using the function Hs that is included in this package.
Ht
The heterozygosity of the pooled populations. This value can be calculated by using the function Ht that is included in this package.
values
A vector that contains the number of individuals that were sampled from each population (i.e. the sample sizes).

Value

  • The measure of genetic differentiation, D or Dest, is returned. As the arguments Hs and Ht are values that were calculated for a single locus, also the D or Dest value is a measure of genetic differentiation for that single locus.

Details

As mentioned in Jost (2008, p. 4022), the heterozygosity measures (Hs and Ht) are transformed into nearly unbiased estimators derived by Nei & Chesser (1993).

References

Jost, L. 2008 Gst and its relatives do not measure differentiation. Molecular Ecology 17, 18, p. 4015--4026. Nei, M. and Chesser, R. 1983 Estimation of fixation indices and gene diversities. Annals of Human Genetics 47, p. 253--259

See Also

Hj, Hs, Ht, all.pops.D, all.pops.Dest, pair.pops.Dest, pair.pops.D.

Examples

Run this code
Hs <- 0.42
Ht <- 0.65
sample.sizes <- c(20,30,50) # 3 Populations with different sample sizes

D(Hs,Ht,sample.sizes)
D

Dest(Hs,Ht,sample.sizes)
Dest

Run the code above in your browser using DataLab