Learn R Programming

mpMap2 (version 1.0.4)

getPositions: Get positions of genetic markers

Description

Get positions of genetic markers, on their respective chromosomes

Usage

getPositions(mpcrossMapped, markers)

Arguments

mpcrossMapped

The mpcross object containing the map of interest

markers

The markers for which to get the positions

Value

A named vector of numbers, with names corresponding to the selected genetic markers, and values corresponding to genetic positions.

Details

Get positions of genetic markers in cM, on their respective chromosomes

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)
getPositions(mappedCross, c("D13M3", "DXM1", "DXM3"))
# }

Run the code above in your browser using DataLab