Description Usage Arguments Value Examples
View source: R/rlib_simulation_util.R
Given MAF range and sample size, generate dosage genotype (0, 1, 2) for one site.
1 | create_genotype(maf, nsample, nreplicate)
|
maf |
MAF range, c(maf_low, maf_high) |
nsample |
number of individual to simulate |
nreplicate |
number of replicates to simulation |
a list of length nreplicate where each element contains a data.frame of simulation genotype (for each haplotype) along with allele frequency.
1 2 3 4 5 | create_genotype(
maf = c(0.05, 0.3),
nsample = 300,
nreplicate = 1000
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.