View source: R/functions_pool.R
Ifreqs | R Documentation |
Computes alternative allele frequencies from genotypes by dividing the total number of alternative alleles by the total number of gene copies.
Ifreqs(nDip, genotypes)
nDip |
an integer representing the total number of diploid individuals
to simulate. Note that |
genotypes |
a list of simulated genotypes, where each entry is a matrix corresponding to a different locus. At each matrix, each column is a different SNP and each row is a different individual. |
a list of allele frequencies. Each entry of the list corresponds to a different locus.
genotypes <- run_scrm(nDip = 10, nloci = 10)
Ifreqs(nDip = 10, genotypes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.