Correction to: Nature Medicine https://doi.org/10.1038/s41591-019-0447-x, published online 20 May 2019.

In the version of this article originally published, there was an error in the phrase “This dataset contained 1,739 cases (27 cancer-positives)” in the main text. The number 1,739 should have been 1,139. There was also an error in the Fig. 4c legend. In the phrase “comprising n = 1,739 cases”, the number 1,739 again should have been 1,139. Additionally, in the Extended Data Fig. 5 legend, the phrase “AUC curve for the independent data test set with n = 1,739 cases” contained the same error. The number should have been 1,139 instead of 1,739. The errors have been corrected in the HTML and PDF versions of this article.