When a tumor migrates and colonizes another tissue or organ, it can be identified as a metastasis, but its origin is not always clear. Now, a study based on machine learning has identified DNA-methylation patterns that reveal the type of tissue a cancer comes from when the primary tumor cannot be found. This technique could help guide more specific treatments for patients with cancers of unknown primary, who today often receive broad, nontargeted chemotherapy.