Thanks for explaining this. I tested this code out in R using one of the hg19 files provided by impute2 but the values of m do not match (or even really resemble) the COMBINED_rate column. Have I done something wrong or missed a step?
pos=map[,1]
rate=map[,3]
N=length(pos)
dm=c(0,0.0000001* rate[-N] * (pos[-1]-pos[-N]))
m=cumsum(dm)
map$m=m
head(map,66)
position COMBINED_rate.cM.Mb. Genetic_Map.cM. m
1 55550 0.0000000 0.0000000 0.0000000000
2 568322 0.0000000 0.0000000 0.0000000000
3 568527 0.0000000 0.0000000 0.0000000000
4 721290 2.6858077 0.4102920 0.0000000000
5 723819 2.8222713 0.4174296 0.0001037629
6 723891 2.9813106 0.4176442 0.0001067683
7 728242 2.9806151 0.4306129 0.0002884853
8 729948 3.0780969 0.4358641 0.0003619479
9 740857 3.0751333 0.4694107 0.0008374321
10 750235 1.7834967 0.4861364 0.0012776454
11 752566 1.1323778 0.4887759 0.0013909638
12 754192 0.5926495 0.4897396 0.0014704388
13 754745 0.3843793 0.4899521 0.0014975214
14 765948 0.4143187 0.4945938 0.0020464148
15 767070 0.4476843 0.4950961 0.0021019082
16 768448 0.4482707 0.4957138 0.0021701324
17 769551 0.4503094 0.4962105 0.0022248097
18 771521 0.4573571 0.4971115 0.0023225631
19 774047 0.4689815 0.4982961 0.0024481335
20 775659 0.4607820 0.4990389 0.0025284588
21 776546 0.4547785 0.4994423 0.0025727236
22 777122 0.4539713 0.4997038 0.0026014915
23 777513 0.4559979 0.4998821 0.0026210299
24 779322 0.4564198 0.5007077 0.0027114585
25 780027 0.4564688 0.5010295 0.0027467584
26 780785 0.4560405 0.5013752 0.0027847365
27 784023 0.4560154 0.5028518 0.0029470818
28 784904 0.4651660 0.5032616 0.0029913830
29 785050 3.1979933 0.5037285 0.0029987306
30 785989 4.1068312 0.5075848 0.0030460307
31 792480 4.4923191 0.5367445 0.0033755040
32 798026 5.7728685 0.5687608 0.0036731825
@rshoobs Did you solve this?