powered by
Estimates allele frequencies from a binary matrix
allelefreqs(dat)
A binary matrix, rows are haplotypes and columns are binary markers
A list containing:
Vector of allele "0" frequencies
If TRUE, all loci are polymorphic
Vector of non-polymorphic loci, if any
Montana, G. HapSim: a simulation tool for generating haplotype data with pre-specified allele frequencies and LD coefficients. 2005.
data(ACEdata) x <- allelefreqs(ACEdata) hist(x$freqs)
Run the code above in your browser using DataLab