Using data from 1769 patients from seven cancer types (bladder, glioblastoma, low-grade glioma, lung, melanoma, stomach, and pediatric glioma), we show that “somatic-like” germline variants are enriched for autosomal-dominant cancer-predisposition genes (p < 4.35 × 10−15), including TP53. Our framework identifies germline and somatic nonsense variants in BRCA2 and other Fanconi anemia genes in 11% (11/100) of bladder cancer cases, suggesting a potential genetic predisposition in these patients. Here, BRCA2 is linked to melanoma.