Obtain all possible genotypes that match a certain target configuration

Share:

Description

This convenience function finds all genotypes that match a certain target configuration. It is used only if the target configuration contains heterozygous states, but order (e.g., A/B or B/A) does not matter.

Usage

1
getTargets(target.geno)

Arguments

target.geno

Three (three-marker genotypes) or two (two-marker genotypes) character string specifying the target configuration. Homozygousity for parent A allele is indicated as A, homozygousity for parent B allele as B, heterozygousity (A/B or B/A) as H.

Value

A character vector with all genotypes matching the target configuration. The format complies with the output format of branchProbabilities (gamete1-gamete2, e.g., "AAB-AAA")

Author(s)

Frank Technow

Examples

1
getTargets("AHB")