iron <- read_cross2(system.file("extdata", "iron.zip", package="qtl2"))
# find markers by their genetic map positions
find_marker(iron$gmap, c(8, 11), c(37.7, 56.9))
# find markers by their physical map positions (two markers on chr 7)
find_marker(iron$pmap, 7, c(44.2, 108.9))
# find markers in an interval
find_marker(iron$pmap, 16, interval=c(35, 80))
Run the code above in your browser using DataLab