extractCoverageForPositions: Get Coverage at Positions

View source: R/sampleSpecific.R

extractCoverageForPositionsR 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


lawremi/VariantTools documentation built on March 4, 2024, 11:54 a.m.