View source: R/initialize_freqset.R
initialize_freqset | R Documentation |
Initialize bi-allele multi-locus genotype frequency from underlying allele frequencies assuming no prior linkage disequilibrium
initialize_freqset(allele_frequencies, allele_names, ploidy)
@param allele_frequencies A vector of frequencies 'f' of the focal alleles (upper-case, e.g. A) across all loci, where non-focal alleles (lower-case, e.g. a) have frequency 1-f @param allele_names A vector of designated letters associated with each locus, with upper-case denoting the focal allele and lower-case denoting the non-focal (e.g. A vs a) @param ploidy A vector of the ploidies of each locus
@return A vector of the genotype frequencies @export @examples
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.