Learn R Programming

qtl (version 1.39-5)

convert.map: Change map function for a genetic map

Description

Convert a genetic map from using one map function to another.

Usage

"convert"(object, old.map.function=c("haldane", "kosambi", "c-f", "morgan"), new.map.function=c("haldane", "kosambi", "c-f", "morgan"), ...)

Arguments

object
A genetic map object, of class "map": A list whose components are vectors of marker locations.
old.map.function
The map function used in forming the map in object.
new.map.function
The new map function to be used.
...
Ignored at this point.

Value

The same as the input, but with inter-marker distances changed to reflect a different map function.

Details

The location of the first marker on each chromosome is left unchanged. Inter-marker distances are converted to recombination fractions with the inverse of the old.map.function, and then back to distances with the new.map.function.

See Also

est.map, replace.map

Examples

Run this code
data(listeria)
map <- pull.map(listeria)
map <- convert(map, "haldane", "kosambi")
listeria <- replace.map(listeria, map)

Run the code above in your browser using DataLab