getPosition.Layout: Gets the position of a set of spots given their indices

Description Usage Arguments Value Author(s) See Also Examples

Description

Gets the position of a set of spots given their indices. The position of a spot is the pair (row, column) where row is the row in the microarray and column is the column in the microarray where the spot is positioned.

Usage

1
2
## S3 method for class 'Layout'
getPosition(this, index=NULL, ...)

Arguments

index

The spot index of one or many spots to be found. All values much be within a valid range otherwise an exception is thrown. If NULL, all spots are considered.

Value

Returns a "named" matrix where each row contains the row and the column of the spots.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

*getIndex(), *getIndices(), *getLocation(). For more information see Layout.

Examples

1
2
3
   layout <- Layout(4,4, 18,18)
   xy <- getPosition(layout, 2001)           # 22 39
   xy <- getPosition(layout, c(2001,2002))   # 22 39; 22 40

HenrikBengtsson/aroma documentation built on May 7, 2019, 12:56 a.m.