## create an object to retrieve annotation from biomaRt
annotParam <- AnnotParam(datasource="Hsapiens",type="biomaRt")
## get the datasource and type
datasource(annotParam)
type(annotParam)
## create an object to retrieve annotation from an rda object
library(RnaSeqTutorial)
annotParam <- AnnotParam(datasource=system.file(
package="RnaSeqTutorial",
"data","gAnnot.rda"
),type="rda")
Run the code above in your browser using DataLab