\HeaderA{htmlPage}{Display gene list as a HTML page}{htmlPage}
\aliasA{table2html}{htmlPage}{table2html}
\keyword{file}{htmlPage}
\begin{Description}\relax
Given a set of index to a data.frame containing gene names information.
We create a web page with one element per genes that contains URLs links
to various external database links.
E.g Operon oligodatabase , Riken, GenBank and PubMed web sites.
\end{Description}
\begin{Usage}
\begin{verbatim}
htmlPage(genelist, filename = "GeneList.html", geneNames =
                 Gnames, mapURL = SFGL, othernames, title, table.head,
                 table.center = TRUE, disp = c("browser", "file")[1])

table2html(restable, filename = "GeneList.html", mapURL = SFGL,
                 title, table.head, table.center = TRUE, disp =
                 c("browser", "file")[1])
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{restable}] A data.frame that contains only the information you
wish to display in the html file.  The rows corresponds to a
different DNA spots.
\item[\code{genelist}] A numeric vector of index to a data.frame
\item[\code{filename}] The name of the file to store the HTML in. 
\item[\code{geneNames}] A data.frame containing the information related the
each DNA spots. 
\item[\code{mapURL}] A matrix of characters containing the URL for various
external database.  E.g \code{\LinkA{SFGL}{SFGL}}.
\item[\code{othernames}] A data.frame containing other information.
\item[\code{title}] Title of the HTML page
\item[\code{table.head}] A character vector of column labels for the table
\item[\code{table.center}] A logical indicating whether the table should be
centered
\item[\code{disp}] Either "File" or "Browser" (default is Browser). File will
save the information in html file, while Browser will create an html
files and display information in the user's browser.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This function is an extension to \code{ll.htmlpage}
\end{Details}
\begin{Value}
No value is return, the function produce a html file "filename" and
output the results in a browser.
\end{Value}
\begin{Author}\relax
Yee Hwa Yang
\end{Author}
\begin{SeeAlso}\relax
\code{ll.htmlpage}, \code{\LinkA{URLstring}{URLstring}}, \code{\LinkA{widget.mapGeneInfo}{widget.mapGeneInfo}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
##library(annotate)
data(swirl)
Gnames <- maGeneTable(swirl)
swirlmap <- mapGeneInfo(Name = "none", ID="genbank")
## htmlPage(100:110, geneNames = Gnames, mapURL = swirlmap, title="Swirl")

moreinfo <- round(maM(swirl), 2)
swirlmap <- mapGeneInfo(Name = "pubmed", ID="genbank")
##htmlPage(100:110, geneNames = Gnames, mapURL = swirlmap, othernames=moreinfo, title="Swirl", disp="file")
\end{ExampleCode}
\end{Examples}


