Convert genos loci into presance absence matrices
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).
genos2mat(mat, ip, na)
mat |
A template matrix |
ip |
A character vector of alleles (e.g. |
na |
An NA replacement template |
Kevin Keenan
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.