calc_grid: Calculate indicators of which marker/pseudomarker positions are along a fixed grid
Description
Construct vectors of logical indicators that indicate which
positions correspond to locations along a grid
Usage
calc_grid(map, step = 0, off_end = 0, tol = 0.01)
Value
A list of logical (TRUE/FALSE) vectors that indicate, for a
marker/pseudomarker map created by
insert_pseudomarkers() with step>0 and
stepwidth="fixed", which positions correspond to he
locations along the fixed grid.
Arguments
map
A list of numeric vectors; each vector gives marker
positions for a single chromosome.
step
Distance between pseudomarkers and markers; if
step=0 no pseudomarkers are inserted.
off_end
Distance beyond terminal markers in which to insert
pseudomarkers.
tol
Tolerance for determining whether a pseudomarker would
duplicate a marker position.
Details
The function insert_pseudomarkers(), with
stepwidth="fixed", will insert a grid of pseudomarkers,
to a marker map. The present function gives a series of
TRUE/FALSE vectors that indicate which positions fall on the
grid. This is for use with probs_to_grid(), for
reducing genotype probabilities, calculated with
calc_genoprob(), to just the positions on the grid.
The main value of this is to speed up genome scan computations
in the case of very dense markers, by focusing on just a grid
of positions rather than on all marker locations.