coverageGR {trackViewer} | R Documentation

## calculate coverage

### Description

calculate coverage for `GRanges`, `GAlignments` or `GAlignmentPairs`

### Usage

    coverageGR(gr)

### Arguments

`gr` | an object of RGanges, GAlignments or GAlignmentPairs

### Value

an object of GRanges

### See Also

See Also as `coverage`, `coverage-methods`

### Examples

    bed <- system.file("extdata", "fox2.bed", package="trackViewer",
                       mustWork=TRUE)
    fox2 <- importScore(bed)
    fox2$dat <- coverageGR(fox2$dat)

[Package trackViewer version 1.24.2 Index]