In summary, we evaluated the immune infiltration patterns in MI based on GEO data from ssGSEA and constructed a nomogram containing 6 HUB(GIMAP7, GIMAP4, CCR2, NR4A2, CSTA, and S100A12) genes for the diagnosis of MI. The gene discussed is GIMAP7; the disease is myocardial infarction.