A Validated Interactive Google Colab Workflow for Segmentation and Quantitative Analysis of Multiplex Immunofluorescence and Chromogenic Immunohistochemistry

Bio-protocol

November 19, 2026 DOI: 10.21769/BioProtoc.5890

Arun Viswanathan,Kuzhuvelil B. Harikumar

Abstract

Quantitative analysis of multiplex immunofluorescence and chromogenic immunohistochemistry commonly requires specialized software, local installation, scripting experience, or substantial manual processing. Here, we describe a browser-based Google Colab workflow that enables researchers to perform cell segmentation, staining quantification, phenotypic classification, quality control, and data export through interactive controls without editing code or installing software locally. The notebook provides separate branches for fluorescence and chromogenic analysis. The fluorescence branch supports multichannel images and z-stacks, segments nuclei using pretrained Cellpose models, constructs nuclear or expanded cell-measurement regions, and quantifies per-cell fluorescence intensity and morphology. Marker-positive, double-positive, and triple-positive populations can be classified using user-selected thresholds, and results can be exported as CSV, XLSX, or FCS 3.1 files. Technical concordance was evaluated using a publicly available 44-channel t-CyCIF tonsil image and its published single-cell measurements. DNA1 re-segmentation produced 61,173 objects, of which 17,614 were matched to published cells using predefined centroid-distance and area-ratio criteria. Continuous fluorescence agreement and independently thresholded positive-cell classifications were assessed across DNA1 and 26 biological-marker channels. The chromogenic branch was evaluated in two complementary settings. First, perinuclear measurements were compared with pathologist-assigned HER2 grades using a balanced set of 4,000 image patches. The workflow correctly reproduced the four HER2 grades in approximately seven out of ten patches, with stronger agreement for perinuclear measurements than for nuclear measurements. Second, the workflow was tested against Human Protein Atlas staining-intensity annotations across 1,709 cancer tissue cores, covering 22 antibodies and 20 cancer types. Agreement was above the level expected by chance and remained similar when thresholds were fitted on one subset of cores and evaluated on a separate subset of cores, indicating that the results were not driven solely by scoring the same samples used to set the thresholds. This workflow provides an accessible and reproducible starting point for quantitative fluorescence and chromogenic image analysis.