addtoqtl                 package:qtl                 R Documentation

_A_d_d _t_o _a _q_t_l _o_b_j_e_c_t

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

     Add a QTL or multiple QTL to a qtl object.

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

     addtoqtl(cross, qtl, chr, pos, qtl.name, drop.lod.profile=TRUE)

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

   cross: An object of class 'cross'. See 'read.cross' for details.

     qtl: The qtl object to which additional QTL are to be added.

     chr: Vector indicating the chromosome for each new QTL. (These
          should be character strings referring to the chromosomes by
          name.)

     pos: Vector (of same length as 'chr') indicating the positions on
          the chromosome for each new QTL. If there is no marker or
          pseudomarker at a position, the nearest position is used.

qtl.name: Optional user-specified name for each new QTL, used in the
          drop-one-term ANOVA table in 'fitqtl'. If unspecified, the
          names will be of the form '"Chr1@10"' for a QTL on Chromsome
          1 at 10 cM.

drop.lod.profile: If TRUE, remove any LOD profiles from the object.

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

     An object of class 'qtl', just like the input 'qtl' object, but
     with additional QTL added.  See 'makeqtl' for details.

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

     Karl W Broman, kbroman@biostat.wisc.edu

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

     'makeqtl', 'fitqtl', 'dropfromqtl', 'replaceqtl', 'reorderqtl'

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

     data(fake.f2)

     # take out several QTLs and make QTL object
     qc <- c(1, 6, 13)
     qp <- c(25.8, 33.6, 18.63)


     fake.f2 <- calc.genoprob(fake.f2, step=2, err=0.001)
     qtl <- makeqtl(fake.f2, qc, qp, what="prob")
     qtl <- addtoqtl(fake.f2, qtl, 14, 35)

