simIBD: Simulate IBD sections between two samples

Description Usage Arguments

View source: R/data.R

Description

Walks along a vector of genomic locations and swiches between two states that represent IBD and non-IBD using a Markov model. The parameters that dictate the chance of switching state at any point include the average level of relatedness (f), the physical distance between loci in units of base pairs (from pos), and the recombination rate (rho), which is assumed constant over all loci.

Usage

1
simIBD(f, k, rho, pos)

Arguments

f

the average relatedness between the two samples

k

the number of generations separating the two lineages

rho

the recombination rate. TODO - units of this parameter

pos

the genomic positions of the sites of interest


nickbrazeau/polyIBD documentation built on Dec. 1, 2019, 11:53 p.m.