haplofreqs: Haplotype frequencies

Description Usage Arguments Value Author(s) References Examples

Description

Compute haplotype frequencies

Usage

1
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

Value

A vector of haplotype frequencies

Author(s)

Giovanni Montana

References

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

Examples

1
2
data(ACEdata)
freqs <- haplofreqs(ACEdata, 17, 22)

hapsim documentation built on May 1, 2019, 9:11 p.m.

Related to haplofreqs in hapsim...