Learn R Programming

pergola (version 1.0)

pullMap: Creates map object

Description

Creates map object from matrix of pairwise recombination frequencies.

Usage

pullMap(rf, split, fun = "haldane", corr = 1)

Arguments

rf
Matrix of pairwise recombination frequencies.
split
Split object.
fun
Function to space the markers on the map. Default is "haldane". Alternatives are "kosambi", "carter" and "none.
corr
Corrector, if recombinations are overestimated. Allows to multiply all spaces by a fixed factor.

Value

Ordered vector of marker locations. Each marker has a name attribute.

Examples

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

Run the code above in your browser using DataLab