Description Usage Arguments Value Author(s) References
Generates alleles data for pre-spcified alleles frequencies. The covariance matrix required to achieved the desired LD is computed and used to produce a random vector from a bivariate normal distribution.
1 | sim.LDsnps(num.obs, maf.snp1 = 0.1, maf.snp2 = 0.1, r = 0.7, cov.mat.req)
|
num.obs |
Number of observations to simulate |
maf.snp1 |
Minor allele frequency of the first snp |
maf.snp2 |
Minor allele frequency of the second snp |
r |
Pearson coefficient of correlation for desired level of LD |
cov.mat.req |
Covariance matrix required required to achieved the desired LD |
A dataframe of two variables where the rows represent haplotypes
Gaye A.
Montana, G. 2005, HapSim: a simulation tool for
generating haplotype data with pre-specified allele
frequencies and LD coefficients.
, Bioinformatics,
vol. 21 (23), pp.4309-4311.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.