Title: | Automated Affymetrix Array Analysis Reporting Package |
---|---|
Description: | Utility functions to facilitate the reporting of the Automated Affymetrix Array Analysis Reporting set of packages. |
Authors: | Tobias Verbeke [aut], Laure Cougnaud [cre] |
Maintainer: | Laure Cougnaud <[email protected]> |
License: | GPL-3 |
Version: | 1.55.0 |
Built: | 2024-10-30 03:23:51 UTC |
Source: | https://github.com/bioc/a4Reporting |
This function takes data to be displayed as well as data containing hyperlinks corresponding to displayed data and constructs an object of class annotationTable
annotationTable(displayData, displayCols = NULL, hrefData = NULL)
annotationTable(displayData, displayCols = NULL, hrefData = NULL)
displayData |
data frame containing data that is meant to be displayed in a LaTeX table |
displayCols |
list of named character vectors (of length one) that function
as key-value pairs; the names (keys) correspond to columns for which
the hyperlinks should be generated whereas the strings (values)
indicate what kind of link should be produced based on the
corresponding column in the |
hrefData |
data frame containing hyperlink information for the columns of
the same name in the |
If hrefData
is given, the displayCols
are not taken into account.
If no hrefData
is given, the information in displayCols
allows to
automatically create the hrefData
.
object of class 'annotationTable'
Tobias Verbeke
## some dummy data dData <- data.frame(someSymbol = LETTERS[1:5], accessionNumber = c("X83928", "V00540", "U21090", "L38487", "M34057")) at <- annotationTable(displayData = dData, displayCols = list(accessionNumber = "EntrezId"))
## some dummy data dData <- data.frame(someSymbol = LETTERS[1:5], accessionNumber = c("X83928", "V00540", "U21090", "L38487", "M34057")) at <- annotationTable(displayData = dData, displayCols = list(accessionNumber = "EntrezId"))
Class to represent both displayed information and hyperlink information to prepare tabular output for LaTeX (with hyperlinks)
## S4 method for signature 'annotationTable' show(object)
## S4 method for signature 'annotationTable' show(object)
object |
annotationTable object |
Objects can be created by calls of the form new("annotationTable", ...)
or using the wrapper function annotationTable
displayData
:Object of class "data.frame"
containing the columns to be
displayed in the table
displayCols
:Object of class "list"
giving key-value pairs that allow
to automatically generate the hyperlinks for the corresponding columns of the displayData
hrefData
:Object of class "data.frame"
giving the hyperlink information for
the corresponding columns of the displayData
signature(object = "annotationTable")
: print an annotationTable
(without displaying the hyperlink information)
Tobias Verbeke
showClass("annotationTable")
showClass("annotationTable")
Utility function to transform an ENTREZ ID into a hyperlink on the NCBI Entrez page for the given gene
generateEntrezIdLinks(x)
generateEntrezIdLinks(x)
x |
vector of Entrez IDs |
vector of hyperlinks for the corresponding Entrez IDs
Snippet taken from the annaffy
package
Tobias Verbeke
generateEntrezIdLinks(c("5230", "18655"))
generateEntrezIdLinks(c("5230", "18655"))
Utility function to transform a GO ID into a hyperlink to the corresponding page on the gene ontology website
generateGOIdLinks(x)
generateGOIdLinks(x)
x |
vector of GO IDs |
vector of hyperlinks
Snippet taken from the annaffy
package
Tobias Verbeke
Print method for 'xtableAnnotationTable' objects
## S3 method for class 'xtableAnnotationTable' print(x, ...)
## S3 method for class 'xtableAnnotationTable' print(x, ...)
x |
Object of class 'xtableAnnotationTable' |
... |
Further arguments passed to |
Wrapper to be able to use a specific sanitize.text
function
in the print.xtable
call
No returned value, the object is printed.
Tobias Verbeke
xtable
methods for several a4 objects, such as annotationTable
objects,
topTable
objects etc.
## S4 method for signature ## 'annotationTable,missing,missing,missing,missing,missing' xtable(x, caption, label, align, digits, display) ## S4 method for signature 'annotationTable,ANY,ANY,ANY,ANY,ANY' xtable(x, caption, label, align, digits, display) ## S4 method for signature 'annotationTable,ANY,ANY,ANY,numeric,ANY' xtable(x, caption, label, align, digits, display) ## S3 method for class 'topTableGlmnet' xtable( x, caption = NULL, label = NULL, align = NULL, digits = NULL, display = NULL, ... ) ## S3 method for class 'topTableLognet' xtable( x, caption = NULL, label = NULL, align = NULL, digits = NULL, display = NULL, ... ) ## S3 method for class 'topTableElnet' xtable( x, caption = NULL, label = NULL, align = NULL, digits = NULL, display = NULL, ... ) ## S3 method for class 'pamClassConfusionTable' xtable( x, caption = NULL, label = NULL, align = NULL, digits = NULL, display = NULL, ... ) ## S3 method for class 'topTablePam' xtable(x, ...) ## S3 method for class 'topTableRfClass' xtable( x, caption = NULL, label = NULL, align = NULL, digits = NULL, display = NULL, ... )
## S4 method for signature ## 'annotationTable,missing,missing,missing,missing,missing' xtable(x, caption, label, align, digits, display) ## S4 method for signature 'annotationTable,ANY,ANY,ANY,ANY,ANY' xtable(x, caption, label, align, digits, display) ## S4 method for signature 'annotationTable,ANY,ANY,ANY,numeric,ANY' xtable(x, caption, label, align, digits, display) ## S3 method for class 'topTableGlmnet' xtable( x, caption = NULL, label = NULL, align = NULL, digits = NULL, display = NULL, ... ) ## S3 method for class 'topTableLognet' xtable( x, caption = NULL, label = NULL, align = NULL, digits = NULL, display = NULL, ... ) ## S3 method for class 'topTableElnet' xtable( x, caption = NULL, label = NULL, align = NULL, digits = NULL, display = NULL, ... ) ## S3 method for class 'pamClassConfusionTable' xtable( x, caption = NULL, label = NULL, align = NULL, digits = NULL, display = NULL, ... ) ## S3 method for class 'topTablePam' xtable(x, ...) ## S3 method for class 'topTableRfClass' xtable( x, caption = NULL, label = NULL, align = NULL, digits = NULL, display = NULL, ... )
x |
annotationTable object |
caption |
Character vector of length 1 or 2 containing the
table's caption or title. If length is 2, the second item is the
"short caption" used when LaTeX generates a "List of Tables". Set to
|
label |
Character vector of length 1 containing the LaTeX label
or HTML anchor. Set to |
align |
Character vector of length equal to the number of columns
of the resulting table, indicating the alignment of the corresponding
columns. Also, |
digits |
Numeric vector of length equal to one (in which case it will be
replicated as necessary) or to the number of columns of the
resulting table or matrix of the same size as the resulting
table, indicating the number of digits to display in the
corresponding columns. Since the row names are printed in the first
column, the length of the vector |
display |
Character vector of length equal to the number of columns of the
resulting table, indicating the format for the corresponding columns.
Since the row names are printed in the first column, the length of
|
... |
Additional arguments. (Currently ignored.) |
generates a LaTeX representation for the given annotationTable
generates a LaTeX representation for the given annotationTable
generates a LaTeX representation for the given annotationTable
## some dummy data dData <- data.frame(someSymbol = LETTERS[1:5], accessionNumber = c("X83928", "V00540", "U21090", "L38487", "M34057")) at <- annotationTable(displayData = dData, displayCols = list(accessionNumber = "EntrezId")) xat <- xtable(at) print(xat, include.rownames = FALSE)
## some dummy data dData <- data.frame(someSymbol = LETTERS[1:5], accessionNumber = c("X83928", "V00540", "U21090", "L38487", "M34057")) at <- annotationTable(displayData = dData, displayCols = list(accessionNumber = "EntrezId")) xat <- xtable(at) print(xat, include.rownames = FALSE)