genotypeCoding         package:GeneticsBase         R Documentation

_G_e_t _g_e_n_o_t_y_p_e _c_o_d_i_n_g

_D_e_s_c_r_i_p_t_i_o_n:

     Get genotype coding.

_U_s_a_g_e:

     genotypeCoding(geneSetObj, method = "A")
     genotypeCoding.default(pedObj, method = "A")

_A_r_g_u_m_e_n_t_s:

geneSetObj: a geneSet object

  pedObj: a pedigreee object

  method: genotype coding method. The default is additive coding ('A').
          The other two available coding methods are recessive coding
          ('R') and dominant coding ('D'), respectively.

_V_a_l_u_e:

     a matrix with 'nSubjects' rows and 'nMarkers' columns. Each column
     contains coded genotype.

_A_u_t_h_o_r(_s):

     Gregory Warnes <warnes@bst.rochester.edu> Ross Lazarus
     <ross.lazarus@channing.harvard.edu> Weiliang Qiu
     <stwxq@channing.harvard.edu>

_E_x_a_m_p_l_e_s:

       data(CAMP)
       res<-genotypeCoding(CAMP, method="A")
       print(res[1:10,])

