subsetByOverlaps,GenoGAMDataSet,GRanges-method {GenoGAM} | R Documentation

## Subset by overlaps method for `GenoGAMDataSet`

### Description

Subsetting the `GenoGAMDataSet` by a `GRanges` object

### Usage

    ## S4 method for signature 'GenoGAMDataSet,GRanges'
    subsetByOverlaps(x, ranges,
      maxgap = -1L, minoverlap = 0L, type = c("any", "start", "end", "within",
      "equal"), ...)

### Arguments

`x` | A `GenoGAMDataSet` object.
`ranges` | A `GRanges` object
`maxgap, minoverlap, type` | See `?findOverlaps` in the IRanges package for a description of these arguments.
`...` | Additional parameters

### Value

A subsetted `GenoGAMDataSet` object.

### Author(s)

Georg Stricker georg.stricker@in.tum.de

### Examples

    ggd <- makeTestGenoGAMDataSet()
    gr <- GRanges("chrI", IRanges(1,50))
    res <- subsetByOverlaps(ggd, gr)

[Package GenoGAM version 1.8.0 Index]