Learn R Programming

selfingTree (version 0.2)

getTargets: Obtain all possible genotypes that match a certain target configuration

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

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, heterozygousi

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

Examples

Run this code
getTargets("AHB")

Run the code above in your browser using DataLab