allelefreqs {hapsim}R Documentation

Estimates allele frequencies

Description

Estimates allele frequencies from a binary matrix

Usage

allelefreqs(dat)

Arguments

dat

A binary matrix, rows are haplotypes and columns are binary markers

Value

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

Author(s)

Giovanni Montana

References

Montana, G. HapSim: a simulation tool for generating haplotype data with pre-specified allele frequencies and LD coefficients. 2005.

Examples


data(ACEdata)
x <- allelefreqs(ACEdata)
hist(x$freqs)


[Package hapsim version 0.31 Index]