Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

interp_map

Interpolate between maps


Description

Use interpolate to convert from one map to another

Usage

interp_map(map, oldmap, newmap)

Arguments

map

The map to be interpolated; a list of vectors.

oldmap

Map with positions in the original scale, as in map.

newmap

Map with positions in the new scale.

Value

Object of same form as input map but in the units as in newmap.

Examples

# load example data
iron <- read_cross2(system.file("extdata", "iron.zip", package="qtl2"))

# positions to interpolate from cM to Mbp
tointerp <- list("7" = c(pos7.1= 5, pos7.2=15, pos7.3=25),
                 "9" = c(pos9.1=20, pos9.2=40))

interp_map(tointerp, iron$gmap, iron$pmap)

qtl2

Quantitative Trait Locus Mapping in Experimental Crosses

v0.24
GPL-3
Authors
Karl W Broman [aut, cre] (<https://orcid.org/0000-0002-4914-6671>), R Core Team [ctb]
Initial release
2020-12-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.