We apply spatial metabolomics and K-means clustering method to identify metabolically distinct tumour subpopulations of HER2-positive advanced GC from routinely preserved pretherapeutic biopsies, and assess their relationships with the response to trastuzumab treatment. The gene discussed is ERBB2; the disease is gastric cancer.