main_p2: Estimate allele frequency and double reduction in tetraploids...

View source: R/dr_M1.R

main_p2R Documentation

Estimate allele frequency and double reduction in tetraploids using all genotypes.

Description

This uses all genotypes, as opposed to main_p3(), which only uses homozygosity versus heterzygosity.

Usage

main_p2(nm, oiter = 10)

Arguments

nm

A vector of genotypes. nm[[i]] is the genotype for individual i.

oiter

The number of EM iterations to run.

Value

A vector of length 2. The first element is the estimated allele frequency, the second element is the estimated double reduction parameter.

Author(s)

Libo Jiang

References

  • Jiang, Libo, Xiangyu Ren, and Rongling Wu. 2021. "Computational Characterization of Double Reduction in Autotetraploid Natural Populations." The Plant Journal 105 (6): 1703–9. doi: 10.1111/tpj.15126

Examples

nm <- sim_p(c(0.5, 0.1), n = 100)
main_p2(nm = nm)


dcgerard/phwelike documentation built on July 27, 2022, 8:07 a.m.