R/PREDADataAndResults2dataframe.R

##
## method PREDADataAndResults2dataframe to extract annotations as a dataframe with probeids as rownames
##

##
## PREDADataAndResults - PREDADataAndResults2dataframe
##

setMethod("PREDADataAndResults2dataframe", "PREDADataAndResults", function(.Object) {

output_dataframe<-PREDAResults2dataframe(.Object)
statistic<-slot(.Object, "statistic")

output_dataframe<-data.frame(output_dataframe, statistic, stringsAsFactors=FALSE)
rownames(output_dataframe)<-output_dataframe[,"ids"]
return(output_dataframe)
})

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.