bp2seg: convert a vector of breakpoints incl. 1 and n into a list of...

Description Usage Arguments Value

View source: R/consseg_r.R

Description

convert a vector of breakpoints incl. 1 and n into a list of adjacent segments, starting at the breakpoints and ending 1 before the next start/breakpoint

Usage

1
bp2seg(bp, trim.ends = FALSE)

Arguments

bp

vector of breakpoints.

trim.ends

assume that breakpoints are starts of segments, and the ends are the next breakpoint -1, EXCEPT for the last breakpoint, which corresponds to the total sequence length and is a true end.

Value

a data.frame with start and end positions of each segment


Bierinformatik/consseg documentation built on March 18, 2021, 1:33 p.m.