Description Usage Arguments Value Author(s) References Examples
Estimates allele frequencies from a binary matrix
1 | 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.
1 2 3 | data(ACEdata)
x <- allelefreqs(ACEdata)
hist(x$freqs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.