rnb.RnBSet.to.GRangesList {RnBeads} | R Documentation

## rnb.RnBSet.to.GRangesList

### Description

convert an `RnBSet` object to a `GRangesList` object

### Usage

    rnb.RnBSet.to.GRangesList(rnb.set, reg.type = "sites",
      return.regular.list = FALSE)

### Arguments

`rnb.set` | Object of class `RnBSet`
`reg.type` | region type to be converted
`return.regular.list` | flag indicating whether a regular `list` object should be returned instead of a `GRangesList`. Might improve performance in some cases

### Value

a `GRangesList` or `list` object with one list element (`GRanges`) for each sample in `rnb.set`

### Author(s)

Fabian Mueller

### Examples

    library(RnBeads.hg19)
    data(small.example.object)
    logger.start(fname=NA)
    result <- rnb.RnBSet.to.GRangesList(rnb.set.example)

[Package RnBeads version 2.0.1 Index]