subsetByOverlaps,GenoGAM,ANY-method {GenoGAM} | R Documentation

## Subset by overlaps method for `GenoGAM`

### Description

Subsetting the `GenoGAM` by a `GRanges` object

### Usage

    ## S4 method for signature 'GenoGAM,ANY'
    subsetByOverlaps(x, ranges)

### Arguments

`x` | A `GenoGAM` object.
`ranges` | A `GRanges` object

### Value

A subsetted `GenoGAM` object.

### Author(s)

Georg Stricker georg.stricker@in.tum.de

### Examples

    gg <- makeTestGenoGAM()
    gr <- GRanges("chrI", IRanges(1,40))
    subsetByOverlaps(gg, gr)

[Package GenoGAM version 1.8.0 Index]