FormatGenotypes           package:Geneland           R Documentation

_F_o_r_m_a_t_t_i_n_g _f_i_l_e _o_f _g_e_n_o_t_y_p_e _d_a_t_a.

_D_e_s_c_r_i_p_t_i_o_n:

     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 codes as consecutive integers. If a locus  has 7 alleles
     they will be coded as 1,2,...7. Since version 1.0.1, this function
     does not have to be called by users. It is called through
     mcmcFmodel.

_U_s_a_g_e:

     FormatGenotypes(genotypes)

_A_r_g_u_m_e_n_t_s:

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

_V_a_l_u_e:

     A list with elements:  

genotypes: a  matrix with one line per individual and two columns per
          locus with alleles coded by integers

allele.numbers: a vector giving the number of possible alleles per
          locus

_A_u_t_h_o_r(_s):

     Gilles Guillot

