Critically, our identified OSA-MDD hub genes (CD74 and RPL26L1) correlate significantly with immune cell infiltration, while differential infiltration patterns between patients and controls implicate immune-mediated mechanisms in OSA-MDD shared pathogenesis. This evidence concerns the gene RPL26L1 and major depressive disorder.