prw2uname {imageHTS} | R Documentation

## 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

.

### Details

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

### 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.

### Author(s)

Gregoire Pau, gregoire.pau@embl.de, 2010

### See Also

`getWellFeatures`

### Examples

    ## 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)

[Package imageHTS version 1.40.0 Index]