FormatGenotypes {Geneland}R Documentation

Formatting file of genotype data.

Description

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 acodes as consecutive integer. If allele j has 7 alleles they will be coded as 1,2,...7.

Usage

FormatGenotypes(genotypes)

Arguments

genotypes A matrix with one line per individual and two columns per locus, with alleles coded by integers

Value

A list with elements :

genotypes
allele.numbers

: a vector giving the number of possible alleles per locus

Author(s)

Gilles Guillot


[Package Geneland version 0.6 Index]