Our study demonstrated significant correlations between key feature genes (ACSF3, AK3, LYRM4, and PDHB) and immune cell infiltration, particularly macrophages and T cells, which are pivotal in TB control. Here, LYRM4 is linked to tuberculosis.