Description Usage Arguments Value Author(s) Examples
This function extracts the symbolic formulas for the conditional genotype probabilities from the uppermost level of the (sub)tree.
1 | extractProbs(F)
|
F |
A sub-tree in the format generated by function
|
A character vector with the symbolic formulas. For three-marker
genotypes, symbol x
is the recombination frequency between
markers 1 and 2 and y
that between markers 2 and 3. For
two-marker genotypes, symbol z
is the recombination frequency
between markers 1 and 2. The names of the elements indicate the
allelic configuration of the two gametes comprising the genotype as
gamete1-gamete2
(e.g., "AAB-AAA"
). The elements sum to
1.
Frank Technow
1 2 3 4 5 6 | probs.2M <- extractProbs(genSubtree.2M("BA","AA"))
probs.3M <- extractProbs(genSubtree.3M("BAA","AAB"))
## must sum to 1
stopifnot(all.equal(evalProb(probs.2M, z = 0.044),1))
stopifnot(all.equal(evalProb(probs.3M, x = 0.123, y = 0.344),1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.