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

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)

Author(s)

Arthur Georges (Post to https://groups.google.com/d/forum/dartr)


dartR

Importing and Analysing SNP and Silicodart Data Generated by Genome-Wide Restriction Fragment Analysis

v1.9.6
GPL-2
Authors
Bernd Gruber [aut, cre], Arthur Georges [aut], Jose L. Mijangos [aut], Peter J. Unmack [ctb], Oliver Berry [ctb], Lindsay V. Clark [ctb], Floriaan Devloo-Delva [ctb]
Initial release
2021-04-29

We don't support your browser anymore

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