Re: [Bioc-devel] Changes to the SummarizedExperiment Class

2015-03-03 Thread Michael Lawrence
Should be possible for the annotations to be of any type, as long as they satisfy a simple contract of NROW() and 2D "[". Then, you could have a DataFrame, GRanges, or whatever in there. But it would be nice to have a special class for the container with range information. The contract for the rang

Re: [Bioc-devel] Changes to the SummarizedExperiment Class

2015-03-03 Thread Peter Haverty
There are some nice similarities in these new imaginary types. A "GRangesFrame" is a list of dimensionally identical things (columns) and some row meta-data (the GRanges). The SE-like object is similarly a list of dimensionally like things (matrices, RleDataFrames, BigMatrix objects, HDF5-backed

Re: [Bioc-devel] Changes to the SummarizedExperiment Class

2015-03-03 Thread Tim Triche, Jr.
This. It would be damned near perfect as a return value for assays coming out of an object that held several such assays at several time points in a population, where there are both assay-wise and covariate-wise "holes" that could nonetheless be usefully imputed across assays. Statistics is the

Re: [Bioc-devel] Changes to the SummarizedExperiment Class

2015-03-03 Thread Peter Haverty
> > > > I still think GRanges should be a subclass of DataFrame, >> which would make this easy, but I don't seem to be winning that argument. >> > > Just impossible. As Michael mentioned back in November, they have > conflicting APIs. Maybe a new "GRangesFrame" that is a DataFrame and holds a GR

Re: [Bioc-devel] Changes to the SummarizedExperiment Class

2015-03-03 Thread Hervé Pagès
On 03/03/2015 03:06 PM, Peter Haverty wrote: I'd like to see a basic class that takes a DataFrame and a sub-class that takes a GRanges. Yes. I still think GRanges should be a subclass of DataFrame, which would make this easy, but I don't seem to be winning that argument. Just impossible. As

Re: [Bioc-devel] Changes to the SummarizedExperiment Class

2015-03-03 Thread Peter Haverty
I'd like to see a basic class that takes a DataFrame and a sub-class that takes a GRanges. I still think GRanges should be a subclass of DataFrame, which would make this easy, but I don't seem to be winning that argument. While the hood is up, can we try some different names? SummarizedExperiment

Re: [Bioc-devel] Changes to the SummarizedExperiment Class

2015-03-03 Thread Michael Lawrence
Seems like rowData could be made to work universallly through coercion. rowRanges would not, however, and one would like a convenient mechanism to condition on whether range information is available. One way is to introduce a new class and rely on dispatch. But that adds complexity. On Tue, Mar 3,

Re: [Bioc-devel] Changes to the SummarizedExperiment Class

2015-03-03 Thread Gabe Becker
Jim et al., Why have two accessors (rowRanges, rowData), each of which are less flexible than the underlying structure and thus will fail (return NULL? or GRanges()/DataFrame() ?) in some proportion of valid objects? ~G On Tue, Mar 3, 2015 at 2:37 PM, Jim Hester wrote: > Motivated by the discu

[Bioc-devel] Changes to the SummarizedExperiment Class

2015-03-03 Thread Jim Hester
Motivated by the discussion thread from November (https://stat.ethz.ch/ pipermail/bioc-devel/2014-November/006686.html) the Bioconductor core team is planning on making changes to the SummarizedExperiment class. Our end goal is to allow the @rowData slot to become more flexible and hold either a D