get_q_array: Derive the probabilities of an offspring's genotype given its...

Description Usage Arguments Value Author(s)

View source: R/updog.R

Description

Derive the probabilities of an offspring's genotype given its parental genotypes for all possible combinations of parental and offspring genotypes.

Usage

1
get_q_array(ploidy)

Arguments

ploidy

A positive integer. The ploidy of the species.

Value

An three-way array of proportions. The (i, j, k)th element is the probability of an offspring having k - 1 reference alleles given that parent 1 has i - 1 refrerence alleles and parent 2 has j - 1 reference alleles. Each dimension of the array is ploidy + 1. In the dimension names, "A" stands for the reference allele and "a" stands for any other allele.

Author(s)

David Gerard


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