extractCoverageForPositions {VariantTools} | R Documentation

## Get Coverage at Positions

### Description

Gets values from an `RleList` corresponding to positions (width 1 ranges) in a `GRanges` (or `VRanges`). The result is a simple atomic vector.

### Usage

    extractCoverageForPositions(cov, pos)

### Arguments

`cov` | An `RleList` like that returned by `coverage`.
`pos` | A `GRanges` consisting only of width-1 ranges.

### Value

Atomic vector with one value from `cov` per position in `pos`.

### Author(s)

Michael Lawrence

[Package VariantTools version 1.22.0 Index]