gsegmat_symb: Symbolic representation of the segregation probability matrix

View source: R/seg.R

gsegmat_symbR Documentation

Symbolic representation of the segregation probability matrix

Description

Two alleles are identical-by-double-reduction (IBDR) if they originate from the same (by origin) allele in the parent. We let "a" be the probability of zero IBDR alleles, "b" be the probability of one IBDR pair, "c" be the probability of two IBDR pairs, etc...

Usage

gsegmat_symb(ploidy, out = c("str", "exp"))

Arguments

ploidy

The ploidy of the species

out

Should we return a character matrix ("str") or an expression matrix ("exp")?

Value

A character or expression matrix containing the mathematical form for the segregation matrix. Element (i, j) is the probability a parent with dosage i-1 produces a gamete with dosage j-1.

Author(s)

David Gerard

See Also

gsegmat() for numerical expressions.

Examples

gsegmat_symb(4)
gsegmat_symb(6)
gsegmat_symb(8)

hwep documentation built on May 31, 2023, 9:06 p.m.