Finally, immune infiltration and pan-cancer analyses were performed for the identified key genes.<h4>Results</h4>TRL2, S100A9, and HCK were identified as key genes related to lipid metabolism in AMI. The gene discussed is S100A9; the disease is cancer.