getChromosomes: Get chromosome assignment per marker

Description Usage Arguments Details Value Examples

View source: R/getChromosomes.R

Description

Get chromosome assignment per marker from an mpcross object.

Usage

1

Arguments

mpcrossMapped

The object containing the map of interest

markers

The markers for which we want the chromosomes

Details

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

Value

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

Examples

1
2
3
4
5
6
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

rohan-shah/mpMap2 documentation built on July 21, 2020, 8:58 p.m.