ungcode             package:haplo.score             R Documentation

_U_n_c_o_d_e _N_u_m_e_r_i_c _G_e_n_o_t_y_p_e _C_o_d_e_s _t_o _A_l_l_e_l_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Convert a vector with numeric codes that represents the geneotypes
     to two vectors of alleles for genotypes (alleles coded as rank
     order).

_U_s_a_g_e:

     ungcode(x)

_A_r_g_u_m_e_n_t_s:

       x: Vector of integer codes for genotypes. 

     None.

_D_e_t_a_i_l_s:

     The input vector of genotypes must have been coded by  the
     function gcode.

_V_a_l_u_e:

     A matrix, with the first column for the "first" allele, and the
     second column for the "second" allele.

_S_i_d_e _E_f_f_e_c_t_s:

_R_e_f_e_r_e_n_c_e_s:

     Zykin D., Zhivotovsky L. and Weir B,  "Exact tests for association
      between alleles at arbitrary numbers of loci" Human
     Identification: The Use of DNA Markers, 169-178, 1995.

     The algorithm by Zykin  was  not  quite  correct,  and  we needed 
     to  add  a  patch  in  the  code  (see comments in ungcode).

_S_e_e _A_l_s_o:

     gcode, allele.recode, geno.recode

_E_x_a_m_p_l_e_s:

