PeteHaitch / MethylationTuples

An R package for analysing, managing and visualising methylation patterns at genomic tuples.
0 stars 0 forks source link

granges() and gtuples() #11

Open PeteHaitch opened 8 years ago

PeteHaitch commented 8 years ago

The granges,MethPat and granges,SparseMethPat object currently call rowRanges() (as of SummarizedExperiment 1.1.0 and SparseSummarizedExperiment f3a0e62). This means that the returned object is not strictly a GRanges object, since it will return a GTuples object in these cases. Should a patch be proposed to SummarizedExperiment so that granges(x) effectively calls granges(rowRanges(x))? Note that ?granges does point out that granges() is, somewhat unusually, both a "getter" and a "coercer".

There is a similar issue forgrglist(), although this does not seem to be currently used in the GenomicRanges or SummarizedExperiment packages.