Learn R Programming

KLINK (version 1.1.0)

loadMap: Load genetic map

Description

Load genetic map

Usage

loadMap(path)

Value

A data frame.

Arguments

path

Path to a map file, which should contain columns Marker, Chr, cM. (Slight variations are allowed.)

Examples

Run this code
tmp = tempfile(fileext = ".map")
map1 = as.data.frame(norSTR::map50)
write.table(map1, tmp, sep = "\t", quote = FALSE, row.names = FALSE)

map2 = loadMap(tmp)
stopifnot(all.equal(map1, map2))

Run the code above in your browser using DataLab