SummarizedExperiment icon indicating copy to clipboard operation
SummarizedExperiment copied to clipboard

Should `rowData` be merged with `mcols(gr)`?

Open LiNk-NY opened this issue 4 years ago • 2 comments

Hi Hervé, @hpages I have an example here:

library(GenomicRanges)
library(SummarizedExperiment)
example(GRanges)
example(SummarizedExperiment)
ss <- se[1:10, ]
rowData(ss)
rowRanges(ss) <- gr
rowData(ss)
## equivalently
mcols(ss) 

Shouldn't rowData(ss) be a combination of the previous object's rowData and the mcols of the merged GRanges, i.e., DataFrame(rowData(ss), mcols(gr))?

Thank you, Marcel

LiNk-NY avatar Jul 25 '19 19:07 LiNk-NY