Learn R Programming

imageHTS (version 1.22.0)

prw2uname: Convert and parse well unique names

Description

Functions to convert and parse well unique names.

Usage

prw2uname(plate, replicate, row, col, well) uname2prw(uname) rowcol2well(row, col) well2rowcol(well) well2wellid(row, col, direction='row', dim)

Arguments

plate
An numeric vector of plate indices or a list containing the numeric vectors plate, replicate, row and col.
replicate
A numeric vector of replicate indices.
row
A numeric vector of row indices.
col
A numeric vector of column indices
well
A character vector of well names.
uname
A character vector of well unique names.
direction
A character string containing the direction of the mapping. Valid values are row and col. Default is row, where the well identifier 2 points is mapped to well (1, 2)
dim
A numeric vector of length two, containing the dimensions (number of rows, number of columns) of a plate

Value

prw2uname returns a character vector of well unique names. uname2prw returns a data frame containing the columns plate, replicate, row and col. rowcol2well returns a character vector of well names. well2rowcol returns a data.frame containing the numeric vectors row and col. well2wellid returns a numeric vector containing the well identifiers.

Details

In prw2uname, wells can be specified using the arguments row and col or using the argument well.

See Also

getWellFeatures

Examples

Run this code
## prw2uname and uname2prw
u = prw2uname(plate=1:2, replicate=1, row=2, col=3:4)
print(u)
prw = uname2prw(u)
print(prw)
prw2uname(prw)

## rowcol2well and well2rowcol
w = rowcol2well(row=1:3, col=5:7)
print(w)
rc = well2rowcol(w)
print(rc)

Run the code above in your browser using DataLab