Learn R Programming

a4 (version 1.20.0)

addGeneInfo: Utility Function to Add Annotation to existing ExpressionSet Objects

Description

Adds appropriate featureData, similar to the metadata added in the pipeline script, to the ExpressionSet object.

Usage

addGeneInfo(eset, annotationLibrary = NULL)

Arguments

eset
ExpressionSet object for to which one wants to add additional annotation information
annotationLibrary
Annotation Library to use. Must be specified when working with Entrez gene IDs. In this case, one can make use of the JnJ annotation packages such as hgu133plus2hsentrezgJnJ. If not specified, the annotation of the package will be automatically requested with annotation() of the expressionSet object eset and then Affymetrix probe set IDs are expected in featureNames

Value

  • a new ExpressionSet object with the additional information stored as feature data

Details

Slots of featureData(a4ALL) are
  • Entrez ID~: Entrez ID as retrieved from annotation package
  • Ensembl ID~: Ensembl ID as retrieved from annotation package
  • Gene Symbol~: Gene symbol as retrieved from annotation package
  • Description~: Description as retrieved from annotation package

Examples

Run this code
library(ALL)
  data(ALL)
  a4ALL <- addGeneInfo(ALL)
  head(featureData(a4ALL)$`Entrez ID`)

Run the code above in your browser using DataLab