Haplotype frequencies
Compute haplotype frequencies
haplofreqs(dat, firstl, lastl)
dat
: A binary matrix, rows are haplotypes and columns are binary markersfirstl
: Position of the first locuslastl
: Position of the last locusA vector of haplotype frequencies
Montana, G. HapSim: a simulation tool for generating haplotype data with pre-specified allele frequencies and LD coefficients. 2005.
Giovanni Montana
data(ACEdata) freqs <- haplofreqs(ACEdata, 17, 22)
Useful links