Learn R Programming

noia (version 0.97.3)

Genotype names: Names of Genotypes

Description

genNames provides the names of all possible genotypes in the order required by the NOIA model (Alvarez-Castro and Carlborg 2007). The codes for the genotypes are stored in the vector genotypesNames.

Usage

genNames(nloc = 2)

Arguments

nloc

Number of loci

Author

Arnaud Le Rouzic

Details

The names of the genotypes are stored in the vector genotypesNames. By default, they are "1", "2", and "3", the heterozygotes being "2". The genotypes at different loci are then put together, such as "123" for 3 loci.

References

Alvarez-Castro JM, Carlborg O. (2007). A unified model for functional and statistical epistasis and its application in quantitative trait loci analysis. Genetics 176(2):1151-1167.

Le Rouzic A, Alvarez-Castro JM. (2008). Estimation of genetic effects and genotype-phenotype maps. Evolutionary Bioinformatics, 4.

Examples

Run this code
    genNames(3)

Run the code above in your browser using DataLab