Learn R Programming

trackViewer (version 1.8.4)

coverageGR: 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

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

Run the code above in your browser using DataLab