tajimasD: Tajima's D

View source: R/tajimasD.R

tajimasDR Documentation

Tajima's D

Description

Calculate Tajima's D for a set of sequences to test for selection.

Usage

tajimasD(x, CI = 0.95)

Arguments

x

set of DNA sequences or a haploid gtypes object with sequences.

CI

desired central confidence interval.

Value

A named vector with the estimate for D and the p.value that it is different from 0.

Author(s)

Eric Archer eric.archer@noaa.gov

References

Tajima, F. 1989. Statistical method for testing the neutral mutation hypothesis by DNA polymorphism. Genetics 123:585-595.

Examples

data(dolph.seqs)

tajimasD(dolph.seqs)


EricArcher/strataG documentation built on Feb. 12, 2023, 4:11 a.m.