Correction to: Nature Communication ;; published online 10 January 2018

The original version of this article contained Figshare links in the Code availability statement that were not functional. The correct Figshare links to MATLAB scripts and R code used in this study are and, respectively. These errors have now been corrected in both the PDF and HTML versions of the article.