Slide 1

Slide 1 text

Julia Wrobel, PhD Department of Biostatistics and Informatics Spatial analysis of multiplex imaging data

Slide 2

Slide 2 text

• Spatial summary statistics are extracted to describe spatial relationship amongst cells in an image • Also often separated by tumor/stroma • Univariate spatial summary metrics • Clustering or dispersion of cells of one type • Bivariate spatial summary metrics • Co-expression or co-clustering of two cell types • Methods based on spatial point processes • Analyze number of neighbors: K-function, L-function • Analyze distance to nearest neighbor: G-function Spatial summary statistics 2

Slide 3

Slide 3 text

• Locations of cells are considered random and to follow a point process • Marked point patterns have covariates (cell shape, area, expression of CD3) associated with each point • Multitype point patterns have multiple types of points • Gray are tumor cells, red are immune cells • Specifically interested in spatial arrangement of immune cells Spatial point patterns 3

Slide 4

Slide 4 text

• Green cells are in tumor tissue area • Pink cells are in stromal tissue area • Black cells are macrophages • Quantify macrophage clustering in tumor and stromal areas Another example: macrophages in ovarian cancer 4

Slide 5

Slide 5 text

• Capture important features of the point pattern • Assume location of points in point pattern are random variables • Typically number of points n is also a random variable • Often to detect deviations from complete spatial randomness (CSR) • Clustering or repulsion Spatial summary functions based on point processes 5

Slide 6

Slide 6 text

• Homogeneity: 𝐸 𝑛(𝑋 ∩ 𝐴) = 𝜆|𝐴| • The expected number of points falling in a given region A should be proportional to the area of the region • Spatial independence • The counts in disjoint subregions of R are independent random variables Then, the number of points falling in R follows a Poisson distribution • Homogeneous Poisson point process • Deviations from Homogeneous Poisson point process represent spatial clustering Complete Spatial Randomness 6 𝑃 𝑛 𝑋 ∩ 𝐴 = 𝑘 = 𝑒!|#| 𝜆 𝐴 $ 𝑘! 𝜆 is the intensity, or expected number of random points per unit area

Slide 7

Slide 7 text

• K-function is a popular metric for analyzing spatial correlation in point patterns • Essentially the standardized average number of neighbors of a cell within radius r / 𝐾 𝑟 = |𝐴| 𝑛(𝑛 − 1) 4 % & 4 %'( 𝐼 𝑑 𝑐%, 𝑐) ≤ 𝑟 𝑒%) • Assumes homogeneity • Has theoretical value under CSR • Compare observed to theoretical value to assess clustering 𝐸!"# " 𝐾 𝑟 = 𝜋𝑟$ Ripley’s K-function 7

Slide 8

Slide 8 text

Ripley’s K function for simulated cells 8

Slide 9

Slide 9 text

Transformations of Ripley’s K 9 / 𝐾 𝑟 = |𝐴| 𝑛(𝑛 − 1) 4 % & 4 %'( 𝐼 𝑑 𝑐%, 𝑐) ≤ 𝑟 𝑒%) L- function - 𝐿 𝑟 = * + , Marcon’s M - * + ,+!

Slide 10

Slide 10 text

Can interpret as probability of a neighboring cell occurring within radius r • 𝑑! = 𝑚𝑖𝑛"#! ||𝑥" − 𝑥_𝑖|| finds the nearest neighbor • 𝐺 𝑟 = ℙ 𝑑 𝑢, 𝑿\u ≤ 𝑟|𝑿 ℎ𝑎𝑠 𝑎 𝑝𝑜𝑖𝑛𝑡 𝑢 for any location u Nearest Neighbor G-function 10

Slide 11

Slide 11 text

• Mark correlation function • Derivative of K function • Moran’s I • Can be used to quantify continuous marks • Local and global versions • Univariate and bivariate Other spatial summary statistics 11

Slide 12

Slide 12 text

• Rare cell types: spatially summary metrics cannot be computed for images with no or few cells of a certain subtype • Makes it challenging to compare across images • Multiple images per subject • Needs to be accounted for in analysis • Violation of homogeneity assumptions bias estimation of K, G functions • Inhomogeneity can give appearance of spatial clustering Issues that arise in multiplex imaging data 12

Slide 13

Slide 13 text

Homogenous vs. Inhomogeneous Poisson processes 13

Slide 14

Slide 14 text

Ovarian tumor samples have inhomogeneity due to poor tissue quality 14

Slide 15

Slide 15 text

• Cells are missing, resulting appearance of inhomogeneity of 𝜆 when underlying unobserved process may have been homogeneous • Violates homogeneity assumption of K-function! • Can no longer compare to theoretical K under CSR of 𝜋𝑟- • Wilson et. al, 2022 resolve this using a permutation approach • Calculates empirical estimate of K-function under CSR by randomly permuting cell labels • Then compare empirical K to permuted K rather than theoretical K • Effectively separates clustering from “patchy” effects Permutation solution to TMA inhomogeneity 15

Slide 16

Slide 16 text

Permutation solution to TMA inhomogeneity 16

Slide 17

Slide 17 text

Fridley Lab Moffitt Cancer Center spatialTIME package

Slide 18

Slide 18 text

• Visualize samples • Calculate spatial summary statistics across samples • Correct for spatial inhomogeneity using permutation approach • iTIME: Shiny interface What can we do with spatialTIME? 18