~ubuntu-branches/ubuntu/wily/r-bioc-genomicranges/wily-proposed

« back to all changes in this revision

Viewing changes to R/range-squeezers.R

  • Committer: Package Import Robot
  • Author(s): Andreas Tille
  • Date: 2014-06-13 15:04:19 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20140613150419-v49mxnlg42rnuks5
Tags: 1.16.3-1
* New upstream version
* New (Build-)Depends: r-bioc-genomeinfodb
* cme fix dpkg-control
* add autopkgtest

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
### =========================================================================
 
2
### Generic functions for squeezing the ranges out of a range-based object
 
3
### -------------------------------------------------------------------------
 
4
 
 
5
### Extract the ranges as a GRanges object.
 
6
setGeneric("granges", signature="x",
 
7
    function(x, use.mcols=FALSE, ...) standardGeneric("granges")
 
8
)
 
9
 
 
10
### Extract the ranges as a GRangesList object.
 
11
setGeneric("grglist", signature="x",
 
12
    function(x, use.mcols=FALSE, ...) standardGeneric("grglist")
 
13
)
 
14
 
 
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")
 
22
)
 
23