The R scripts are all stored on GitHub:
Links to and descriptions of the R scripts used in the analysis may be found in the table below. The column "number" is a rough ordering of the scripts. More detail about the order can be found in the analysis flowchart below — click on the flowchart to see a larger version. A list of input and output files are given for each script.