interp_map: Interpolate between maps

Description Usage Arguments Value Examples

View source: R/interp_map.R

Description

Use interpolate to convert from one map to another

Usage

1
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

1
2
3
4
5
6
7
8
9
# load example data
library(qtl2geno)
iron <- read_cross2(system.file("extdata", "iron.zip", package="qtl2geno"))

# 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)

rqtl/qtl2scan documentation built on May 28, 2019, 2:36 a.m.