Description Usage Arguments Value Methods (by class) Author(s) Examples
This function fills the featureData slot of the ExpressionSet automatically, which is then available to downstream methods to provide annotated output. Annotating results is tedious, and can be surprisingly difficult to get right. By annotating the data automatically, we remove the tedium and add an extra layer of security since the resulting ExpressionSet will be tested for validity automatically (e.g., annotation data match up correctly with the expression data). Current choices for the annotation data are a ChipDb object (e.g., hugene10sttranscriptcluster.db) or an AffyGenePDInfo object (e.g., pd.hugene.1.0.st.v1). In the latter case, we use the parsed Affymetrix annotation csv file to get data. This is only intended for those situations where the ChipDb package is not available, and in particular is only available for those packages that contain the parsed annotation csv files (generally, Gene ST arrays, Exon ST arrays and Clariom/HTA/MTA/RTA arrays).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | annotateEset(object, x, ...)
## S4 method for signature 'ExpressionSet,ChipDb'
annotateEset(
object,
x,
columns = c("PROBEID", "ENTREZID", "SYMBOL", "GENENAME"),
multivals = "first"
)
## S4 method for signature 'ExpressionSet,AffyGenePDInfo'
annotateEset(object, x, type = "core", ...)
## S4 method for signature 'ExpressionSet,AffyHTAPDInfo'
annotateEset(object, x, type = "core", ...)
## S4 method for signature 'ExpressionSet,AffyExonPDInfo'
annotateEset(object, x, type = "core", ...)
## S4 method for signature 'ExpressionSet,AffyExpressionPDInfo'
annotateEset(object, x, type = "core", ...)
## S4 method for signature 'ExpressionSet,character'
annotateEset(object, x, ...)
## S4 method for signature 'ExpressionSet,data.frame'
annotateEset(object, x, probecol = NULL, annocols = NULL, ...)
|
object |
An ExpressionSet to which we want to add annotation. |
x |
Either a ChipDb package (e.g., hugene10sttranscriptcluster.db), or a pdInfoPackage object (e.g., pd.hugene.1.0.st.v1). |
... |
Allow users to pass in arbitrary arguments. Particularly useful for passing in columns, multivals, and type arguments for methods. |
columns |
For ChipDb method; what annotation data to add. Use the |
multivals |
For ChipDb method; this is passed to |
type |
For pdInfoPackages; either 'core' or 'probeset', corresponding to the 'target' argument
used in the call to |
probecol |
Column of the data.frame that contains the probeset IDs. Can be either numeric (the column number) or character (the column header). |
annocols |
Column(x) of the data.frame to use for annotating. Can be a vector of numbers (which column numbers to use) or a character vector (vector of column names). |
An ExpressionSet that has annotation data added to the featureData slot.
object = ExpressionSet,x = ChipDb
: Annotate an ExpressionSet using a ChipDb package for annotation data.
object = ExpressionSet,x = AffyGenePDInfo
: Annotate an ExpressionSet using an AffyGenePDInfo package.
object = ExpressionSet,x = AffyHTAPDInfo
: Annotate an ExpressionSet using an AffyHTAPDInfo package.
object = ExpressionSet,x = AffyExonPDInfo
: Annotate an ExpressionSet using an AffyExonPDInfo package.
object = ExpressionSet,x = AffyExpressionPDInfo
: Annotate an ExpressionSet using an AffyExpressionPDInfo package.
object = ExpressionSet,x = character
: Method to capture character input.
object = ExpressionSet,x = data.frame
: Annotate an ExpressionSet using a user-supplied data.frame.
James W. MacDonald <jmacdon@u.washington>
1 2 3 4 5 6 7 8 9 | ## Not run:
dat <- read.celfiles(filenames = list.celfiles())
eset <- rma(dat)
## annotate using ChipDb
eset <- annotateEset(eset, hgu10sttranscriptcluster.db)
## or AffyGenePDInfo
eset <- annotateEset(eset, pd.hugene.1.0.st.v1)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.