find_file_pos: find where the required data lies within the file

Description Usage Arguments Value

View source: R/alleles_ddd.R

Description

Seek in a file to the section containing the data that we want. We start with a reasonable guess about where in the file the data is located, but we seek up or downstream of that (depending on whether the data at that position is before or after the data that we want), then bisect to pin down where to start loading data from.

Usage

1
find_file_pos(path, start_pos)

Arguments

path

path to the datafile

start_pos

start position of the variant

Value

the approximate byte offset in the file (to within a few hundred bytes) where the required data starts


jeremymcrae/recessiveStats documentation built on May 19, 2019, 5:08 a.m.