permuteAllelesInHaplosNum | R Documentation |
Permute alleles in haplotypes. In the scrm package, haplotypes are made of 0's and 1's, the former indicating ancestral alleles and the latter derived alleles. However, when one wants to simulate realistic data, one often converts haplotypes into genotypes encoded as allele dose. At this step, one may not want to always count the number of copies of the derived allele. It hence is useful to permute alleles beforehand.
permuteAllelesInHaplosNum(haplos, snps.toperm, verbose = 0)
haplos |
list of haplotypes returned by |
snps.toperm |
vector of SNP identifiers corresponding to the SNPs to which allele permutation will be performed (column names of |
verbose |
verbosity level (0/1) |
list of haplotypes
Timothee Flutre
simulCoalescent
, segSites2allDoses
, haplosAlleles2num
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.