optimizeReads {ORFik} | R Documentation

## Find optimized subset of valid reads

### Description

Keep only the ones that overlap within the grl ranges. Also sort them in the end

### Usage

    optimizeReads(grl, reads)

### Arguments

`grl` | a `GRangesList` or GRanges object
`reads` | a GRanges, GAlignment or GAlignmentPairs object

### Value

the reads as GRanges, GAlignment or GAlignmentPairs

### See Also

Other utils: `bedToGR()`, `convertToOneBasedRanges()`, `export.bed12()`, `export.bigWig()`, `export.wiggle()`, `fimport()`, `findFa()`, `fread.bed()`, `readBam()`, `readBigWig()`, `readWig()`

[Package ORFik version 1.12.13 Index]