[Bioc-devel] coerce ExpressionSet to SummarizedExperiment

Levi Waldron lwaldron.research at gmail.com
Tue Sep 12 01:50:01 CEST 2017

Thanks Ludwig and Kasper. This old presentation from Martin also helped me
a lot:


But I still wonder, why provide the coercion for ExpressionSet, if
providing it for eSet would work not only for ExpressionSet but for
everything else derived from eSet? The coercion function seems to work fine
on the eSet-derived NChannelSet-class {the assays=as.list(assayData(from))
 seems to work regardless of the storage mode}:

> library(Biobase)> library(SummarizedExperiment)> example("NChannelSet-class", echo=FALSE)> class(obj)[1] "NChannelSet"
[1] "Biobase"> is(obj, "eSet")[1] TRUE

> storageMode(obj)[1] "lockedEnvironment"

> makeSummarizedExperimentFromExpressionSet(obj) class:
RangedSummarizedExperiment dim: 10 3 metadata(3): experimentData annotation
protocolData assays(2): G R rownames(10): 1 2 ... 9 10 rowData names(0):
colnames(3): A B C colData names(3): ChannelRData ChannelGData ChannelRAndG

> as(obj, "RangedSummarizedExperiment")

Error in as(obj, "RangedSummarizedExperiment") :
  no method or default for coercing “NChannelSet” to


	[[alternative HTML version deleted]]

More information about the Bioc-devel mailing list