snpm2mapLD              package:GGtools              R Documentation

_p_r_e_p_a_r_e _i_n_p_u_t _t_o _m_a_p_L_D _f_u_n_c_t_i_o_n _f_o_r _h_a_p_l_o_t_y_p_e _b_l_o_c_k _i_d_e_n_t_i_f_i_c_a_t_i_o_n

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

     prepare input to mapLD function for haplotype block identification

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

     snpm2mapLD(x, chrnum, runMAP=TRUE, ...)

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

       x: snp.matrix instance

  chrnum: chromosome number

  runMAP: logical indicating whether or not to run mapLD

     ...: additional arguments to mapLD

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

     sets up a data frame suitable for mapLD, and will invoke with
     appropriate arguments identifying columns for alleles and other
     identifiers if runMAP is TRUE (default).

     smtest is a small snp.matrix instance

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

     a list with element struc holding the data frame, and mapLD output
     if requested.  Note that mapLD writes an eps file to disk *sigh*.

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

     Vince Carey <stvjc@channing.harvard.edu>

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

     data(smtest)
     ss = snpm2mapLD(smtest, chrnum=20, runMAP=FALSE)
     ss
     # you could run mapLD on ss[[1]]

