The hub genes S100A9 and MYH2 in COPD and NASH were identified by various bioinformatics methods and a diagnostic model was constructed to improve the diagnostic efficiency. Here, MYH2 is linked to metabolic dysfunction-associated steatohepatitis.