Learn R Programming

hwep (version 2.0.3)

gsegmat_symb: 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"))

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.

Arguments

ploidy

The ploidy of the species

out

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

Author

David Gerard

See Also

gsegmat() for numerical expressions.

Examples

Run this code
gsegmat_symb(4)
gsegmat_symb(6)
gsegmat_symb(8)

Run the code above in your browser using DataLab