calc_grid | R Documentation |
Construct vectors of logical indicators that indicate which positions correspond to locations along a grid
calc_grid(map, step = 0, off_end = 0, tol = 0.01)
map |
A list of numeric vectors; each vector gives marker positions for a single chromosome. |
step |
Distance between pseudomarkers and markers; if
|
off_end |
Distance beyond terminal markers in which to insert pseudomarkers. |
tol |
Tolerance for determining whether a pseudomarker would duplicate a marker position. |
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.
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.
insert_pseudomarkers()
, probs_to_grid()
,
map_to_grid()
iron <- read_cross2(system.file("extdata", "iron.zip", package="qtl2"))
gmap_w_pmar <- insert_pseudomarkers(iron$gmap, step=1)
grid <- calc_grid(iron$gmap, step=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.