Immunotherapies are commonly used for melanoma and NSCLC; in this study, by integrating somatic mutational profiles and clinical therapy information for the above two cancers, we determined that HSPG2 mutations were predictive of favorable immunogenicity and ICI efficacy. Here, HSPG2 is linked to cancer.