allelefreqs function

Estimates allele frequencies

Estimates allele frequencies

Estimates allele frequencies from a binary matrix

allelefreqs(dat)

Arguments

  • dat: A binary matrix, rows are haplotypes and columns are binary markers

Returns

A list containing: - freqs: Vector of allele "0" frequencies

  • all.polym: If TRUE, all loci are polymorphic

  • non.polym: Vector of non-polymorphic loci, if any

References

Montana, G. HapSim: a simulation tool for generating haplotype data with pre-specified allele frequencies and LD coefficients. 2005.

Author(s)

Giovanni Montana

Examples

data(ACEdata) x <- allelefreqs(ACEdata) hist(x$freqs)
  • Maintainer: Apostolos Dimitromanolakis
  • License: GPL (>= 2)
  • Last published: 2017-06-07

Useful links