Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

maCoord2Ind

Convert grid and spot matrix coordinates to spot indices


Description

This functions converts grid and spot matrix coordinates (four coordinates) to spot indices, where spots on the array are numbered consecutively starting from the top left grid and the top left spot within each grid.

Usage

maCoord2Ind(x, L)

Arguments

x

a matrix of spot four-coordinates, with rows corresponding to spots and columns to grid row, grid column, spot row, and spot column coordinates.

L

an object of class "marrayLayout".

Value

a numeric vector of spot indices.

Author(s)

Yee Hwa (Jean) Yang, Sandrine Dudoit, http://www.stat.berkeley.edu/~sandrine.

See Also

Examples

L <- new("marrayLayout", maNgr=4, maNgc=4, maNsr=22, maNsc=24)
coord<-cbind(rep(2,4),rep(1,4),rep(1,4),1:4)
maCoord2Ind(coord, L)

marray

Exploratory analysis for two-color spotted microarray data

v1.68.0
LGPL
Authors
Yee Hwa (Jean) Yang <jeany@maths.usyd.edu.au> with contributions from Agnes Paquet and Sandrine Dudoit.
Initial release
2009-08-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.