Learn R Programming

pergola (version 1.0)

add_offset: Add offset

Description

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

Usage

add_offset(map, offset = 0.1)

Arguments

map
One map. Required.
offset
Numeric value for offset.

Value

Map object.

Examples

Run this code
data(simTetra)
simTetrageno <- bases2genotypes(simTetra, 4)
rfMat <- calcRec(simTetrageno, 4)
split <- splitChr(rfMat, nchr = 7)
split <- sortLeafs(rfMat, split)
map <- pullMap(rfMat, split = split)   
map <- add_offset(map)

Run the code above in your browser using DataLab