\HeaderA{write.spot}{Writing in Data Generated by the Image Analysis Package Spot}{write.spot}
\keyword{file}{write.spot}
\begin{Description}\relax
Function writes in a data file in a tab delimited table format.
\end{Description}
\begin{Usage}
\begin{verbatim}
write.spot(x, imageid, batch="output")
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] the object to be written, typically a data frame. If not, it
is attempted to create one from it.
\item[\code{imageid}] integer value; the index of the slide which is
considered
\item[\code{batch}] character string, this refers to the name of a collection
of experiments. The default batch name is "output".
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This function writes the data in for each imageid, assigning each file
the filename which takes the default form of "output".imageid.spot. The
column names of x are written along with x in the table format
\end{Details}
\begin{Author}\relax
Jessica Mar
\end{Author}
\begin{References}\relax
Spot manual \url{
http://www.cmis.csiro.au/iap/Spot/spotmanual.htm}
\end{References}
\begin{SeeAlso}\relax
\code{\LinkA{write.table}{write.table}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}## Setting up the data
## library(Spot)
## SetParameters("mouse")
## Here is what you should see:
## Enter number of rows of grids per image (ngrid.r): 4
## Enter number of columns of grids per image (ngrid.c): 4
## Enter number of rows of spots per grid (nspot.r): 19
## Enter number of columns of spots per grid (nspot.c): 21
## Enter top/bottom translation tolerance, default is 50 (tolerance.r): 20
## Enter left/right translation, default is 50 (tolerance.c): 30
## Initialization complete

##Inputting Image Data 
## SetImages("mouse")
## Combining the red and green channels for the first slide
## mouse.array <- Spots("mouse", 1)

## Calling the function to write the data in
## write.spot(mouse.array, 1, "mouse")
\end{ExampleCode}
\end{Examples}

