allelefreqs {hapsim} | R Documentation |
Estimates allele frequencies from a binary matrix
allelefreqs(dat)
dat |
A binary matrix, rows are haplotypes and columns are binary markers |
A list containing:
freqs |
Vector of allele "0" frequencies |
all.polym |
If TRUE, all loci are polymorphic |
non.polym |
Vector of non-polymorphic loci, if any |
Giovanni Montana
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)