Learn R Programming

genoset (version 1.28.2)

numCallable: Count Rle positions >= min

Description

For Rle coverage vector, count number of positions where value >= min, think callable bases.

Usage

numCallable(rle, bounds, min)

Arguments

rle
integer Rle, no NAs
bounds
IRanges or matrix, positions in Rle to consider. If bounds is a matrix, the first two columns are used as start and end.
min
scalar integer, count Rle positions >= this value.

Value

  • integer vector of length nrow(bounds)