| genSubtree {selfingTree} | R Documentation |
Generates a sub-tree
Description
These functions generate sub-trees consisting of all genotypes (and their conditional probabilities) that can result after selfing the parental genotype.
Usage
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
genSubtree.2M("AB","AA")
genSubtree.3M("ABA","AAA")
[Package selfingTree version 0.2 Index]