Methods and compositions are provided for determining a pan-cancer clustering of cluster assignment (COCA) subtype of a cancer in an individual by detecting the expression level of at least one classifier biomarker selected from a group of classifier biomarkers for COCA subtypes. Also provided herein are methods and compositions for determining the response of an individual with a COCA subtype to a therapy such as immunotherapy.