Learn R Programming

xoi (version 0.72)

convertxoloc: Convert format of crossover locations data

Description

Convert the format of data on crossover locations to that needed for the function fitGamma.

Usage

convertxoloc(breaks)

Value

A data frame with two columns: the inter-crossover and crossover-to chromosome end differences ("distance") and indicators of censoring type ("censor"), with 0 = distance between crossovers, 1=start of chromosome to first crossover, 2 = crossover to end of chromosome, and 3 = whole chromosome.

Arguments

breaks

A list of crossover locations, as output by find.breaks() or simStahl().

Author

Karl W Broman, broman@wisc.edu

See Also

find.breaks(), fitGamma(), simStahl()

Examples

Run this code

data(bssbsb)

# crossover locations on chromosome 1
xoloc1 <- convertxoloc(find.breaks(bssbsb, chr=1))

# crossover locations on all chromosomes
xoloc <- convertxoloc(find.breaks(bssbsb))

Run the code above in your browser using DataLab