Package: hwep 2.0.3

hwep: Hardy-Weinberg Equilibrium in Polyploids

Inference concerning equilibrium and random mating in autopolyploids. Methods are available to test for equilibrium and random mating at any even ploidy level (>2) in the presence of double reduction at biallelic loci. For autopolyploid populations in equilibrium, methods are available to estimate the degree of double reduction. We also provide functions to calculate genotype frequencies at equilibrium, or after one or several rounds of random mating, given rates of double reduction. The main function is hwefit(). This material is based upon work supported by the National Science Foundation under Grant No. 2132247. The opinions, findings, and conclusions or recommendations expressed are those of the author and do not necessarily reflect the views of the National Science Foundation. For details of these methods, see Gerard (2023a) <doi:10.1111/biom.13722> and Gerard (2023b) <doi:10.1111/1755-0998.13856>.

Authors:David Gerard [aut, cre], NSF DBI 2132247 [fnd]

hwep_2.0.3.tar.gz
hwep_2.0.3.zip(r-4.5)hwep_2.0.3.zip(r-4.4)hwep_2.0.3.zip(r-4.3)
hwep_2.0.3.tgz(r-4.4-x86_64)hwep_2.0.3.tgz(r-4.4-arm64)hwep_2.0.3.tgz(r-4.3-x86_64)hwep_2.0.3.tgz(r-4.3-arm64)
hwep_2.0.3.tar.gz(r-4.5-noble)hwep_2.0.3.tar.gz(r-4.4-noble)
hwep.pdf |hwep.html
hwep/json (API)
NEWS

# Install 'hwep' in R:
install.packages('hwep', repos = c('https://dcgerard.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/dcgerard/hwep/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

4.72 score 3 stars 35 scripts 260 downloads 27 exports 78 dependencies

Last updated 1 years agofrom:01dc85743c. Checks:OK: 1 NOTE: 8. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 26 2024
R-4.5-win-x86_64NOTESep 26 2024
R-4.5-linux-x86_64NOTESep 26 2024
R-4.4-win-x86_64NOTESep 26 2024
R-4.4-mac-x86_64NOTESep 26 2024
R-4.4-mac-aarch64NOTESep 26 2024
R-4.3-win-x86_64NOTESep 26 2024
R-4.3-mac-x86_64NOTESep 26 2024
R-4.3-mac-aarch64NOTESep 26 2024

Exports:all_multinomddirmultdgametedrboundsf1drfreqnextgibbs_glgibbs_gl_altgibbs_knowngsegmatgsegmat_symbhweboothwefithwefreqhwelikehwenodrhweustatmenbayesglp_from_alphaqqpvaluermbayesrmbayesglrmlikesimglts_bandszsegarrayzygdist

Dependencies:abindassertthatbackportsBHbridgesamplingBrobdingnagcallrcheckmateclicodacodetoolscolorspacedescdigestdistributionaldoFuturedoRNGfansifarverforeachfuturefuture.applygenericsggplot2globalsgluegridExtragtableinlineisobanditeratorslabelinglatticelifecyclelistenvloomagrittrMASSMatrixmatrixStatsmgcvmunsellmvtnormnlmenumDerivparallellypillarpkgbuildpkgconfigplyrposteriorpracmaprocessxpsQuickJSRR6RColorBrewerRcppRcppArmadilloRcppEigenRcppParallelreshape2rlangrngtoolsrstanrstantoolsscalesStanHeadersstringistringrtensorAtensrtibbleupdogutf8vctrsviridisLitewithr

Introduction to the hwep package

Rendered fromintroduction.Rmdusingknitr::rmarkdownon Sep 26 2024.

Last update: 2023-03-15
Started: 2021-03-10

Readme and manuals

Help Manual

Help pageTopics
Hardy-Weinberg Equilibrium in Polyploidshwep-package hwep
Get every possible non-negative tuple with of a given sum.all_multinom
PMF of Dirichlet-multinomial distributionddirmult
Gamete dosage probabilitydgamete
Upper bounds on rates of double reductiondrbounds
Estimate Double Reduction in F1 Populationsf1dr
Update genotype frequencies after one generationfreqnext
Gibbs sampler under random mating using genotype log-likelihoods.gibbs_gl
Gibbs sampler under the alternative of non-random mating using genotype log-likelihoods.gibbs_gl_alt
Gibbs sampler under random mating with known genotypes.gibbs_known
Segregation probabilities of gametesgsegmat
Symbolic representation of the segregation probability matrixgsegmat_symb
Bootstrap procedure to test for equilibriumhweboot
Equilibrium and random mating estimation and testing for many loci.hwefit
Generate HWE genotype frequencieshwefreq
Maximum likelihood approach for equilibrium testing and double reduction estimation.hwelike
Test for HWE in autopolyploids under the assumption of no double reductionhwenodr
U-process minimizer approach to equilibrium testing and double reduction estimationhweustat
Bayes test for F1/S1 genotype frequencies using genotype likelihoodsmenbayesgl
Obtain gamete frequencies at equilibrium given rates of double reduction.p_from_alpha
QQ-plot for p-valuesqqpvalue
Bayes test for random mating with known genotypesrmbayes
Bayes test for random mating using genotype log-likelihoodsrmbayesgl
Likelihood inference for random matingrmlike
Simulator for genotype likelihoods.simgl
Get simultaneous confidence bands for a uniform QQ-plotts_bands
Zygote segregation distributions.zsegarray
Zygote dosage probabilities.zygdist