mapSub2Plate {prada}R Documentation

Map subplate well ID and subplate ID to 96-well plate well ID

Description

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

Usage

mapSub2Plate(sub, well)

Arguments

sub Character. Subplate identifier, see details.
well Integer. Well identifier, see details.

Details

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.

Value

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

Author(s)

Wolfgang Huber http://www.dkfz.de/abt0840/whuber

See Also

Examples

  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)

[Package Contents]