Learn R Programming

mpMap2 (version 1.0.4)

reverseChromosomes: Reverse the order of the specified chromosomes

Description

Create a new object, with the specified chromosomes reversed

Usage

reverseChromosomes(mpcrossMapped, chromosomes)

Arguments

mpcrossMapped

The initial object, for which we want to reverse some of the chromosomes

chromosomes

The names of the chromosomes to reverse

Value

An object of class mpcrossMapped, with certain chromosomes reversed.

Details

Create a new object, with the specified chromosomes reversed

Examples

Run this code
# NOT RUN {
map <- qtl::sim.map()
pedigree <- f2Pedigree(1000)
cross <- simulateMPCross(map = map, pedigree = pedigree, mapFunction = haldane, seed = 1)
mappedCross <- mpcrossMapped(cross = cross, map = map)
reversedX <- reverseChromosomes(mappedCross, "X")
reversedX@map[["X"]]
mappedCross@map[["X"]]
# }

Run the code above in your browser using DataLab