Learn R Programming

dartR (version 1.9.9.1)

utils.hwe: Calculates departure from Hardy-Weinberg Equilibrium. Utility script not meant for end users.

Description

Calculates the probabilities of agreement with H-W equilibrium based on observed frequencies of reference homozygotes, heterozygotes and alternate homozygotes. Uses the exact calculations contained in function utils.prob.hwe() as developed by Wigginton, JE, Cutler, DJ, and Abecasis, GR.

Usage

utils.hwe(x, prob = 0.05, verbose = NULL)

Arguments

x

-- a genlight object containting the SNP profiles for a population [Required]

prob

-- level of significance [Default 0.05]

verbose

-- verbosity: 0, silent or fatal errors; 1, begin and end; 2, progress log ; 3, progress and results summary; 5, full report [default 2]

Value

Locus, Hom_1, Het, Hom_2, N, Prob, Sig, BonSig)