get_prob_geno: Rcpp function to get genotype probabilities assuming either...

Description Usage Arguments Author(s)

View source: R/RcppExports.R

Description

Rcpp function to get genotype probabilities assuming either F1 population given parental genotypes, the allele frequencies assuming Hardy-Weinberg equilibrium, or just a uniform distribution.

Usage

1
get_prob_geno(ploidy, model, p1geno, p2geno, allele_freq)

Arguments

ploidy

The ploidy of the species.

model

Do we assume the genotypes are distributed from an F1 population ("f1"), an S1 population ("s1"), according to Hardy-Weinberg (hw), or uniformly ("uniform")?

p1geno

The first parental genotype if model = "f1".

p2geno

The second parental genotype if model = "f1".

allele_freq

The allele-frequency if model = "hw".

Author(s)

David Gerard


dcgerard/updogAlpha documentation built on May 14, 2019, 3:10 a.m.