Learn R Programming

hapsim (version 0.31)

Haplotype Data Simulation

Description

Package for haplotype-based genotype simulations. Haplotypes are generated such that their allele frequencies and linkage disequilibrium coefficients match those estimated from an input data set.

Copy Link

Version

Install

install.packages('hapsim')

Monthly Downloads

198

Version

0.31

License

GPL (>= 2)

Maintainer

Apostolos Dimitromanolakis

Last Published

June 7th, 2017

Functions in hapsim (0.31)

checkpd

Checks that a covariance matrix is positive definite
cor2dprime

Correlations to D' coefficients conversion
mergemats

Merges two LD matrices
mse

Mean Square Error
haplofreqs

Haplotype frequencies
haplosim

Haplotype data simulator
ldplot

LD plot
makepd

Makes a matrix positive definite
cortocov

Correlation to covariance conversion
covtocor

Covariance to correlation conversion
divlocus

Diversity score
haplodata

Haplotype object creator
ACEdata

ACE data set
allelefreqs

Estimates allele frequencies
sumsqscale

Scales a matrix