Notably, S100P displayed significant associations with immune cell infiltration and patient survival outcomes in both liver and lung cancers. Here, S100P is linked to lung carcinoma.