Sometimes I have a GRangeList object and I want to modify the mcols of the underlying GRanges object. The only way I know to do this is to do something like:
grl@unlistData$newColumn <- newValue
But that unfortunately breaks the GRangesList abstraction by directly accessing the slot. Is there any way to do this without resorting to slot access?
(To be clear, I'm aware that the GRangesList also has its own separate set of mcols, and those are not what I'm trying to access.)