convertWellCoordinates {cellHTS2}R Documentation

Converts different well identifiers

Description

Converts between different ways of specifying well coordinates. For example, "B02" <-> c("B", "02") <-> 26.

Usage

convertWellCoordinates(x, pdim, type="384")

Arguments

x either: a character vector with alphanumeric well identifiers (e.g. B03); or an nx2 character matrix whose first column contains letters and whose second column contains numbers; or an integer vector with position identifiers for wells within a plate (e.g. 27).
pdim a vector of length 2 with names nrow and ncol giving the number of rows and columns in a plate. E.g. 'c(nrow=16, ncol=24)' for 384-well plates.
type an alternative way of specifying pdim. Supported are the values "24" for c(nrow=4, ncol=6), "96" for c(nrow= 8, ncol=12) "384" for c(nrow=16, ncol=24).

Value

A list with elements: letnum, with the alphanumeric well identifiers; let.num, with the alphanumeric well identifiers giving as a pair c(LETTER, 2-digits); num, with the integer position of the well within a plate.

Author(s)

Ligia Bras ligia@ebi.ac.uk and Wolfgang Huber huber@ebi.ac.uk

Examples

    pd <- c("nrow"=8L, "ncol"=12L) # 96-well plate
    w <- sample(prod(pd), 3L)
    wpos <- convertWellCoordinates(w, pd)
    wpos

[Package cellHTS2 version 2.6.0 Index]