generateRecombinationDistances {sim1000G}R Documentation

Generate inter-recombination distances using a chi-square model. Note this are the distances between two succesive recombination events and not the absolute positions of the events. To generate the locations of the recombination events see the example below.

Description

Generate inter-recombination distances using a chi-square model. Note this are the distances between two succesive recombination events and not the absolute positions of the events. To generate the locations of the recombination events see the example below.

Usage

generateRecombinationDistances(n)

Arguments

n

Number of distances to generate

Value

vector of distances between two recombination events.

Examples


library("sim1000G")

distances = generateRecombinationDistances(20)


positions_of_recombination = cumsum(distances)

if(0) hist(generateRecombinationDistances(20000),n=100)


[Package sim1000G version 1.40 Index]