Description Usage Arguments Value Author(s)
Takes genotype data as a matrix with one line per individual and two columns per locus, with alleles coded by integers (number of replications for micro-satellites data). Build a new matrix with alleles codes as consecutive integers. If a locus has 7 alleles they will be coded as 1,2,...7. Since version 1.0.1, this function does not have to be called by users. It is called through MCMC.
1 | FormatGenotypes(genotypes,ploidy)
|
genotypes |
A matrix with one line per individual and two columns per locus, with alleles coded by integers |
ploidy |
1 or 2 |
A list with elements:
genotypes |
a matrix with one line per individual and one or two columns per locus with alleles coded by integers |
allele.numbers |
a vector giving the number of possible alleles per locus |
Gilles Guillot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.