Subset a map to positions on a grid
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.
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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.