map_to_grid | R Documentation |
Subset a map object to the locations on some grid.
map_to_grid(map, grid)
map |
A list of vectors of marker positions. |
grid |
A list of logical vectors (aligned with
|
This is generally for the case of a map created with
insert_pseudomarkers()
with step
>0 and
stepwidth="fixed"
, so that the pseudomarkers form a grid
along each chromosome.
Same list as input, but subset to just include pseudomarkers along a grid.
calc_grid()
, probs_to_grid()
grav2 <- read_cross2(system.file("extdata", "grav2.zip", package="qtl2"))
map_w_pmar <- insert_pseudomarkers(grav2$gmap, step=1)
sapply(map_w_pmar, length)
grid <- calc_grid(grav2$gmap, step=1)
map_sub <- map_to_grid(map_w_pmar, grid)
sapply(map_sub, length)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.