R/eset2GenomicAnnotations.R

####
#### eset2GenomicAnnotations : function to extract genomic annotations from annotations library associated to an expressionset
####


setMethod("eset2GenomicAnnotations", "ExpressionSet", function(.Object, retain.chrs=NULL, optionalAnnotations=NULL) {


###############################################################################
###############################################################################
## extract GenomicAnnotations
probesets<- featureNames(.Object)

GenomicsAnnotations_object<-GenomicAnnotationsFromLibrary(annotLibrary=annotation(.Object), probeIDs=probesets, retain.chrs=retain.chrs, optionalAnnotations=optionalAnnotations)

return(GenomicsAnnotations_object)


})

Try the PREDA package in your browser

Any scripts or data that you put into this service are public.

PREDA documentation built on Nov. 8, 2020, 7:40 p.m.