Script and code that I have made available online. Most of it is written in MATLAB and available on GitHub, where you can simply download it.
Github: https://github.com/salonikrishnan
Links to data from previous studies and related code is on the Open Science Framework.
OSF: osf.io/y4238
The resources listed by the new WIN Open Imaging Working Group may also be of interest.