homozygote           package:GeneticsBase           R Documentation

_F_l_a_g _o_b_s_e_r_v_a_t_i_o_n_s _w_i_t_h _s_p_e_c_i_f_i_c _a_l_l_e_l_e _p_a_t_t_e_r_n_s

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

_h_o_m_o_z_y_g_o_t_e Flag observatsions with identical alleles

_h_e_t_e_r_o_z_y_g_o_t_e Flag observations with discordant alleles

_c_a_r_r_i_e_r Flag observations containing a specified allele

_d_o_m_i_n_a_n_t Flag observations containing one or more of the  specified
     alleles.

_r_e_c_e_s_s_i_v_e Flag observations containing only the  specified alleles.

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

     homozygote(object, ...)
     homozygote.geneSet(object, allele.names, marker, ...)

     heterozygote(object, ...)
     heterozygote.geneSet(object, allele.names, marker, ...)

     carrier(object, ...)
     carrier.geneSet(object, allele.names, marker, ...)

     dominant(object, ...)
     dominant.geneSet(object, allele.names, marker, ...)

     recessive(object, ...)
     recessive.geneSet(object, allele.names, marker, ...)

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

  object: 'geneSet' object 

allele.names: (optional) allele names.

  marker: (optional) marker names 

     ...: (optional) additional arguments supplied

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

     matrix of logicals.

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

     Gregory R. Warnes warnes@bst.rochester.edu and Nitin Jain
     nitin.jain@pfizer.com

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

     'geneSet', 'extractAlleles'

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

     data(CAMP)
     lCAMP <- CAMP[,1:10] # 10 observations

     # see the genotypes
     genotypes(lCAMP)

     # which ones are homozygotes?
     homozygote(lCAMP)

     # which ones are carriers  for allele "2"?
     carrier(lCAMP, allele.names="2")

     # which markers are heterozygotes for marker m709
     heterozygote(lCAMP, marker="m709")

     # if '1' is dominant, which ones will show the
     # '1' phenotype for marker m47?
     dominant(lCAMP, allele.names="1", marker="m47")

     # if '2' is recessive, which ones will show the
     # '2' phenotype for marker m523?
     recessive(lCAMP, allele.names="2", marker="p523")

