This program now needs to correctly emit output for input query bedfiles with non-contiguous regions, e.g.
chr22 17083846 17084000 thing1
chr22 17084050 17084145 thing2
chr22 17076254 17081023 0 0
chr22 17081023 17083846 0.137252 0
chr22 17083846 17084017 4.00811 0.000387462396
chr22 17084017 17084145 1.91398e-06 0.001072849206
chr22 17084145 17086809 0.925629 0.00107284945098944
chr22 17086809 17087057 7.31739e-12 0.00353872510698944
The bolt format genetic map would currently look something like (bolt format, base 1):
chr position COMBINED_rate(cM/Mb) Genetic_Map(cM)
chr22 17083847 4.00811 0.000387462
chr22 17084051 1.91398e-06 0.00107285
This is incorrect. There needs to be an additional breakpoint in the output, corresponding to base-0 position 17084017, with rate 1.91398e-06. Otherwise, the first block incorrectly implies linearly interpolation with the first rate, 4.00811.