loadMap: Load genetic map

View source: R/loadMap.R

loadMapR Documentation

Load genetic map

Description

Load genetic map

Usage

loadMap(path)

Arguments

path

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

Value

A data frame.

Examples

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))


KLINK documentation built on April 21, 2026, 5:10 p.m.