Learn R Programming

xoi (version 0.72)

countxo: Estimate number of crossovers

Description

Estimate the number of crossovers in each meiosis in a backcross.

Usage

countxo(cross, chr = NULL)

Value

A vector with the estimated number of crossovers for each individual.

Arguments

cross

An object of class cross. (This must be a backcross.) See qtl::read.cross() for details.

chr

Optional set of chromosomes across which to count crossovers. If NULL, the total number of crossovers, genome-wide, is counted.

Author

Karl W Broman, broman@wisc.edu

Details

This works only a backcross. We use the internal function (within R/qtl) locate.xo.

See Also

find.breaks()

Examples

Run this code

data(bssbsb)

# estimated number of crossovers on chr 1
nxo <- countxo(bssbsb, chr=1)

# estimated number of crossovers genome-wide
nxo <- countxo(bssbsb)

Run the code above in your browser using DataLab