Quiz: is it more than chance?
Before this unit: Colocalisation of two channels (previous unit); Day 46: Colour.
See also: Day 4: Image formation; Day 14: Labelling; Day 16: Measurements; Day 23: FFT registration; Day 47: Spectral unmixing.
Short questions to test your understanding. Try each on paper first, then open the answer.
Q1. Two channels with unrelated structures give r = -0.08 and M1 = 0.20 inside the cells. Why are these not 0, and what does that mean for reporting a coefficient?
What is M1 if B’s above-threshold pixels cover 20 % of the region, placed at random?
A finite image of unrelated structures overlaps a little by chance, or avoids itself a little by chance, so r scatters around 0. M1 is the share of A’s intensity in pixels where B is above its threshold: for random placement that is about the area share of B’s above-threshold pixels, here about 0.2. A coefficient must be reported next to its chance value (from shifts or shuffles), not compared with 0 or 1.
Q2. Why does shifting one channel by 2–3 pixels make r drop sharply for small spots but hardly for large structures?
Compare the shift with the size of the structures.
After the shift, a spot of radius 2 px no longer overlaps its partner; a structure of radius 20 px still overlaps it almost entirely. r falls off over about the size of the structures plus the blur (the width of the shift curve). This is also why chromatic misalignment matters most for small structures.
Q3. A shift curve has a narrow peak of 0.6 at \Delta x = 0 on top of a broad hump that is still 0.3 at \Delta x = \pm 20 px. What two things does it tell you?
Which part survives a large shift?
About 0.3 of the correlation comes from large-scale structure (both channels bright in the cell, a shared background): it survives any shift and says nothing about colocalised structures. The narrow peak above it comes from small structures that really overlap, and the peak at 0 says the channels are aligned.
Q4. Someone shuffles single pixels of B 1000 times and finds that none of the shuffles reaches the observed r = 0.05. Why is the conclusion “significant colocalisation” unsafe?
Are neighbouring pixels of a blurred image independent?
Neighbouring pixels are correlated (the PSF spreads every point over several pixels, structures are several pixels wide). A pixel shuffle destroys that, so the shuffled images are much smoother in their statistics than any real unrelated image: the null distribution is far too narrow (demo: sd 0.013 against 0.064 for 8-px blocks). Unrelated channels routinely give r = 0.05; blocks about the size of the blur or the structures give an honest null (demo: p = 0.22 for the same image).
Q5. The randomisation test gives p < 0.02 (none of 50 block-shuffled images reaches the observed r). Does that prove that the two proteins colocalise?
What would bleed-through do to the observed and the shuffled r?
No. It shows that the overlap in these two images is more than chance. Bleed-through, a shared background, chromatic misalignment that happens to fit, or structures below the resolution limit all produce real overlap in the images without the proteins being together. The test cannot replace compensation, registration and biological controls. (And with 50 shuffles, 0.02 is the smallest p the test can give.)
Q6. Sparse spots in both channels, unrelated, on a dark background. The ICQ is 0.06 and the sign test gives p = 10^{-20}. What went wrong?
For a background pixel, are A and B above or below their means?
Most pixels are dark background, below the mean in both channels, so their product of differences is positive: the share of positive PDM is above ½ even for unrelated channels, and the sign test (which assumes ½ and independent pixels) is wrong twice. Compare the ICQ with the ICQ of block-shuffled images instead (demo: 0.100 ± 0.021, so 0.06 is, if anything, slightly segregated).
Q7. Costes’ threshold search on a weakly colocalised image stops with only 2 % of the pixels above both thresholds. Should you trust M1 and M2?
When does the stopping rule “r of the pixels below is 0” fire?
Be careful. With weak correlation, the pixels below the thresholds become uncorrelated early, while the thresholds are still high, so only the brightest pixels count as signal and M1, M2 describe a tiny, unrepresentative set (demo: M1 = 0.30, M2 = 0.11 from 143 of 5978 pixels). Look at the trace, compare with shuffled data, and report the thresholds.
Q8. (math) For n independent pixel pairs from unrelated channels, \operatorname{sd}(r) \approx 1/\sqrt{n}. A cell has 6000 pixels and the structures plus blur are about 5 pixels wide. Estimate the sd of r under the null, and the smallest |r| that is unusual.
How many independent samples does a correlated image hold, roughly?
Naively 1/\sqrt{6000} = 0.013. With correlated pixels, roughly n_\text{eff} \approx n/w^2 = 6000/25 = 240 independent samples, so sd \approx 1/\sqrt{240} = 0.065 (the demo’s 8-px block shuffle: 0.064). Values of |r| up to about 2 \times 0.065 = 0.13 are ordinary for unrelated channels.