dmap {MDSMap}R Documentation

Calculates pairwise map distances from the recombination fraction.

Description

Calculates pairwise map distances from the recombination fraction.

Usage

dmap(rf, mapfn = "haldane")

Arguments

rf

A symmetric matrix of pairwise recombination fractions.

mapfn

A character string specifying the map function to be used in calculated the distance 'haldane', 'kosambi', 'none'.

Details

The default is the 'haldane' map function 0.5\ln(1-2rf), 'kosambi' returns 0.25\ln((1+2rf)/(1-2rf)) and 'none' returns rf, the recombination fraction.

Value

a symmetric matrix of pairwise map distances in the same format as the recombination matrix supplied.

Examples

lodrf<-calc.pair.rf.lod(system.file("extdata", "lgV.txt", package="MDSMap"))
mdist=dmap(lodrf$rf,mapfn="haldane")

[Package MDSMap version 1.1 Index]