maInd2Coord              package:marray              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)

