Key marker genes such as BIRC3 and FOS were identified as potential prognostic factors, high BIRC3 expression was significantly associated with unfavorable prognosis, whereas high FOS expression correlated with favorable prognosis.<h4>Conclusion</h4>This study revealed functional heterogeneity of mast cell subsets in the TME of PC and their distinct roles in tumor progression. Here, FOS is linked to neoplasm.