makeBaseTrack          package:GenomeGraphs          R Documentation

_C_r_e_a_t_e_s _a_n _o_b_j_e_c_t _o_f _c_l_a_s_s _B_a_s_e_T_r_a_c_k

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

     Creates an object of class BaseTrack, which can represent many
     datasets containing a base given by a vector of positions and a
     corresponding vector with values for these base positions

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

     makeBaseTrack(base, value, strand, segmentation, dp = NULL)

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

    base: Numeric vector of base positions

   value: Numeric vector with values for these base positions

  strand: Character either + or - representing the strand

segmentation: Object of class Segmentation, used when segments are
          needed to be drawn

      dp: Object of class DisplayPars representing the display
          parameters of the plot

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

     Object of class BaseTrack

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

     Jim Bullard and Steffen Durinck

_R_e_f_e_r_e_n_c_e_s:

     ~put references to the literature/web site here ~

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

     'DisplayPars', 'gdPlot'

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

     ##---- Should be DIRECTLY executable !! ----
     ##-- ==>  Define data, use random,
     ##--    or do  help(data=index)  for the standard data sets.

     ## The function is currently defined as
     function (base, value, strand, segmentation, dp = NULL) 
     {
         pt <- getClass("BaseTrack")@prototype
         if (is.null(dp)) 
             dp <- pt@dp
         if (missing(strand)) 
             strand <- pt@strand
         if (missing(segmentation)) 
             segmentation <- pt@segmentation
         if (missing(base)) 
             stop("Need base argument to know the base positions to plot the data on the genome")
         if (missing(value)) 
             stop("Need value argument")
         new("BaseTrack", base = base, value = value, strand = strand, 
             dp = dp, segmentation = segmentation)
       }

