mapSub2Plate              package:prada              R Documentation

_M_a_p _s_u_b_p_l_a_t_e _w_e_l_l _I_D _a_n_d _s_u_b_p_l_a_t_e _I_D _t_o _9_6-_w_e_l_l _p_l_a_t_e _w_e_l_l _I_D

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

     Map subplate well ID (e.g. from chamberslides) and subplate ID to
     96-plate well ID

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

     mapSub2Plate(sub, well)

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

     sub: Character. Subplate identifier, see details.

    well: Integer. Well identifier, see details.

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

     'sub' and 'well' must have the same length.

     For chamberslides, 'sub' has the values "a", "b", "c12", or "c34".
     Alternatively, 'sub' can have the values "1-48", "49-96".

     'well' must be an integer number in the appropriate range.

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

     An numeric vector of the same length as 'well' with the plate well
     IDs.

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

     Wolfgang Huber <URL: http://www.ebi.ac.uk/huber>

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

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

       plcat = function(iw, x) {
         d = numeric(96)
         d[iw] = x
         for (i in 0:7)
           cat(sapply(d[(1:12)+i*12], function(s) { sprintf('%4s', s) }), '\n')
         cat('\n')
       }

       sub  = c(rep("a", 32), rep("b", 32), rep("c12", 16), rep("c34", 16))
       well = rep(1:32, 3)
       iw   = mapSub2Plate(sub, well)
       plcat(iw, paste(well))
       plcat(iw, sub)

       sub  = c(rep("1-48",  48), rep("49-96", 48))
       well = 1:96
       iw   = mapSub2Plate(sub, well)
       plcat(iw, paste(well))
       plcat(iw, sub)

