Quiz: two cell types and an uneven density
Before this unit: Is it more than chance? Simulation envelopes (previous unit); Day 16: Measurements.
See also: Objects instead of pixels (day 48); Day 20: Point detection; Day 38: Evaluation and statistics; Day 48: Colocalisation.
Short questions to test your understanding. Try each on paper first, then open the answer.
Q1. What does L_{01}(r) - r > 0 mean for tumour cells (type 0) and immune cells (type 1)?
Count type 1 around type 0.
Within distance r of a tumour cell there are more immune cells than if the immune cells were placed independently of the tumour cells: attraction (or co-location) at that scale.
Q2. Which null model for each question: (a) Are immune cells that infiltrated a tumour placed independently of the tumour cells? (b) Among all cells of a tissue, are the proliferating ones (Ki-67 positive) randomly distributed?
Two populations, or one population with a label?
- Independence: keep the tumour cells, relocate (or shift) the immune cells. (b) Random labelling: keep all cell positions, permute the label “proliferating”.
Q3. In densely packed tissue, relocating one cell type at random reports “repulsion” at short distances. Why, and what is the better null?
Can a relocated cell land on another cell?
Real cells cannot overlap, so no cell of the other type is closer than a cell diameter; relocated points ignore this and do come close. The observed curve is below the null at short r for a purely physical reason. Permuting labels keeps the positions (and the packing), so it tests only the arrangement of the types.
Q4. 30 % of the cells are immune cells. Under random labelling, what fraction of the cell pairs at any distance is a tumour–immune pair? An observed 0.20 at 10 µm means what?
2p_0p_1.
2 \cdot 0.3 \cdot 0.7 = 0.42. An observed 0.20 means mixed pairs are rarer than chance at 10 µm: neighbours tend to be of the same type (segregation).
Q5. Cells are denser near a vessel but ignore each other. What does the plain L function say? Name two ways to avoid the wrong conclusion.
First order vs second order.
“Clustered” at all r. Remedies: the inhomogeneous K with an estimated density (pairs weighted by 1/\hat\rho\hat\rho), against inhomogeneous Poisson simulations; random labelling when the question is about types; at least the tissue mask as the window.
Q6. Why can the bandwidth of \hat\rho “explain away” real clusters?
What does a small bandwidth estimate inside a cluster?
With a bandwidth about the cluster size, \hat\rho is high exactly inside each cluster, so the clusters are treated as “high density” rather than interaction, and the inhomogeneous K shows nothing (or even regularity). The bandwidth must be chosen from a scale argued in advance.
Q7. Why is the toroidal shift a poor null for cells in an irregular tissue mask?
Where do shifted cells land?
Shifting with wrap-around moves cells outside the tissue, into the vessel or across the gap between pieces of tissue; dropping them changes the pattern. The shift preserves each type’s structure only for a stationary pattern in a rectangle.
Q8. (math) Show that under random labelling K_{11} = K_{00} = K_{01}.
Probability that a pair at distance r is of a given type combination.
Labels are independent of positions, so a pair at distance r is 1–1 with probability p_1^2, 0–0 with p_0^2 and 0–1 (ordered) with p_0p_1, whatever r is. The type-specific pair densities are p_ap_b\,\rho^2 g(r); dividing by the type intensities p_a\rho and p_b\rho gives the same K as for all points.