# Chromosome 1 of the built-in recombination map
map = loadMap(chrom = 1)[[1]]
head(map$male)
# Conversion Mb -> cM
phys = 1:5
gen = convertPos(Mb = phys, map = map, sex = "male")
gen
# Convert back (note the first position, which was outside of map)
convertPos(cM = gen, map = map, sex = "male")
Run the code above in your browser using DataLab