1
### =========================================================================
2
### Generic functions for squeezing the ranges out of a range-based object
3
### -------------------------------------------------------------------------
5
### Extract the ranges as a GRanges object.
6
setGeneric("granges", signature="x",
7
function(x, use.mcols=FALSE, ...) standardGeneric("granges")
10
### Extract the ranges as a GRangesList object.
11
setGeneric("grglist", signature="x",
12
function(x, use.mcols=FALSE, ...) standardGeneric("grglist")
15
### Extract the ranges as a RangesList object.
16
### TODO: This one should probably be in IRanges together with ranges(), which
17
### is another range-squeezer.
18
### TODO: For consistency the ranges() generic should also get the 'use.mcols'
19
### arg with default to FALSE.
20
setGeneric("rglist", signature="x",
21
function(x, use.mcols=FALSE, ...) standardGeneric("rglist")