convertxoloc: Convert format of crossover locations data

View source: R/util.R

convertxolocR Documentation

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)

Arguments

breaks

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

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.

Author(s)

Karl W Broman, broman@wisc.edu

See Also

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

Examples


data(bssbsb)

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

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


kbroman/xoi documentation built on May 1, 2023, 9:35 p.m.