dropfromqtl               package:qtl               R Documentation

_D_r_o_p _a _Q_T_L _f_r_o_m _a _q_t_l _o_b_j_e_c_t

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

     Drop a QTL or multiple QTL from a QTL object

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

     dropfromqtl(qtl, index, chr, pos, qtl.name, drop.lod.profile=TRUE)

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

     qtl: A qtl object, as created by 'makeqtl'.

   index: Vector specifying the numeric indices of the QTL to be
          dropped.

     chr: Vector indicating the chromosome for each QTL to drop.

     pos: Vector (of same length as 'chr') indicating the positions of
          the QTL to be dropped.

qtl.name: Vector specifying the names of the QTL to be dropped.

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

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

     Provide either 'chr' and 'pos', or one of 'qtl.name' or 'number'.

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

     The input 'qtl' object with the specified QTL omitted.   See
     'makeqtl' for details on the format.

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

     Karl W Broman, 'kbroman@biostat.wisc.edu'

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

     'makeqtl', 'fitqtl', 'addtoqtl', '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 <- subset(fake.f2, chr=qc)

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

     newqtl <- dropfromqtl(qtl, chr=1, pos=25.8)
     altqtl <- dropfromqtl(qtl, index=1)

