html              package:GeneticsBase              R Documentation

_G_e_n_e_r_a_t_e _s_u_m_m_a_r_y _t_a_b_l_e _f_i_l_e_s _f_o_r _g_e_n_o_t_y_p_e _o_b_j_e_c_t_s

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

     Generate summary table files for genotype objects

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

     #### HTML file format
     html
     ## S3 method for class 'LD':
     html(x, filename = "", digits = 3, ...)
     ## S3 method for class 'GeneticsBaseSummary':
     html(x, filename = "", ...)
     ## S3 method for class 'markerSummary':
     html(x, filename = "", plot.format = "pdf", 
                        sep=".", verbose=TRUE, ...)

     #### plain text file format
     txt
     ## Default S3 method:
     txt(x, filename="", eol="\n", ...)
     ## S3 method for class 'markerSummary':
     txt(x, filename = "", plot.format = "pdf",
                        sep=".", verbose=TRUE, ...)

     #### LaTex file format
     latex
     ## Default S3 method:
     latex(x, filename="", ...)
     ## S3 method for class 'LD':
     latex(x, filename = "", digits = 3, ...)
     ## S3 method for class 'GeneticsBaseSummary':
     latex(x, filename = "", ...)
     ## S3 method for class 'markerSummary':
     latex(x, filename = "", plot.format = "pdf",
                        sep=".", verbose=TRUE, ...)

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

       x: Object to be rendered to html/txt/latex

filename: Output filename, see below for details.

     eol: End of line marker, defaults to '"\n"'. MS-DOS/MS-Windows
          uses '"\r\n"' 

  digits: Number of digits to display

plot.format: Graphics format for LD plot. Only '"pdf"' is currently
          supported

     sep: Separatior used to join the file prefix provided by
          'filename' and descriptive text when generating file names

 verbose: Show names of created files.

     ...: Additional parameters to pass to component methods

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

     For 'alleleSummary', 'genotypeSummary', and 'LD' objects, the
     'filename' argument is either the exact name of the file to be
     created, or "" which will print the output to the console.

     For 'markerSummary' objects, 'filename' may be either '""' or a
     prefix used to create file names. If 'filename=""' all output is
     printed to the R console.  Otherwise, filenames for each component
     are constructed by combining the prefix specified by 'filename',
     the separator specified by 'sep', a string descibing the file
     contents (one of "alleleSummary", "genotypeSummary", and "LD"),
     and the file extension ".html".

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

     Nothing of interest

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

     Nitin Jain nitin_jain@pfizer.com and Gregory R. Warnes
     warnes@bst.rochester.edu

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

     'alleleSummary', 'genotypeSummary', 'markerSummary', 'LD'

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

     data(CAMP)

     ###
     # Generate a plain text allele summary table
     ###
     aS <- alleleSummary(CAMP)
     # display inline
     txt(aS, filename="")
     # create CAMP_alleleSummary.txt
     txt(aS, filename="CAMP.alleleSummary.html") 

     ###
     # Generate an HTML genotype summary table
     ###
     gS <- genotypeSummary(CAMP)
     # display inline
     html(gS, filename="")
     # create CAMP_genotypeSummary.html
     html(gS, filename="CAMP.genotypeSummary.html")

     ###
     # Generate a LaTeX Linkage Disequilibrium table
     ###
     ld <- LD(CAMP)
     # display inline
     latex(ld, filename="")
     # create CAMP_LDSummary.html
     latex(ld, filename="CAMP.LD.html")

     ###
     # Generate a complete set of summary tables 
     ###
     mS <- markerSummary(CAMP)
     # Plain text format
     txt(mS, filename="CAMP", sep="_")
     # HTML format
     html(mS, filename="CAMP", sep="_")
     # LaTeX format
     latex(mS, filename="CAMP", sep="_")

