Description Usage Arguments Value Author(s) Examples
View source: R/genotype.index.R
Functions giving genotype indices as a function of the number of alleles
1 2 | genotype.index(l)
genotype.index.multilocus(List_gene)
|
l |
Number of alleles |
List_gene |
Vector giving the number of alleles at each locus |
For genotype.index
, a square matrix whose [i,j] element gives the index of the genotype formed by the i and j alleles. For genotype.index.multilocus
, a square matrix whose [i,j] element gives the index of the multilocus genotype formed by the i and j gamete types.
Marco Andrello
1 2 3 4 5 6 7 | # Monolocus case:
# To know the index of the A5A9 genotype if there are 13 alleles:
y <- genotype.index(13)
y[5,9]
# Multilocus case:
genotype.index.multilocus(c(2,3))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.