Re: [Bioc-devel] Problem with S4 method dispatch: method found for SummarizedExperiment, but not SingleCellExperiment

2025-01-08 Thread Axel Klenk
"Matrix") > library("Biobase") > library("SummarizedExperiment") > library("SingleCellExperiment") > > setClassUnion("ExpData", c("matrix", "dgCMatrix", > "ExpressionSet", "SingleCellExperiment")) > >

Re: [Bioc-devel] Problem with S4 method dispatch: .. bug in methods package ? SummarizedExperiment, but not SingleCellExperiment

2025-01-27 Thread Axel Klenk
quot;B", directly Class "C", by class "A", distance 2 Now, does that look like a bug in the methods package or rather like 'some "unhappy coincidence" in how the involved packages interact there'? I have no idea how to tell -- and therefore

Re: [Bioc-devel] Problem with S4 method dispatch: method found for SummarizedExperiment, but not SingleCellExperiment

2025-01-13 Thread Axel Klenk
.check_expdata <- function(expdata) >> { >> ok <- is.matrix(expdata) || >>is(expdata, "dgCMatrix") || >>is(expdata, "ExpressionSet") || >>is(expdata, "SummarizedExperiment") >> if (!ok) sto

[Bioc-devel] Problem with S4 method dispatch: method found for SummarizedExperiment, but not SingleCellExperiment

2025-01-08 Thread Axel Klenk
Dear Community, dear S4 Experts, in the GSVA package I want to use an S4 class union as a superclass for all supported data containers and S4 methods defined for this superclass, rather than for each subclass, where a class-specific implementation is not necessary. In particular I want to avoid h