View source: R/sim_generate_donor_hap.R
sim_generate_donor_hap | R Documentation |
num_snps
with only heterozygous sitesThis function generates the diploid donor haplotypes by first generating a single haplotype
using a uniform distribution to pick the reference (a 0) or the alternate (a 1) allele
for each position for num_snps
positions.
Then for the second donor haplotype we assume that each of these SNP positions are heterozygous
and just invert the bits of the first haplotypes to make this so.
sim_generate_donor_hap(num_snps)
num_snps |
an integer, the number of SNP positions for which we want to generate data |
donor_haps a data frame with the truth phased diploid donor haplotypes with two columns donor1
and donor2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.