haplofreqs {hapsim} | R Documentation |
Compute haplotype frequencies
haplofreqs(dat, firstl, lastl)
dat |
A binary matrix, rows are haplotypes and columns are binary markers |
firstl |
Position of the first locus |
lastl |
Position of the last locus |
A vector of haplotype frequencies
Giovanni Montana
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)