R/fixes.R

setMethod("pData", "SummarizedExperiment", function(object) {
    as.data.frame(colData(object))
})

setMethod("colData", "ExpressionSet", function(x) {
    as(pData(x), "DataFrame")
})

setMethod("sampleNames", "SummarizedExperiment", function(object) {
    colnames(object)
})
kasperdanielhansen/massay documentation built on May 18, 2017, 4:06 p.m.