BackgroundImmunotherapy has resulted in impressive objective response rates and durable tumour remission, but only in a subset of gastric cancer (GC) patients. The PD-L1 combined positive score is the most widely used tissue-based biomarker for anti-PD-1/PD-L1 therapy; however, this unidimensional method has limitations. Next-generation exploration of tissue-based biomarkers for GC requires characterisation of various cellular markers and key immunoregulatory molecule expression in situ. Thus, a complete, stepwise solution covering the entire process from staining samples to cross-site utilisation of pathomics data is urgently needed. MethodsWith the advanced multispectral imaging analysis method, web-based data repository, and interactive sharing technology, we conducted a project entitled Gastric Cancer Multiplex Immunohistochemistry Atlas from Peking University Cancer Hospital (GMAP). We propose a standard pipeline covering sample collection, staining, scanning multispectral images, constructing a spectral library, identifying and phenotyping cells, positioning each element, and quantitatively extracting immune features. We designed an open-access relational database to explore tissue-based biomarkers to determine PD-1/PD-L1 blockade efficacy. ResultsThe GMAP project detected the functional status and spatial location of more than 50 million cells using 15 markers in 80 GC patients, based on which billions of cell pairs were recognised, highlighting the rich spatial arrangement information and the fine tumour microenvironment structure. We generated a tumour-immune atlas using the count and spatial features of 65 immune cell types. We eventually selected the indicators and built a comprehensive risk-scoring system. Patients with higher risk score showed superior immunotherapy-related progression-free survival (irPFS) (hazard ratio [HR]: 3.19; P < 0.001; median irPFS: 4.87 versus 19.87months, respectively) and immunotherapy-related overall survival (HR: 3.10; P = 0.001; median irPFS: 10.03 versus 24.87months, respectively) compared with lower risk patients, demonstrating their potential for guiding anti-PD-1/PD-L1-based immunotherapy. Importantly, an easy-to-use and versatile web server was built to promote tissue-based biomarker exploration in GC. ConclusionThe GMAP project highlighted the clinical value of tissue-based immune features as biomarkers for immunotherapeutic decision-making. We present a well-designed, detailed workflow for the orderly generation and use of a high-quality, spatially resolved pathological database.