powered by
Load genetic map
loadMap(path)
A data frame.
Path to a map file, which should contain columns Marker, Chr, cM. (Slight variations are allowed.)
Marker
Chr
cM
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