genSubtree: Generates a sub-tree

Description Usage Arguments Value Author(s) Examples

Description

These functions generate sub-trees consisting of all genotypes (and their conditional probabilities) that can result after selfing the parental genotype.

Usage

1
2
genSubtree.2M(gam1,gam2) ## two-marker genotypes
genSubtree.3M(gam1,gam2) ## three-marker genotypes

Arguments

gam1,gam2

Three (three-marker genotypes) or two (two-marker genotypes) character string with the configuration of gamete one and two of the parental genotype.

Value

A list with one element per possible genotype. Each element is itself a list with two elements. Element [[1]] holds the genotype configuration as "gam1-gam2" (e.g., "ABA-BAB"), element [[1]] the symbolic formula representing the probability of observing this genotype given the parental genotype.

Author(s)

Frank Technow

Examples

1
2
genSubtree.2M("AB","AA")
genSubtree.3M("ABA","AAA")

selfingTree documentation built on May 2, 2019, 8:17 a.m.