genos2mat:
Convert genos loci into presance absence matrices
Description
A matrix for each locus is constructed with n rows and c columns, where n is the number of genotype individuals, and c is the total number of observed alleles at a locus. Individual are surveyed for alleles and assigned 0 for an absence, 0.5 for a single presence (i.e. heterozygote), and 1 for double presence (i.e. homozygote).
Usage
genos2mat(mat, ip, na)
Arguments
mat
A template matrix
ip
A character vector of alleles (e.g. genos[,i,j]) for all genotyped individual.