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

## Subset by overlaps method for `GenomciTiles`

### Description

Subsetting the `GenomicTiles` by a `GRanges` object

### Usage

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

### Arguments

`x` | A `GenomicTiles` 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 `GenomicTiles` object.

### Author(s)

Georg Stricker georg.stricker@in.tum.de

### Examples

    gt <- makeTestGenomicTiles()
    gr <- GRanges(c("chrI", "chrII"), IRanges(c(1, 120), c(40, 150)))
    res <- subsetByOverlaps(gt, gr)

[Package GenoGAM version 1.8.0 Index]