\HeaderA{maCompCoord}{Generate grid and spot matrix coordinates}{maCompCoord}
\keyword{manip}{maCompCoord}
\keyword{methods}{maCompCoord}
\begin{Description}\relax
This function generates grid and spot matrix coordinates from ranges of
rows and columns for the grid and spot matrices. Spots on the array are numbered consecutively starting
from the top left grid and the top left spot within each grid.
\end{Description}
\begin{Usage}
\begin{verbatim}
maCompCoord(grows, gcols, srows, scols)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{grows}] numeric vector of grid rows.
\item[\code{gcols}] numeric vector of grid columns.
\item[\code{srows}] numeric vector of spot rows.
\item[\code{scols}] numeric vector of spot columns.
\end{ldescription}
\end{Arguments}
\begin{Value}
a matrix of spot four-coordinates, with rows corresponding to
spots and columns to grid row, grid column, spot row, and spot column coordinates.
\end{Value}
\begin{Author}\relax
Yee Hwa (Jean) Yang, Sandrine Dudoit, \url{http://www.stat.berkeley.edu/~sandrine}.
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{marrayLayout}{marrayLayout}}, \code{\LinkA{maCoord2Ind}{maCoord2Ind}},
\code{\LinkA{maInd2Coord}{maInd2Coord}}, \code{\LinkA{maCompInd}{maCompInd}}.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}

maCompCoord(1:2,1,1:4,1:3)

\end{ExampleCode}
\end{Examples}


