SNP2Haplo               package:SimHap               R Documentation

_C_o_n_v_e_r_t _b_i_a_l_l_e_l_i_c _S_N_P _d_a_t_a _t_o _h_a_p_l_o _f_o_r_m_a_t

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

     Converts biallelic SNP data to the format required by the suite of
     haplotype inference and analysis functions

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

     SNP2Haplo(geno)

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

    geno: A data frame containing biallelic SNP data. The first column
          should contain a subject identifier. The remaining columns
          should each represent a biallelic SNP, containing two alleles
          per entry with no separator.

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

     'SNP2Haplo' returns a data frame whose first column is a subject
     identifier, and where the remaining columns represent the genotype
     data. Two columns are returned per SNP, each containing a single
     allele.

_A_u_t_h_o_r(_s):

     Pamela A. McCaskie

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

     'SNP2Geno'

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

     data(SNP.dat)
     haplo.dat <- SNP2Haplo(SNP.dat)

