Quiz: bleed-through and compensation

Short questions to test your understanding. Try each on paper first, then open the answer. A pixel with dye amounts \mathbf a records \mathbf y = M\mathbf a (rows = channels, columns = dyes); with two dyes and each column scaled to its own channel, M = S = \begin{pmatrix} 1 & s_{12} \\ s_{21} & 1 \end{pmatrix}.


Q1. Why does a green dye show up in an orange channel, but an orange dye hardly in a green channel?

Look at the shape of an emission spectrum on both sides of its peak.

Emission spectra have a long tail towards longer wavelengths (the red side) and fall off quickly on the short side. The green dye’s red tail reaches into the orange channel’s band; the orange dye emits almost nothing at green wavelengths. So s_{21} (green into orange) is typically 10–30 %, s_{12} only a few percent.


Q2. What does the second column of M tell you?

Multiply M by (0, 1)^\top.

M(0, 1)^\top is the second column: what the channels record for one unit of dye 2 and nothing else. It is dye 2 “as the channels see it”: its emission spectrum seen through the filters.


Q3. With S = \begin{pmatrix} 1 & 0 \\ 0.3 & 1 \end{pmatrix}, a pixel records (500, 400). How much of dye 2 does it contain?

Channel 1 sees only dye 1 here.

Channel 1 sees only dye 1, so a_1 = 500. Channel 2 sees 0.3 \cdot 500 = 150 from dye 1, so a_2 = 400 - 150 = 250. (This is S^{-1}\mathbf y with S^{-1} = \begin{pmatrix} 1 & 0 \\ -0.3 & 1 \end{pmatrix}.)


Q4. You compensate an image and the nucleus (only dye 1) now has clearly negative values in the dye-2 image. What went wrong, and in which direction should you change s_{21}?

How much of channel 1 did you subtract from channel 2?

Over-compensation: you subtracted too much of channel 1 from channel 2, so s_{21} is too large. Lower it until the nucleus sits at the background level and does not tilt with its own brightness. No dye emits negative light, so negative values are the sign of a mistake even without ground truth.


Q5. Why should the background (dark offset) be subtracted before you estimate a spillover from a single-stained control?

The slope is fitted through the origin.

The model y_2 = s_{21}\, y_1 holds for the light from the dye. An offset adds a constant to both channels, a fake “component” with a flat spectrum; a line through the origin fitted to shifted points has the wrong slope (dim pixels are pulled most). After subtracting the offset, zero dye means zero signal.


Q6. Two dyes give S = \begin{pmatrix} 1 & 0.8 \\ 0.8 & 1 \end{pmatrix}. Without computing the inverse: will compensation work well? What happens to the noise?

Compute \det S, the area spanned by the columns.

\det S = 1 - 0.64 = 0.36: the columns are fairly parallel. Compensation still gives the right values on average, but S^{-1} = \frac{1}{0.36}\begin{pmatrix} 1 & -0.8 \\ -0.8 & 1 \end{pmatrix} has entries near 2.8 and −2.2, so the noise of each pixel is amplified about two to three times. Better: dyes or filters that are further apart.


Q7. Two proteins sit in different compartments, but Pearson’s correlation between the two channels is 0.4. Give an explanation that has nothing to do with biology.

What does bleed-through put into channel 2?

Bleed-through: channel 2 contains a fraction of dye 1’s light, so wherever channel 1 is bright, channel 2 is a little bright too. Independent channels become correlated. Compensate first (in the demo r drops from 0.33 to about 0).


Q8. (math) Show that compensating a dye-1-only pixel \mathbf y = a(1, s)^\top with the guess g (and s_{12} = 0) gives \hat a_2 = (s - g)\,a.

S_g^{-1} = \begin{pmatrix} 1 & 0 \\ -g & 1 \end{pmatrix}.

S_g^{-1}\mathbf y = \begin{pmatrix} 1 & 0 \\ -g & 1 \end{pmatrix}\begin{pmatrix} a \\ s a \end{pmatrix} = \begin{pmatrix} a \\ (s - g) a \end{pmatrix}. Plotted against \hat a_1 = a, the population is a line with slope s - g: zero only for the right guess.