haplodata: Haplotype object creator

Description Usage Arguments Value Author(s) References See Also Examples

Description

Creates an haplotype data object needed for simulating haplotypes with haplosim. This object also contains some summary statistics about the real data.

Usage

1
haplodata(dat)

Arguments

dat

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

Value

A list containing:

freqs

Allele frequencies

cor

Correlation matrix (LD coefficients)

div

Locus-specific diversity measure

cov

Covariance matrix for the normal distribution

Author(s)

Giovanni Montana

References

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

See Also

See also haplosim

Examples

1
2
3
4
5
6
7
data(ACEdata)

# creates the haplotype object
x <- haplodata(ACEdata) 

# simulates 100 random haplotypes
y <- haplosim(100, x) 

hapsim documentation built on May 1, 2019, 9:11 p.m.

Related to haplodata in hapsim...