xy2indices               package:affy               R Documentation

_F_u_n_c_t_i_o_n_s _t_o _c_o_n_v_e_r_t _i_n_d_i_c_e_s _t_o _x/_y (_a_n_d _r_e_v_e_r_s_e)

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

     Functions to convert indices to x/y (and reverse)

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

     xy2indices(x, y, nr = NULL, cel = NULL, abatch = NULL)
     indices2xy(i, nr = NULL, cel = NULL, abatch = NULL)

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

       x: 'X' position for the probes 

       y: 'Y' position for the probes 

       i: indices in the 'AffyBatch' for the probes 

      nr: total number of 'Xs' on the chip 

     cel: a corresponding object of class 'Cel' 

  abatch: a corresponding object of class 'AffyBatch' 

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

     The probes intensities for given probe set ids are extracted from
     an 'AffyBatch' object using the indices stored in the
     corresponding 'cdfenv'.

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

     A vector of indices or a two-columns matrix of Xs and Ys.

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

     L.

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

     'indexProbes'

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

     data(affybatch.example)

     pm.i <- indexProbes(affybatch.example, which="pm", genenames="AFFX-BioC-5_at")[[1]]
     mm.i <- indexProbes(affybatch.example, which="mm", genenames="AFFX-BioC-5_at")[[1]]

     pm.i.xy <- indices2xy(pm.i, abatch = affybatch.example)
     mm.i.xy <- indices2xy(mm.i, abatch = affybatch.example)

     image(affybatch.example[1], transfo=log2)
     ## plot the pm in red
     plotLocation(pm.i.xy, col="red")
     plotLocation(mm.i.xy, col="blue")

