Build a per-chromosome monotone Hyman spline (a Marey map) through a consensus
map's (bp, cm) pairs, clamped to each chromosome's observed range, and return
a vectorized function(chr, x). Duplicate coordinates are collapsed by mean.
The default map is the bundled B73 v5 consensus map; pass any data frame with
chr, bp, cm columns to use your own (e.g. a population's native map).
Arguments
- map
A consensus map with columns
chr,bp,cm. Defaults toload_map()(bundled B73 v5).