maInd2Coord          package:marrayClasses          R Documentation

_C_o_n_v_e_r_t _s_p_o_t _i_n_d_i_c_e_s _t_o _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

_D_e_s_c_r_i_p_t_i_o_n:

     This functions converts spot indices to grid and spot matrix
     coordinates (four coordinates), 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:

     maInd2Coord(x, L)

_A_r_g_u_m_e_n_t_s:

       x: a numeric vector of spot indices.

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

_V_a_l_u_e:

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

_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', 'maCoord2Ind', 'maCompCoord', 'maCompInd'.

_E_x_a_m_p_l_e_s:

     L <- new("marrayLayout", maNgr=4, maNgc=4, maNsr=22, maNsc=24)
     maInd2Coord(c(1:10,529:538), L)

