Closed lgeistlinger closed 7 years ago
Seems like there are two things to implement setAs("RaggedExperiment", "GRangesList", ...)
and rowData(re)
, returning mcols(re@assays)
or similar. Hmm, but the elements of the GRangesList are individual samples, and mcols()
are the colData (i.e., metadata about the samples). Also, unlist(re@assays)
are approximately the rowRanges()
, but mcols(unlist(re@assays))
are the assays, not metadata on rows.
So in the end: only implement setAs()
LGeistlinger:
MMorgan:
yes, something like as(ra, "GRangesList") should work
setAs("RaggedExperiment", "GRangesList", function(from) from@assays)
(I think GRangesList(ra) might then work 'out of the box').