makeSegmentation        package:GenomeGraphs        R Documentation

_C_r_e_a_t_e _o_b_j_e_c_t_s _o_f _c_l_a_s_s _s_e_g_m_e_n_t_a_t_i_o_n

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

     Construct objects of class segmentation

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

     makeSegmentation(start, end, value, dp = NULL)

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

   start: Either a list or a vector. If it is a list then it is a list
          of vectors of start position (this is the way it is
          represented in the segmentation class) If it is a vector it
          is a vector of start positions.

     end: Same as start, but the corresponding end positions.

   value: The y value of the segmentation, ie. segments(start[i],
          value[i], end[i], value[i])

      dp: The Display parameters.

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

     An object of class Segmentation

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

     data("exampleData", package="GenomeGraphs")
     seg <- makeSegmentation(segStart, segEnd, segments, 
                             dp = DisplayPars(color = "black", lwd=2,lty = "solid"))
     cop <- makeGenericArray(intensity  = cn, probeStart = probestart, 
                             segmentation =  seg, dp = DisplayPars(size=3, color = "seagreen", type="dot"))
     gdPlot(cop)

