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 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 June 8, 2025, 11:42 a.m.