Closed liz-is closed 5 years ago
This is consistent with the behaviour of the base SummarizedExperiment
class:
library(SummarizedExperiment)
example(SummarizedExperiment, echo=FALSE)
c(se, se)
## Error in validObject(.Object) :
## invalid class “SummarizedExperiment” object:
## nb of rows in 'assay' (200) must equal nb of rows in 'rowData' (400)
Recalling my discussions with the BioC core developers, c
was deliberately not supported for 2D objects like SEs, because using rbind
/cbind
was clearer w.r.t. the dimension being combined.
That's fair enough. IMO the error message could be improved to make it clearer that this is deliberately not supported, but it's not a big deal.
You should post an issue at the SE repo, it's not the first time the error message was cryptic.
Hey,
I get an error when trying to combine two InteractionSet objects with
c()
. InteractionSet v 1.10.0, R v 3.5.1. The error is:rbind
does what I'm looking for, but I'd expectc
to also work here. Is this a bug or is there something I'm missing?Reproducible example and sessionInfo below. Thanks!