Nilanjan Chatterjee, Jianxin Shi, Montserrat García-Closas
Nature Reviews Genetics volume 17, pages392–406 (2016) https://www.nature.com/articles/nrg.2016.27
Let's check the calculations in these two implementations,
... starting by finding out if they produce the same result :-D !