find.marker {qtl}R Documentation

Find marker closest to a specified position

Description

Find the genetic marker closest to a specified position on a chromosome.

Usage

find.marker(cross, chr, pos)

Arguments

cross An object of class cross. See read.cross for details.
chr A vector of chromosome identifiers, or a single such.
pos A vector of cM positions.

Details

If the input chr has length one, it is expanded to the same length as the input pos.

If multiple markers are exactly the same distance from the specified position, one is chosen at random from among those with the most genotype data.

For a cross with sex-specific maps, the input positions are assumed to correspond to the female genetic map.

Value

A vector of marker names (of the same length as the input pos), corresponding to the markers nearest to the specified chromosomes/positions.

Author(s)

Karl W Broman, kbroman@jhsph.edu

See Also

find.flanking, plot.pxg

Examples

data(listeria)
find.marker(listeria, 5, 28)
find.marker(listeria, c(1, 5, 13), c(81, 28, 26))

[Package qtl version 0.98-57 Index]