haplofreqs function

Haplotype frequencies

Haplotype frequencies

Compute haplotype frequencies

haplofreqs(dat, firstl, lastl)

Arguments

  • dat: A binary matrix, rows are haplotypes and columns are binary markers
  • firstl: Position of the first locus
  • lastl: Position of the last locus

Returns

A vector of haplotype frequencies

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) freqs <- haplofreqs(ACEdata, 17, 22)
  • Maintainer: Apostolos Dimitromanolakis
  • License: GPL (>= 2)
  • Last published: 2017-06-07

Useful links