powered by
Compute haplotype frequencies
haplofreqs(dat, firstl, lastl)
A binary matrix, rows are haplotypes and columns are binary markers
Position of the first locus
Position of the last locus
A vector of haplotype frequencies
Montana, G. HapSim: a simulation tool for generating haplotype data with pre-specified allele frequencies and LD coefficients. 2005.
data(ACEdata) freqs <- haplofreqs(ACEdata, 17, 22)
Run the code above in your browser using DataLab