Learn R Programming

mpMap2 (version 1.0.4)

getChromosomes: Get chromosome assignment per marker

Description

Get chromosome assignment per marker from an mpcross object.

Usage

getChromosomes(mpcrossMapped, markers)

Arguments

mpcrossMapped

The object containing the map of interest

markers

The markers for which we want the chromosomes

Value

A character vector, with names corresponding to markers, and values corresponding to the chromosome on which the named marker is located.

Details

Extract a character vector, with names corresponding to markers, and values corresponding to the chromosome on which the named marker is located.

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)
chromosomeAssignment <- getChromosomes(mappedCross, markers(mappedCross))
chromosomeAssignment
# }

Run the code above in your browser using DataLab