Correction to: Nature Medicine https://doi.org/10.1038/s41591-023-02482-6, published online 7 August 2023.

In the version of the article initially published, in Table 1, five cancer types were mistakenly placed under incorrect groups. Invasive breast carcinoma (BRCA), Colorectal adenocarcinoma (COADREAD), Prostate adenocarcinoma (PRAD), Melanoma (MEL) and Gastrointestinal stromal tumor (GIST) now stand as individual cancer groups. In the fifth paragraph of the introduction, the fifth sentence has been updated to read “We applied this classifier, named OncoNPC, to 971 tumor samples from patients with CUP with clinical follow-up at Dana-Farber Cancer Institute (DFCI).” Additionally, Supplementary Data 3 and 5 were interchanged. These changes have been made in the HTML and PDF versions of the article.