expand_rle: Insert into Rle runLength.

Description Usage Arguments Value Examples

Description

Insert into Rle runLength.

Usage

1
expand_rle(rle, size)

Arguments

rle

Rle object to expand

size

Rle with runValues of 1 for no insertion and runValues of > 1 corresponding to insertions. The runLength encodes the positions of insertions in rle

Value

Rle with insertions

Examples

1
2
3
4
rle <- S4Vectors::Rle(c("a", "a", "a", "b", "c", "c"))
rle
size <- S4Vectors::Rle(c(1, 2, 1, 2, 2, 1))
kmap:::expand_rle(rle, size)

coregenomics/kmap documentation built on June 4, 2019, 4:11 p.m.