R/GenomicAnnotationsForPREDA2GenomicAnnotations.R

##
## GenomicAnnotationsForPREDA - GenomicAnnotationsForPREDA2GenomicAnnotations
##
## Method to extract the GenomicAnnotations object from the GenomicAnnotationsForPREDA object
##

setMethod("GenomicAnnotationsForPREDA2GenomicAnnotations", "GenomicAnnotationsForPREDA", function(.Object) {

GenomicAnnotations_object<-new("GenomicAnnotations", ids=slot(.Object,"ids"), chr=slot(.Object,"chr"), start=slot(.Object,"start"), end=slot(.Object,"end"), strand=slot(.Object,"strand"), chromosomesNumbers=slot(.Object,"chromosomesNumbers"), chromosomesLabels=slot(.Object,"chromosomesLabels"), optionalAnnotations=slot(.Object,"optionalAnnotations"), optionalAnnotationsHeaders=slot(.Object,"optionalAnnotationsHeaders"))

return(GenomicAnnotations_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.