We use this approach to extract TCR repertoires from RNA-Seq data obtained from sorted tumor-infiltrating CD4+ and CD8+ T cells in an HKP1 (KrasG12Dp53−/−) syngeneic mouse model of lung cancer after anti-PD-1 treatment. Here, CD4 is linked to lung cancer.