addOffset: Add offset

Description Usage Arguments Value Examples

View source: R/map.R

Description

Add offset to zero distance markers to allow computation of correlation between maps.

Usage

1
addOffset(map, offset = 0.1)

Arguments

map

One map. Required.

offset

Numeric value for offset.

Value

Map object.

Examples

1
2
3
4
5
6
7
data(simTetra)
simTetrageno <- basesToGenotypes(simTetra, 4)
rfMat <- calcRec(simTetrageno, 4)
split <- splitChr(rfMat, nchr = 7)
split <- sortLeafs(rfMat, split)
map <- pullMap(rfMat, split = split)
map <- addOffset(map)

grafab/pergola documentation built on May 17, 2019, 8:18 a.m.