getNextStartPoint: getNextStartPoint

View source: R/summix_local.R

getNextStartPointR Documentation

getNextStartPoint

Description

Helper function: algorithm to get next start point; will pick the point that provides approx. the specified amount of overlap, but not more; if there are only two variants in the previous block, will jump new start point to the previous end point

Usage

getNextStartPoint(data, start, end, overlap)

Arguments

data

the input dataframe subset to the chromosome

start

the current index of start point

end

the current index of end point

overlap

the desired amount of window overlap (in bp or variants)

Value

returns index of new start point


hendriau/Summix documentation built on Nov. 13, 2024, 6:53 a.m.