coerce-method           package:maigesPack           R Documentation

_C_o_e_r_c_e _a _m_a_i_g_e_s _o_b_j_e_c_t _t_o _c_l_a_s_s_e_s _d_e_f_i_n_e_d _b_y _p_a_c_k_a_g_e_s _l_i_m_m_a _a_n_d _m_a_r_r_a_y

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

     Coercing methods were defined to convert maiges objects of classes
     'maiges' and 'maigesRaw' into objects of classes 'marrayNorm' and
     'marrayRaw' from package _marray_ or classes 'MAList' and 'RGList'
     from package _limma_ and vice-versa.

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

     ## S4 method for signature 'maiges, marrayNorm':
     as(from, to)

     ## S4 method for signature 'marrayNorm, maiges':
     as(from, to)

     ## S4 method for signature 'maiges, MAList':
     as(from, to)

     ## S4 method for signature 'MAList, maiges':
     as(from, to)

     ## S4 method for signature 'maigesRaw, marrayRaw':
     as(from, to)

     ## S4 method for signature 'marrayRaw, maigesRaw':
     as(from, to)

     ## S4 method for signature 'maigesRaw, RGList':
     as(from, to)

     ## S4 method for signature 'RGList, maigesRaw':
     as(from, to)

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

    from: object of class 'maiges', 'maigesRaw', 'MAList', 'RGList',
          'marrayNorm' or 'marrayRaw'.

      to: character string specifying the class of object to which the
          object 'from' will be coerced

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

     When converting from objects of classes 'RGList' or 'marrayRaw' to
     class 'maigesRaw', the slot 'Sf' and 'Sb' will always receive the
     channel 2 (red) values, and 'Rf' and 'Rb' will always receive
     channel 1 (green) values. For the normalized ojects, the slot 'W'
     will be equivalent to the M values.

     When converting from objects of classes 'maigesRaw' or 'maiges' to
     classes 'RGList', 'marrayRaw', 'MAList' or 'marrayNorm' the
     correct values of the two channels or of M values are calculated.

_M_e_t_h_o_d_s:


     _f_r_o_m = _m_a_i_g_e_s, _t_o = _m_a_r_r_a_y_N_o_r_m convert an object of class 'maiges'
          into an object of class 'marrayNorm'. 

     _f_r_o_m = _m_a_r_r_a_y_N_o_r_m, _t_o = _m_a_i_g_e_s convert an object of class
          'marrayNorm' into an object of class 'maiges'. 

     _f_r_o_m = _m_a_i_g_e_s, _t_o = _M_A_L_i_s_t convert an object of class 'maiges'
          into an object of class 'MAList'. 

     _f_r_o_m = _M_A_L_i_s_t, _t_o = _m_a_i_g_e_s convert an object of class 'MAList'
          into an object of class 'maiges'. 

     _f_r_o_m = _m_a_i_g_e_s_R_a_w, _t_o = _m_a_r_r_a_y_R_a_w convert an object of class
          'maigesRaw' into an object of class 'marrayRaw'. 

     _f_r_o_m = _m_a_r_r_a_y_R_a_w, _t_o = _m_a_i_g_e_s_R_a_w convert an object of class
          'marrayRaw' into an object of class 'maigesRaw'. 

     _f_r_o_m = _m_a_i_g_e_s_R_a_w, _t_o = _R_G_L_i_s_t convert an object of class
          'maigesRaw' into an object of class 'RGList'. 

     _f_r_o_m = _R_G_L_i_s_t, _t_o = _m_a_i_g_e_s_R_a_w convert an object of class 'RGList'
          into an object of class 'maigesRaw'. 

_N_o_t_e:

     It is possible to use Package _convert_ to convert objects between
     classes defined in packages _limma_, _marray_ and _Biobase_.

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

     'as' in the _methods_ package.

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

     ## Loading the dataset
     data(gastro)

     ## Converting a maigesRaw class object into marrayRaw object
     as(gastro.raw, "marrayRaw")

     ## Converting a maigesRaw class object into RGList
     as(gastro.raw, "RGList")

     ## Converting a maiges class object into marrayNorm object
     as(gastro.norm, "marrayNorm")

     ## Converting a maiges class object into MAList object
     as(gastro.summ, "MAList")

