The dysfunction of CD8+ T cells in AIS and early-stage LUAD is associated with decreased effector function and a shift toward a memory phenotype. Here, CD8A is linked to androgen insensitivity syndrome.