swapChrs: Swap chromosomes

Description Usage Arguments Value Examples

View source: R/map.R

Description

Finds best matching chromosome for each chromosome and brings them into the same order.

Usage

1
swapChrs(map, comp)

Arguments

map

Map to switch.

comp

Other map for comparison.

Value

map

Examples

1
2
3
4
5
6
7
8
9
data(simTetra)
simTetrageno <- basesToGenotypes(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 <- swapChrs(map, map2)

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