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. This evidence concerns the gene HCK and cancer.