maCoord2Ind              package:marray              R Documentation

_C_o_n_v_e_r_t _g_r_i_d _a_n_d _s_p_o_t _m_a_t_r_i_x _c_o_o_r_d_i_n_a_t_e_s _t_o _s_p_o_t _i_n_d_i_c_e_s

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

     This functions converts grid and spot matrix coordinates (four
     coordinates) to spot indices, where spots on the array are
     numbered consecutively starting from the top left grid and the top
     left spot within each grid.

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

     maCoord2Ind(x, L)

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

       x: a matrix of spot four-coordinates, with rows corresponding to
          spots and columns to grid row, grid column, spot row, and
          spot column coordinates.

       L: an object of class '"marrayLayout"'.

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

     a numeric vector of spot indices.

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

     Yee Hwa (Jean) Yang, Sandrine Dudoit, <URL:
     http://www.stat.berkeley.edu/~sandrine>.

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

     'marrayLayout', 'maInd2Coord', 'maCompCoord', 'maCompInd'.

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

     L <- new("marrayLayout", maNgr=4, maNgc=4, maNsr=22, maNsc=24)
     coord<-cbind(rep(2,4),rep(1,4),rep(1,4),1:4)
     maCoord2Ind(coord, L)

