htmlPage             package:marrayTools             R Documentation

_D_i_s_p_l_a_y _g_e_n_e _l_i_s_t _a_s _a _H_T_M_L _p_a_g_e

_D_e_s_c_r_i_p_t_i_o_n:

     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.

_U_s_a_g_e:

     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])

_A_r_g_u_m_e_n_t_s:

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.

genelist: A numeric vector of index to a data.frame

filename: The name of the file to store the HTML in. 

geneNames: A data.frame containing the information related the each DNA
          spots. 

  mapURL: A matrix of characters containing the URL for various
          external database.  E.g 'SFGL'.

othernames: A data.frame containing other information.

   title: Title of the HTML page

table.head: A character vector of column labels for the table

table.center: A logical indicating whether the table should be centered

    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.

_D_e_t_a_i_l_s:

     This function is an extension to 'll.htmlpage'

_V_a_l_u_e:

     No value is return, the function produce a html file "filename"
     and output the results in a browser.

_A_u_t_h_o_r(_s):

     Yee Hwa Yang

_S_e_e _A_l_s_o:

     'll.htmlpage', 'URLstring', 'widget.mapGeneInfo'

_E_x_a_m_p_l_e_s:

     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")

