Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

tajima.test

Test of the Neutral Mutation Hypothesis


Description

This function tests the neutral mutation hypothesis with Tajima's D.

Usage

tajima.test(x)

Arguments

x

a set of DNA sequences (object of class "DNAbin").

Value

A list with three numeric values:

D

Tajima's D statistic.

Pval.normal

the p-value assuming that D follows a normal distribution with mean zero and variance one.

Pval.beta

the p-value assuming that D follows a beta distribution after rescaling on [0, 1] (Tajima, 1989).

Note

Alignment gaps in the sequences are ignored when calculating pairwise distances.

Author(s)

Emmanuel Paradis

References

Tajima, F. (1989) Statistical method for testing the neutral mutation hypothesis by DNA polymorphism. Genetics, 123, 595–595.

Examples

require(ape)
data(woodmouse)
tajima.test(woodmouse)

pegas

Population and Evolutionary Genetics Analysis System

v1.0
GPL (>= 2)
Authors
Emmanuel Paradis [aut, cre, cph] (<https://orcid.org/0000-0003-3092-2199>), Thibaut Jombart [aut, cph] (<https://orcid.org/0000-0003-2226-8692>), Zhian N. Kamvar [aut, cph] (<https://orcid.org/0000-0003-1458-7108>), Brian Knaus [aut, cph] (<https://orcid.org/0000-0003-1665-4343>), Klaus Schliep [aut, cph] (<https://orcid.org/0000-0003-2941-0161>), Alastair Potts [aut, cph] (<https://orcid.org/0000-0003-0919-7279>), David Winter [aut, cph] (<https://orcid.org/0000-0002-6165-0029>)
Initial release
2021-04-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.