genotype.index: Genotype indices

Description Usage Arguments Value Author(s) Examples

View source: R/genotype.index.R

Description

Functions giving genotype indices as a function of the number of alleles

Usage

1
2

Arguments

l

Number of alleles

List_gene

Vector giving the number of alleles at each locus

Value

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.

Author(s)

Marco Andrello

Examples

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

MarcoAndrello/MetaPopGen_0.0.8 documentation built on May 25, 2019, 12:23 p.m.