Beyond confirming the involvement of EDNRB and TMEM27 in diabetes or COPD, our study reveals their interactions with immune cell infiltration and metabolic pathways in both diseases. This evidence concerns the gene EDNRB and diabetes mellitus.