Skip to content
Prev 5693 / 21312 Next

[Bioc-devel] [BioC] granges() method for GenomicRanges objects akin to ranges()...

Hi,

I have no problem using granges() for that. Just to clarify:
   (a) it would propagate the names()
   (b) it would drop the metadata()
   (c) the mcols() would propagate only if 'use.mcols=TRUE' was
       specified ('use.mcols' is FALSE by default)
   (d) it would return a GRanges *instance* i.e. input object 'x'
       would be downgraded to GRanges if it extends GRanges

@Kasper: granges() on SummarizedExperiment ignores the 'use.mcols'
arg and always propagates the mcols. Alternatively you can use rowData()
which also propagates the mcols. granges() is actually just an alias
for rowData() on SummarizedExperiment objects.

H.
On 05/05/2014 10:31 AM, Kasper Daniel Hansen wrote: