reorderqtl                package:qtl                R Documentation

_R_e_o_r_d_e_r _t_h_e _Q_T_L _i_n _a _q_t_l _o_b_j_e_c_t.

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

     This function changes the order of the QTL in a QTL object.

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

     reorderqtl(qtl, neworder)

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

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

neworder: A vector containing the positive integers up to the number of
          QTL in 'qtl', indicating the new order for the QTL. If
          missing, the QTL are ordered by chromosome and then by their
          position within a chromosome.

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

     Everything in the input 'qtl' is reordered except the 'altname'
     component, which contains names of the form 'Q1', 'Q2', etc.

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

     The input 'qtl' object, with the loci reordered.

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

     Karl W Broman, kbroman@biostat.wisc.edu

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

     'makeqtl', 'fitqtl', 'dropfromqtl', 'addtoqtl', 'replaceqtl'

_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)
     qtl <- makeqtl(fake.f2, qc, qp, what="prob")

     qtl <- reorderqtl(qtl, c(2,3,1))
     qtl

     qtl <- reorderqtl(qtl)
     qtl

