rao: System of genetic-map functions

View source: R/functions.R

raoR Documentation

System of genetic-map functions

Description

Calculation of genetic distances from recombination rates given a mixing parameter

Usage

rao(p, x, inverse = F)

Arguments

p

mixing parameter (see details); 0 <= p <= 1

x

vector of recombination rates

inverse

logical, if FALSE recombination rate is mapped to Morgan unit, if TRUE Morgan unit is mapped to recombination rate (default is FALSE)

Details

Mixing parameter p=0 would match to Morgan, p=0.25 to Carter, p=0.5 to Kosambi and p=1 to Haldane map function. As an inverse of Rao's system of functions does not exist, NA will be produced if inverse = T. To approximate the inverse call function rao.inv(p, x).

Value

vector of genetic positions in Morgan units

References

Rao, D.C., Morton, N.E., Lindsten, J., Hulten, M. & Yee, S (1977) A mapping function for man. Human Heredity 27: 99-104. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1159/000152856")}

Examples

  rao(0.25, seq(0, 0.5, 0.01))

hsrecombi documentation built on June 7, 2023, 6:02 p.m.