sample 𝑖, B-cell 𝑗: log 𝜋!" 1 − 𝜋!" = log * 𝜋! 1 − * 𝜋! + 𝛽 + 𝑒!" • 𝜋!": proportion of CD8- T-cells interacting with the 𝑗-th B-cell in sample 𝑖 • * 𝜋!: overall proportion of CD8- T-cells in sample 𝑖 (included as offset) • 𝛽: difference between the two, i.e., enrichment of B-cell/CD8- T-cell interactions compared random chance. • 𝑒!": spatial random effect. Cells close together maybe more closely correlated! * Kondo, Ma, et al., Gastro, 2021