# Tumor cells near immune cells show small average differences in a cell-division marker

Researchers use tissue images to ask whether immune cells are restraining cancer-cell growth. Images show which cells are close together, but proximity alone leaves that question unsettled. We examined public breast, lung and colorectal cancer datasets, comparing tumor-cell Ki67, a protein associated with cell proliferation (the production of new cells by division), with distance to an immune-cell group called CD8 T cells. These cells carry the protein cluster of differentiation 8 (CD8) and include cells capable of killing cancer cells. Average associations were small: adjusted rank correlations were −0.0074, +0.0146 and −0.0137, respectively. These correlations compare cells within the same tissue sample; positive values mean higher Ki67 signal nearer CD8 cells.

In lung, the share of tumor cells in the top fifth of their sample's Ki67 signal was 22.9% within 15 micrometers (µm) of a CD8 cell and 19.6% at least 25 µm away. Yet 33 of 40 other lung protein measurements also increased with proximity, and Ki67 ranked only 15th among 41 protein measurements. Breast and colorectal Ki67 likewise accompanied predominantly negative associations for other proteins. The lung–breast correlation difference fell from 0.0220 to 0.0023 after excluding cells within 25 µm of CD8 cells. The small average Ki67 differences therefore sit within broader changes in measured protein signals, providing little support for interpreting the difference between cohorts as a difference in proliferation.

## Background

Multiplex imaging measures many proteins while preserving cell locations, making it possible to ask whether tumor cells nearer immune cells have lower Ki67 signal. Each comparison here is within a tissue core, a small tissue sample mounted with others in a tissue microarray. This compares tumor cells sharing a local tissue setting.

The three source studies provide protein measurements and cell locations in different cancers. Danenberg and colleagues linked the organization of cells around breast tumors to genomic features and clinical outcome. Cords and colleagues related the types and locations of fibroblasts, connective-tissue cells, to outcome in non-small-cell lung cancer. Schürch and colleagues described groups of neighboring cells at the invasive front, where colorectal cancer extends into surrounding tissue. Their public measurements allow us to compare proximity and Ki67. [Danenberg et al., 2022](https://doi.org/10.1038/s41588-022-01041-y); [Cords et al., 2024](https://doi.org/10.1016/j.ccell.2023.12.021); [Schürch et al., 2020](https://doi.org/10.1016/j.cell.2020.07.005).

Densely packed tumor cells and surrounding support tissue differ in both cell state and distances between cells. We adjusted for cell density, the local balance of malignant (cancer) cells and structural cells, and position within the image. Structural cells here comprise connective-tissue support cells and blood-vessel cells, excluding lymphocytes, the immune-cell class that includes T cells. We also repeated the analysis with every other measured protein in place of Ki67 on the same malignant cells. This tests whether the association is specific to the proliferation marker or accompanies broader changes in protein signal.

## Results

### Average Ki67 associations are small

The common analysis included 445 breast, 980 lung and 30 colorectal patients. For each malignant cell far enough inside the image boundary to measure proximity reliably, we measured distance to the center of the nearest cell labeled as CD8. Distances above 50 µm were treated as equal. We ranked both proximity and Ki67 intensity within each core and calculated their correlation. We then adjusted the ranks for local tissue composition and position before calculating the adjusted correlation. Positive correlations indicate higher Ki67 signal closer to CD8 cells. Correlations were averaged across cores within each patient, and each patient received equal weight. The 95% confidence intervals (CIs) describe uncertainty from resampling patients.

| Cohort | Patients / cores | Malignant cells | Raw correlation | Adjusted correlation (95% CI) |
|---|---:|---:|---:|---:|
| Breast | 445 / 473 | 350,258 | −0.0264 | −0.0074 (−0.0129, −0.0021) |
| Lung | 980 / 1,652 | 2,306,795 | +0.0379 | +0.0146 (+0.0119, +0.0174) |
| Colorectal | 30 / 77 | 34,530 | −0.0613 | −0.0137 (−0.0338, +0.0049) |

Table 1. Mean within-core Ki67–proximity rank correlations. Adjustment includes cell density, the balance of malignant and structural cells, distance to structural cells, smooth changes with image position, and separate baseline values for 100-µm squares. Intervals come from repeatedly sampling patients with replacement, a procedure called the patient bootstrap.

The lung-minus-breast difference was 0.0220 (95% CI 0.0161–0.0281). Adjustment reduced a larger raw difference of 0.0643. Patient-level adjusted correlations varied around these small means, with standard deviations of 0.057 in breast, 0.045 in lung and 0.055 in colorectal cancer. Restricting breast malignant cells to those labeled as epithelial (tissue-lining cells) by both the original study and the standardized cross-study annotations gave −0.0086 (−0.0142, −0.0030; 429 patients).

A high-signal threshold makes the size of the association more concrete. We defined high signal as the top fifth of Ki67 ranks within a core, then compared cells near and farther from CD8 cells on the same eligible cores (Table 2). These unadjusted fractions describe relative signal within each core.

| Cohort | Patients | Within 15 µm | At least 25 µm | Near minus far (95% CI) |
|---|---:|---:|---:|---:|
| Breast | 339 | 17.9% | 20.4% | -2.5 (-3.7, -1.3) |
| Lung | 951 | 22.9% | 19.6% | +3.2 (+2.7, +3.8) |
| Colorectal | 29 | 17.0% | 22.1% | -5.0 (-7.5, -2.5) |

Table 2. Equal-patient mean high-signal fractions. Each core has at least five malignant cells in each distance group. Differences are percentage points with patient-bootstrap 95% intervals. These subsets differ from Table 1 because both distance groups must be represented.

### Ki67 associations accompany broader marker shifts

The comparison with the full set of measured proteins, or marker panel, gives little evidence that Ki67 stands apart in any cohort (Figure 1A). Each imaging channel measures a protein signal. In breast, 25 of 36 comparison channels had negative correlations; the median coefficient was −0.0089, compared with −0.0074 for Ki67. Ki67 ranked 18th from highest to lowest among 37 protein measurements. Subtracting each patient's median correlation for the comparison markers from that patient's Ki67 correlation gave a mean Ki67 excess of +0.0012 (95% CI −0.0042, +0.0066).

In lung, 33 of 40 comparison channels were positive, with a median of +0.0122. Ki67 ranked 15th among 41 protein measurements. Its mean patient-level Ki67 excess over the panel median was +0.0024 (−0.0001, +0.0049). In colorectal cancer, 46 of 55 comparison channels were negative, the median was −0.0082, and Ki67 ranked 43rd among 56 proteins. Its paired excess was −0.0051 (−0.0220, +0.0118). The lung-minus-breast contrast between these patient-level Ki67 excesses was +0.0012 (−0.0047, +0.0072). These comparisons provide little evidence that the Ki67 association is distinct from the associations for other measured proteins.

We also examined signals from proteins used to identify immune cells: cluster of differentiation 3 (CD3) and CD8 mark T cells, while cluster of differentiation 20 (CD20) marks B cells, the immune cells responsible for antibody responses. Measuring these signals in cells labeled as malignant provides a check on how specifically the image measurements separate cell types. Their associations with CD8 proximity differed across cohorts (Table 3). Breast malignant-cell CD3 and CD8 signals had correlations near zero, while CD20 was negative. Lung correlations were positive for all three, and colorectal correlations were negative. Subtracting each patient's median correlation for these three controls from their Ki67 correlation gave −0.0019 (−0.0086, +0.0049) in breast, −0.0133 (−0.0161, −0.0104) in lung and +0.0170 (−0.0053, +0.0404) in colorectal cancer.

| Marker outcome | Breast | Lung | Colorectal |
|---|---:|---:|---:|
| Ki67 | -0.0074 | +0.0146 | -0.0137 |
| CD3 | -0.0008 | +0.0267 | -0.0333 |
| CD8 | -0.0001 | +0.0497 | -0.0430 |
| CD20 | -0.0155 | +0.0086 | -0.0146 |
| Comparison-panel median | -0.0089 | +0.0122 | -0.0082 |

Table 3. The same adjusted model applied to different protein signals in malignant cells. Coefficients are means that weight each patient equally. The panel-median row is the median of the comparison markers' cohort means; the Ki67-minus-panel comparisons use each patient's own median.

In lung, subtracting the correlation for histone H3, a protein in the cell nucleus, from the Ki67 correlation gave 0.0017 (95% CI −0.0012, +0.0047). Adjusting for a malignant cell's own measured CD8 intensity reduced the Ki67–proximity correlation from +0.0146 to +0.0069 (+0.0043, +0.0095). The lung association thus accompanies changes in both a nuclear protein and immune-cell markers.

![Marker controls and common distance exclusions](results/figure2_marker_distance.png)

Figure 1. A: each colored dot is a comparison protein's mean adjusted correlation on the same malignant cells; black diamonds show Ki67 with patient-bootstrap 95% intervals. Stains for deoxyribonucleic acid (DNA), the genetic material in cells, are excluded. B: all cohorts use the same model, which treats distances above 50 µm as equal, after successively removing malignant cells closest to CD8 cells. The retained malignant-cell population and eligible patients change with each exclusion. All intervals resample patients.

### The lung–breast contrast is concentrated within 25 µm

Removing close pairs attenuated both the inverse breast and positive lung associations. After excluding malignant cells within 25 µm of CD8 cells, the lung-minus-breast difference was 0.0023 (95% CI −0.0038, +0.0085), compared with 0.0220 before exclusion (Table 4). The colorectal estimate remained negative, with an interval that includes zero (Table 4). The attenuation in breast and lung places their contrast mainly among cells closest to CD8 cells.

| Minimum distance | Breast | Lung | Colorectal | Lung minus breast |
|---|---|---|---|---|
| 0 µm | -0.0074 (-0.0129, -0.0021) | +0.0146 (+0.0119, +0.0174) | -0.0137 (-0.0338, +0.0049) | +0.0220 (+0.0161, +0.0281) |
| 10 µm | -0.0058 (-0.0112, -0.0003) | +0.0117 (+0.0090, +0.0144) | -0.0101 (-0.0281, +0.0075) | +0.0175 (+0.0113, +0.0236) |
| 15 µm | -0.0020 (-0.0073, +0.0033) | +0.0071 (+0.0045, +0.0097) | -0.0124 (-0.0328, +0.0080) | +0.0091 (+0.0031, +0.0151) |
| 25 µm | +0.0004 (-0.0050, +0.0059) | +0.0028 (+0.0000, +0.0055) | -0.0190 (-0.0396, +0.0022) | +0.0023 (-0.0038, +0.0085) |

Table 4. Mean adjusted correlations and direct cohort contrasts, with 95% patient-bootstrap intervals. All analyses retain the same image-border exclusion rule and cap distances at 50 µm. At 25 µm, the breast, lung and colorectal analyses retain 436, 961 and 27 patients, respectively.

We also compared proximity to CD8 T cells with proximity to CD4 T cells, another T-cell group involved in coordinating immune responses and identified by the protein cluster of differentiation 4 (CD4). Both analyses used the same malignant cells. This tests whether the Ki67 association differs between the two immune-cell groups. The adjusted CD8-minus-CD4 difference was −0.0004 (95% CI −0.0087, +0.0076) in breast, +0.0177 (+0.0140, +0.0214) in lung and +0.0080 (−0.0152, +0.0328) in colorectal cancer. The positive lung contrast therefore coexists with its broad marker shift.

## Discussion

CD8 proximity is associated with small average differences in tumor-cell Ki67 signal in these cohorts. In lung, higher Ki67 near CD8 cells accompanies a broad rise in measured proteins, including immune-cell markers assigned to malignant cells. In breast and colorectal cancer, Ki67 accompanies predominantly negative associations across the protein panel. The negative breast association is comparable in size to those of other proteins. The breast–lung contrast is concentrated at distances below about 25 µm. The marker comparisons provide little support for reading this contrast as a difference in proliferation.

The distribution of measured Ki67 differs substantially across the imaging assays. Zero Ki67 signal accounts for 36.5%, 0.5% and 20.0% of eligible malignant cells in breast, lung and colorectal cancer, respectively, averaged equally across patients. Ranks accommodate different intensity units but retain ties and background variation. The top-fifth threshold describes relative signal. Estimating the fraction of proliferating cells would require a validated threshold for Ki67 signal in the nucleus. Interpreting immune proximity through such protein measurements requires checks specific to the marker being measured.

Each cancer has one source cohort, so cancer type is inseparable from sampling, antibody panel and processing. Marker comparisons test specificity; they are not validated corrections and cannot distinguish signal mixing between cells, cell-labeling errors and shared biological changes. Distance exclusions change both the cells analyzed and the distance range, so they cannot separate short-range biology from measurement effects. Image-border exclusions leave tissue holes and some tissue edges unmodeled, and eligibility favors regions with sufficient tumor and immune cells. Averages can conceal patient differences. These exploratory intervals do not account for the choice among analysis specifications. Fixed tissue sections cannot establish immune killing or subsequent tumor growth.


## Methods

### Public measurements and cohort definitions

We combined original single-cell measurements with cell labels and image information from Spora, a public collection that standardizes spatial protein-imaging datasets. Breast coordinates and Ki67 intensities were available in its cell table. Lung values came from the original public tables produced by CellProfiler, image-analysis software, and colorectal values from the original single-cell release. [Spora documentation](https://spora.epfl.ch/docs/); [lung data](https://doi.org/10.5281/zenodo.7961844); [colorectal data](https://doi.org/10.17632/mpjzbtfgfr.1).

Breast input comprised 693 images marked as used in the publication, representing 639 source patient identifiers in the release. Malignant-cell candidates had to carry both the original epithelial label and the tumor-region label. We excluded cells labeled as normal or as ductal carcinoma in situ, a non-invasive breast lesion. We retained the original epithelial labels even where the standardized labels reassigned those cells to immune types. Structural cells were those with standardized labels for stromal support cells or endothelial cells, which line blood vessels. Source patient identifiers and harmonized patient identifiers mapped one-to-one.

For lung, we matched all 5,902,936 standardized cell identifiers to their original identifiers, image numbers and cell numbers. Ki67 was the corrected whole-cell mean intensity from channel 41, identified through the source channel metadata and restored to its original scale. We excluded 91 reference cores, two cores of mesothelioma, a cancer of tissue lining the chest and other cavities, and eight cores without a cancer diagnosis. This left 1,939 cores from 1,062 patients before cellular eligibility. Tumor labels included both hypoxic (low-oxygen) and non-hypoxic malignant cells; fibroblast and blood-vessel categories defined structural cells.

Colorectal input contained the 140 original cancer cores from 35 patients, excluding reference specimens. Original tumor-cell and CD8 labels defined the main populations; stroma, smooth muscle and vasculature defined structural cells. The secondary CD4 group combined the source labels for conventional and regulatory CD4 cells and for cells positive for CD45RO, a form of the cluster of differentiation 45 protein used to mark memory T cells, or GATA3, GATA-binding protein 3, which helps direct T-cell differentiation.

### Coordinates, proximity and eligibility

Distances were straight-line (Euclidean) distances between cell centers in micrometers. Breast and lung coordinates used 1-µm sampling; original colorectal coordinates were multiplied by 0.37744. The rectangular image boundaries came from released image dimensions rather than the outermost observed cell coordinates. Breast coordinates agreed with the centers of the segmented cell regions (cell masks) in three deterministically selected check cores containing 3,472 cells. Lung coordinates were checked against original image-acquisition information and cell masks. All 140 resampled colorectal images measured 724 × 543 pixels at 1 µm per pixel. Resampling placed 843 original colorectal cell centers less than 1 µm outside that rectangle; none could enter the analyzed interior.

For the common analysis, malignant cells had to lie more than 50 µm from all four acquisition limits, with the upper limits conservatively set to image width or height minus one pixel. Nearest-CD8 distances were capped at 50 µm. An unobserved target outside the image therefore cannot change the capped distance of a retained cell. A core required at least five CD8 cells, five structural cells and 100 interior malignant cells. CD8/CD4 comparisons additionally required five CD4 cells and used identical malignant cells for both targets. Cores with no variation remaining after adjustment in either variable were excluded.

### Rank correlations and patient-level inference

Within each core, we assigned average ranks to ties. The ranks of adjustment variables were standardized to mean zero and unit variance before forming the squared and product terms for image position. Correlations are unchanged by standardizing the outcome and exposure ranks. Proximity was ranked after applying the negative logarithm of one plus capped distance, so closer cells received higher ranks. The outcome was ranked Ki67 intensity. Raw coefficients were Pearson correlations, which measure linear association, calculated on these ranks.

To adjust for tissue structure, we separately regressed ranked proximity and ranked Ki67 on the same variables. These were the ranked count of all neighboring cells within 50 µm, the ranked fraction malignant/(malignant + structural) among neighbors, ranked distance to the nearest structural cell, and ranked horizontal (x) and vertical (y) coordinates, their squares and their product. Counts excluded the malignant cell itself. Neighborhoods and nearest-cell searches used the full observed core, including cells outside the retained interior. The final model also allowed a separate baseline value (intercept) for each 100-µm square in a grid anchored at coordinate zero. The adjusted, or partial, correlation was the correlation between the two regression residuals, the variation left after these adjustments.

Core coefficients were averaged within each patient and patient means were averaged equally within each cohort. Confidence limits were the 2.5th and 97.5th percentiles of 10,000 patient-bootstrap means. Direct cohort contrasts independently resampled patients within each cohort. The patient was the independent unit for inference.

### Marker controls and distance exclusions

We repeated the final model on each measured protein channel, retaining the same malignant cells and CD8-proximity measure as the Ki67 analysis. Comparison panels excluded Ki67 and DNA stains. Breast supplied 36 comparison channels, lung 40 and colorectal 55. Channels sharing an antibody mixture were treated as one measurement. For each patient we first averaged each marker's correlations across cores, then subtracted that patient's median comparison-marker correlation from their Ki67 correlation. The uncertainty interval resampled these paired patient differences. A separate comparison used the median of CD3, CD8 and CD20, selected because they identify immune-cell lineages. These controls test for immune-marker signals within malignant-cell masks; such signals can arise from mixing between cells, cell classification or unusual expression. We additionally adjusted the Ki67 model for the malignant cell's own ranked CD8 intensity.

Distance exclusions removed malignant cells less than 10, 15 or 25 µm from a CD8-cell center. All retained cells still satisfied the original 50-µm acquisition-border requirement; the distance measure remained capped at 50 µm. Ranks, grid-square baseline values and regression adjustments were recomputed on each retained population, while neighborhood counts used the full core. Each exclusion retained the 100-cell minimum. Direct lung-minus-breast contrasts independently resampled the eligible patients in the two cohorts.

For a concrete signal contrast, a high-Ki67 cell had an average Ki67 rank above 80% of the eligible malignant cells in its core. We compared cells within 15 µm of a CD8 cell with those at least 25 µm away. Cores needed at least five cells in each distance group. Fractions were averaged over the same cores within each patient and then equally over patients; intervals resampled patients. Mean zero-signal fractions were also averaged first within patients. Marker and distance analyses were exploratory; no marker was declared a discovery using adjustment for multiple testing.

## References

Danenberg E et al. Breast tumor microenvironment structures are associated with genomic features and clinical outcome. *Nature Genetics* 54, 660–669 (2022). [doi:10.1038/s41588-022-01041-y](https://doi.org/10.1038/s41588-022-01041-y).

Cords L et al. Cancer-associated fibroblast phenotypes are associated with patient outcome in non-small cell lung cancer. *Cancer Cell* 42, 396–412.e5 (2024). [doi:10.1016/j.ccell.2023.12.021](https://doi.org/10.1016/j.ccell.2023.12.021).

Schürch CM et al. Coordinated Cellular Neighborhoods Orchestrate Antitumoral Immunity at the Colorectal Cancer Invasive Front. *Cell* 182, 1341–1359.e19 (2020). [doi:10.1016/j.cell.2020.07.005](https://doi.org/10.1016/j.cell.2020.07.005).

von Querfurth B et al. spora: A Unified Multimodal Dataset and Platform for Spatial Proteomics (2026). [Platform and citation record](https://spora.epfl.ch/docs/).
