View source: R/functions_pool.R
GetGenotypes | R Documentation |
This function applies the hap2geno
function to all entries of a
list. Each entry of that list is a different locus simulated with
scrm::scrm()
. Thus, this function converts the haplotypes of all simulated
loci into genotypes.
GetGenotypes(haplotypes, nDip)
haplotypes |
a list of haplotypes obtained from the simulations done
with |
nDip |
an integer representing the total number of diploid individuals to simulate. Note that this is the total number of diploid individuals and not the number of individuals per population. |
a list of genotypes. Each entry of the list is a matrix corresponding to a different locus. locus. At each matrix, each column is a different site and each row is a different genotype
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.