Learn R Programming

pergola (version 1.0)

switchChrs: Switch Chromosomes

Description

Wrapper function to switch chromosomes for the whole map

Usage

switchChrs(map, comp)

Arguments

map
Map to switch.
comp
Other map for comparison.

Value

map

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)   
split <- sortLeafs(rfMat, split, method = "endlink")
map2 <- pullMap(rfMat, split = split)   
map <- switchChrs(map, map2)

Run the code above in your browser using DataLab