Lesson 9 of 20

At the door or inside — distance from the edge

information still left in the map

At the door or inside — distance from the edge
Lymphocytes lined up at the tumour margin and lymphocytes deep inside the tissue mean different things clinically.

Pathology reports contain phrases like "lymphocytes arranged as a band at the tumour periphery" and "infiltrating into the tumour parenchyma".

The first describes immune cells that reached the door but could not get in; the second, ones that got inside. The one linked to checkpoint-inhibitor response is mostly the second.

The infiltration rate cannot separate them. But the map still holds that information.

One cell is 50 µm, so a depth of 20 cells is 1 mm in from the edge.
Python Runs in your browser
Compare a slide whose lymphocytes stayed at the edge with one where they went deep.
Loading…
In most cancer types the ratio hovers near 1 — lymphocytes sit at about the same depth as the tissue.
Python Runs in your browser

Read the result honestly. The median ratio is 1.05 and 60% of slides are above 1. The spread across cancer types is small too, from 1.13 (cervix) to 0.98 (pancreas).

Less dramatic than you hoped. Why?

  • This map has no tumour boundary. We measured against the "tissue edge" (the border with the glass), not the tumour margin, so it is not the thing pathology means.
  • A whole slide is cut into many fragments, so there is a great deal of edge.

Even so, on individual slides the difference is stark. Look at the two maps in the widget — 0.48 against 2.20. A signal that vanishes in a group average but survives at the individual level: also a common thing.

🤔 Check yourself
What is the fundamental limitation of measuring depth this way in this data?
🤔 Check yourself
Why not test a freshly invented metric against survival straight away?