relist                 package:GeneR                 R Documentation

_G_r_o_u_p _s_e_g_m_e_n_t_s _i_n_t_o _g_l_o_b_a_l _s_e_g_m_e_n_t_s

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

     Relist,Relistage : put all segments into its specific enveloppe.

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

     relist(ranges, envel)
     relistage(ranges, envel)

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

envel,ranges: elements of class segSet or matrix nx2

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

  Relist: a vector with envelopes indices  (-1 if none found)

Relistage: a element of class globalSeg

_N_o_t_e:

     Envelops must overlap ranges.

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

     Antoine Lucas and Odile Rogier

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

     from = c(1, 15,17,100,130,135,142)
     to   = c(40,45,38,120,140,145,160)
     envelfrom = c(1,100,130)
     envelto = c(45,120,160)
     ranges = as.segSet(data.frame(from,to))
     envel = as.segSet(data.frame(envelfrom,envelto))

     relist(ranges, envel)
     c = relistage(ranges, envel)

     par(mfrow=c(3,1))
     plot(ranges,xlim=c(1,160),main="ranges")
     plot(envel,xlim=c(1,160),main="Envelopes")
     plot(c,xlim=c(1,160),main="relist")

