Exercise: FLIM-FRET and metabolic imaging

Goal

By the end of this exercise you should be able to:

  • compute a FRET efficiency and an apparent distance from donor lifetimes,
  • tell the efficiency of an interaction from the fraction of donors that interact, and see why a single mean lifetime cannot,
  • place FRET mixtures on the phasor plot and read E and α from the line through the donor point,
  • read free/bound NADH and three-component mixtures on the phasor plot, in photons and in molecules,
  • recognise the pitfalls: environment, autofluorescence, acceptor leak, background, few photons,
  • (math) derive E = 1 - \tau_{DA}/\tau_D, photon from amplitude fractions, and barycentric coordinates.

Background

Idea What it means
FRET efficiency E = 1/(1 + (r/R_0)^6) = 1 - \tau_{DA}/\tau_D; r = R_0(1/E - 1)^{1/6}
Interacting fraction α amplitude (molecule) fraction of donors in the FRET state
Photon fraction f = \alpha\tau_{DA}/(\alpha\tau_{DA} + (1 - \alpha)\tau_D): the position on the donor → FRET line
Phasor of one lifetime g = 1/(1 + \omega^2\tau^2), s = \omega\tau g; 80 MHz: ω = 0.503 rad/ns
NADH free ≈ 0.4 ns, bound ≈ 2–3 ns; molecule fraction \alpha_k \propto f_k/\tau_k
Three species fractions = barycentric coordinates in the triangle of their phasors

By hand

B1. \tau_D = 2.5 ns; with the acceptor \tau_{DA} = 1.5 ns. Compute E and the apparent distance for R_0 = 5 nm. Which distance would E = 0.9 correspond to? And E = 0.1? Why are distances far from R_0 hard to measure?

B2. Efficiency vs fraction. \tau_D = 2.5 ns. 30 % of the donors interact with E = 0.6. (a) \tau_{DA}? The photon fraction of the FRET state? (b) The phasors of the donor alone and of the FRET state at 80 MHz, and the pixel’s phasor. (c) Its \tau_\phi. Which “efficiency” would you report from 1 - \tau_\phi/\tau_D? From 1 - \bar\tau_f/\tau_D? From 1 - \bar\tau_a/\tau_D? Compare with E and α.

B3. Same mean, different story. \tau_D = 2.5 ns. Case A: all donors at E = 0.3. Case B: 5/7 = 71 % of donors at E = 0.6. (a) Show that both have the intensity-weighted mean lifetime 1.75 ns. (b) Where do they lie on the phasor plot (on or inside the semicircle)?

B4. NADH. At 80 MHz, free NADH (0.4 ns) is at (0.961, 0.193) and bound NADH (2.5 ns) at (0.388, 0.487). A cell’s mean phasor is (0.73, 0.31). (a) Is it (close to) the line between free and bound? (b) Its photon fraction bound (lever rule, by projection)? (c) Its molecule fraction bound?

B5. Three species. Add a label of 4.5 ns at (0.163, 0.370). A pixel lies at (0.63, 0.32). (a) Sketch the triangle and the point. Estimate the three photon fractions by eye. (b) Check by solving the 3 × 3 system (math layer), or by the areas of the sub-triangles.

B6. Pitfalls: predict. For each, say in which direction the phasor cloud moves and what a two-species (donor line) analysis would report: (a) the cells contain autofluorescence of about 0.4 ns; (b) acceptor emission leaks into the donor channel; (c) a flat background of 20 % of the photons; (d) the donor-only control was measured in a buffer where the donor lives 2.8 ns instead of 2.5 ns.

B1. E = 0.4, r = 5.35 nm. E = 0.9: r = 5 \cdot (1/9)^{1/6} = 3.47 nm; E = 0.1: r = 5 \cdot 9^{1/6} = 7.21 nm. The curve E(r) is flat far from R_0 (E near 1 or 0): a big change in distance makes a small change in E, and small errors in E make large errors in r. FRET is most sensitive between about 0.5 R_0 and 1.5 R_0.

B2. (a) \tau_{DA} = 2.5 \cdot 0.4 = 1.0 ns. f = 0.3/(0.3 + 1.75) = 0.146. (b) Donor (ωτ = 1.257): (0.388, 0.487); FRET state (ωτ = 0.503): (0.798, 0.401); pixel 0.854 \cdot (0.388, 0.487) + 0.146 \cdot (0.798, 0.401) = (0.448, 0.475). (c) \tau_\phi = 0.475/(0.448 \cdot 0.503) = 2.11 ns → “E” = 0.16. \bar\tau_f = (0.7 \cdot 6.25 + 0.3 \cdot 1)/2.05 = 2.28 ns → 0.09. \bar\tau_a = 0.7 \cdot 2.5 + 0.3 \cdot 1.0 = 2.05 ns → 0.18 = αE (Q8 of the quiz). None of them is E = 0.6 or α = 0.3: one number cannot give two.

B3. (a) A: one lifetime, 1.75 ns. B: \tau_{DA} = 1.0 ns, \alpha\tau = (2/7 \cdot 2.5, 5/7 \cdot 1.0) = (0.714, 0.714): half the photons each, \bar\tau_f = 0.5 \cdot 2.5 + 0.5 \cdot 1.0 = 1.75 ns. (b) A is a single exponential: on the semicircle at (0.564, 0.496). B is a mixture: inside, at (0.593, 0.444) (\tau_\phi = 1.49, \tau_m = 1.80 ns), on the line from the donor point to the 1.0 ns point.

B4. (a) Its distance from the free–bound line is 0.002: on the line. (b) Projecting onto the segment: 0.40 of the way from free to bound. (c) (0.40/2.5)/(0.40/2.5 + 0.60/0.4) = 0.16/1.66 = 0.10: 10 % of the molecules are bound.

B5. (a) The point lies about halfway between free and the middle of the bound–label edge, nearer free: roughly half free, a third bound, a fifth label. (b) Barycentric coordinates: free 0.49, bound 0.32, label 0.19 (the point was made as 0.5, 0.3, 0.2 and rounded to two decimals).

B6. (a) Towards the 0.4 ns point (right, down): it looks like a shorter FRET state or more interaction; E and α are overestimated. (b) Towards a point outside the semicircle (up and left): it looks like less FRET; the line from the donor point may not meet the semicircle at all. (c) Towards (0, 0): the line from the donor point tilts down; E and α come out wrong (the phasor line may fail; a fit with a background term does not). (d) The donor reference is at the wrong place: all E values are shifted (here overestimated: 1 - \tau_{DA}/2.8 instead of 1 - \tau_{DA}/2.5). The control must be measured in the same cells and conditions.

Math questions

B7. (math) With a donor decay rate 1/\tau_D and a transfer rate k_T = \tau_D^{-1}(R_0/r)^6, derive \tau_{DA}, E = k_T/(\tau_D^{-1} + k_T), and show E = 1 - \tau_{DA}/\tau_D = 1/(1 + (r/R_0)^6).

B8. (math) Derive the photon fraction of the FRET state, f = \alpha\tau_{DA}/(\alpha\tau_{DA} + (1 - \alpha)\tau_D), and invert it: α from f. Show that f < \alpha whenever 0 < \alpha < 1 and E > 0.

B9. (math) Write the 3 × 3 system for the photon fractions of B5 and solve it. Show that all three fractions are positive if and only if the point lies inside the triangle.

B7. Total rate 1/\tau_{DA} = 1/\tau_D + k_T. The fraction of excitations that leave by transfer: E = k_T/(1/\tau_D + k_T) = k_T\tau_{DA}. Then 1 - E = (1/\tau_D)\tau_{DA} = \tau_{DA}/\tau_D. With k_T\tau_D = (R_0/r)^6: E = \frac{(R_0/r)^6}{1 + (R_0/r)^6} = \frac{1}{1 + (r/R_0)^6}.

B8. Photons ∝ amplitude × lifetime: N_{DA} \propto \alpha\tau_{DA}, N_D \propto (1 - \alpha)\tau_D, so f = N_{DA}/(N_{DA} + N_D) as given. Inverting: \alpha = \frac{f/\tau_{DA}}{f/\tau_{DA} + (1 - f)/\tau_D}. f < \alpha iff \alpha\tau_{DA} < \alpha(\alpha\tau_{DA} + (1 - \alpha)\tau_D) iff \tau_{DA}(1 - \alpha) < (1 - \alpha)\tau_D iff \tau_{DA} < \tau_D, i.e. E > 0.

B9. \begin{pmatrix}0.961 & 0.388 & 0.163\\0.193 & 0.487 & 0.370\\1 & 1 & 1\end{pmatrix}\mathbf f = \begin{pmatrix}0.63\\0.32\\1\end{pmatrix}, solution \mathbf f = (0.495, 0.320, 0.185). Each f_k is the area of the sub-triangle opposite vertex k (formed by P and the other two vertices) divided by the area of the whole triangle, with a sign: positive when P is on the same side of that edge as vertex k. All three positive iff P is on the inner side of all three edges, i.e. inside.

Explore: FRET on the phasor plot

The phasor plane (calibrated) with the donor point, the FRET-state point and the line between them, the FRET trajectory (E from 0 to 1, a dot every 0.1) for the current α, and 150 simulated pixels. Right: E(r) (drag to change the distance) and the donor decay with its components. The readout compares two estimates of E and α: (a) a Poisson fit of the pooled pixels with two lifetimes, \tau_D fixed; (b) the line from the donor point through the cloud’s mean.

E1. Preset no FRET, then all donors interact, E = 0.5. Where is the cloud each time? Read both estimates in the second case. Drag on the E(r) plot: how does the cloud move?

E2. Preset 30 % interact. How far along the line is the cloud? Compare the truth with estimates (a) and (b). Raise α with the slider: which curve does the cloud follow? Now keep α and change E: which curve now?

E3. Preset E vs fraction: same mean lifetime. Read \tau_\phi and \tau_m for the blue and the orange cloud. Which one is a single exponential? What would a one-lifetime measurement report for each?

E4. Preset autofluorescence: a third corner. Read both estimates of E and α. Why are they wrong in the same direction?

E5. Preset acceptor leak. Where does the leaking acceptor emission lie, and where does the cloud’s mean go? What do the two methods report?

E6. Preset too few photons (60 per pixel), then raise the photons to about 450. Back at 30 % interaction, add 20 % background: which method still works?

E1. No FRET: the cloud sits on the donor point (2.5 ns). All donors at E = 0.5: on the semicircle at 1.25 ns; both methods give \tau_{DA} = 1.25 ns, E = 0.50, α = 1.00. Dragging on E(r) moves the cloud along the semicircle (α = 1: the trajectory is the semicircle itself).

E2. The photon fraction of the FRET state is 0.15: the cloud lies 15 % of the way along the line (mean (0.448, 0.476)). Truth: \tau_{DA} = 1.00, E = 0.60, α = 0.30; (a) \tau_{DA} = 1.06, E = 0.58, α = 0.30; (b) \tau_{DA} = 1.05, E = 0.58, α = 0.30. Changing α moves the cloud along the straight line between the donor and the FRET point; changing E at fixed α moves it along the curved purple trajectory.

E3. Blue (all donors at E = 0.3): \tau_\phi = 1.75, \tau_m = 1.76 ns: a single exponential, on the semicircle. Orange (71 % at E = 0.6): \tau_\phi = 1.48, \tau_m = 1.79 ns, inside the semicircle. Both have the same intensity-weighted mean lifetime (1.75 ns), so a mean-arrival measurement would report the same number; the phasor plot (or a bi-exponential fit with \tau_D fixed) tells them apart.

E4. Truth E = 0.5, α = 0.5. (a) E = 0.75, α = 0.71; (b) E = 0.72, α = 0.71. The 0.4 ns autofluorescence looks like a very short FRET state: both methods have only two species (donor and FRET state) and attribute the extra short photons to FRET, so both E and α are overestimated. The fix is a third component: the triangle, or an autofluorescence control.

E5. The leaking acceptor emission lies outside the semicircle (orange point, upper left). At 70 % leak the cloud’s mean is (0.225, 0.461), also outside. The fit gives E = 0.01, α = 0.00 (it cannot model a rising component and treats the slow rise as a long donor lifetime); the line method is not possible outside the semicircle. Both are fooled: use a tighter donor emission filter.

E6. At 60 photons: (a) E = 0.64, α = 0.24; (b) E = 0.61, α = 0.22; noisier. At about 450 photons (slider at 50): (a) E = 0.59, α = 0.31; (b) E = 0.59, α = 0.30. With 20 % background: the fit with a free background term still gives E = 0.58, α = 0.30; the line from the donor point no longer meets the semicircle on the FRET side (background pulls the cloud towards the origin), so (b) fails.

Explore: a FRET cell and a NADH cell

The cell of the day as a FRET biosensor (donor 2.6 ns, FRET state 1.3 ns, E = 0.5; interacting fraction high in the mitochondria, lower at the membrane, none in the nucleus), or as label-free NADH (free 0.4 ns, bound 2.5 ns, plus a 4.5 ns label in a few vesicles). The second image shows the interacting fraction α or the molecule fraction bound per pixel.

E7. Preset FRET compartment. Read \tau_{DA}, E and the cell’s mean α. Where are the interacting donors? Paint over a few mitochondria and read the brush’s mean fraction.

E8. Preset too few photons (40 in bright pixels). What happens to E, and to the mean α? Why is α biased upwards? Try 3 × 3 binning.

E9. Preset fraction-bound map, then a third species. Compare the mean fraction bound with the truth in both cases. Where do the label’s pixels sit on the phasor plot?

E7. The line meets the semicircle at \tau_{DA} = 1.25 ns: E = 0.52 (true 0.50). Mean α over the cell 0.17 (true 0.15); the α map is bright along the mitochondria and the membrane, dark in the nucleus. A brush over mitochondria gives a much higher mean fraction than the cell average (the mitochondria were made with about 0.6).

E8. E = 0.49, still fine (it comes from the line through the whole cloud), but mean α = 0.26 instead of 0.15: each pixel’s fraction is noisy, and fractions below 0 are clipped to 0 while those above are kept, so the mean is pushed up. With 3 × 3 binning: E = 0.50, mean α 0.17.

E9. Two species (free–bound line): mean molecule fraction bound 0.30, true 0.27: the label’s pixels lie towards the 4.5 ns corner, and the projection onto the free–bound line reads them as “more bound”. With the triangle: 0.27, the true value. The label’s pixels form a small cloud between the NADH cloud and the 4.5 ns point (the cursor at (0.30, 0.40) catches 45 of them).

Code

Write the algorithms of this unit yourself, in Rust. Setup, and how to run and check your code: coding exercises: getting started. Your code goes in flim/src/flim_fret/exercise.rs. Times are in nanoseconds, ω in rad/ns (80 MHz: ω = 0.503); phasors are pairs (g, s).

C1. fret_efficiency(tau_da, tau_d): E = 1 - \tau_{DA}/\tau_D; and distance(e, r0): r = R_0(1/E - 1)^{1/6}. The checks are B1.

C2. photon_fraction(alpha, tau_da, tau_d): f = \alpha\tau_{DA}/(\alpha\tau_{DA} + (1 - \alpha)\tau_D), and its inverse interacting_fraction(f, tau_da, tau_d). The checks are B2(a), B3 and B8.

C3. fret_from_line(donor, p, omega): the line from the donor’s phasor through a phasor p, extended to the semicircle:

d = p − donor                                        # direction of the line
t = −2 · ((g_D − ½) · d_g + s_D · d_s) / |d|²         # second crossing with the circle
(g, s) = donor + t · d                               # the FRET state
τ_DA = s / (g · ω);   f = 1 / t                      # p itself is at t = 1

The check is the pixel of B2: the line must give \tau_{DA} = 1.0 ns, E = 0.6 and f = 0.146.

C4. barycentric(p, a, b, c): the photon fractions of three species, each the signed area of a sub-triangle divided by the area of the whole triangle:

A(u, v, w) = (v_g − u_g)(w_s − u_s) − (w_g − u_g)(v_s − u_s)     # twice the signed area
fractions = A(p, b, c) / A(a, b, c),  A(a, p, c) / A(a, b, c),  A(a, b, p) / A(a, b, c)

The check is B9 (and a point outside the triangle).

Then cargo run -p flim -- flim-fret and open the pictures in out/flim-fret/. The program simulates phasors, photon by photon, for a 128 \times 128 image of nuclei. FRET: a donor of 2.6 ns with a FRET state of 1.3 ns (E = 0.5); each nucleus has its own fraction α of interacting donors, from 0 to 0.6 (alpha-true.png). It finds E from the line from the donor point through the mean of the cloud (C3), then α per pixel from the position along that line (C2), alone and averaged over 3 \times 3 pixels, with about 300 and about 40 photons in a bright pixel (alpha-…png, 0 black, 1 white). NADH: free (0.4 ns) and bound (2.5 ns) NADH in varying proportions; half of the nuclei also hold a 4.5 ns label that gives 20 % of their photons. It reports the mean molecule fraction bound, read from the free–bound line and from the triangle (C4), and shows the triangle’s three photon fractions as red (free), green (bound) and blue (label) in nadh-triangle.png.

C5. Compare the FRET results at 300 and at 40 photons: E, and the mean α per pixel and after averaging 3 \times 3 pixels, against the true mean 0.324. Why does the mean α go up with fewer photons, and why does averaging the phasors help?

C6. Compare the two NADH answers with the truth. Which is wrong, and in which direction?

The model solution is flim/src/flim_fret/solution.rs in the download.

C5. At 300 photons the line gives \tau_{DA} = 1.33 ns, E = 0.49, and the mean α is 0.336 per pixel and 0.332 after 3 \times 3 averaging (true 0.324). At 40 photons: \tau_{DA} = 1.45 ns, E = 0.44, mean α 0.405 per pixel and 0.363 averaged. Each pixel’s position along the line is noisy; positions beyond the ends are clipped to 0 or 1, and the clipping at 0 (most nuclei have small or no α) throws away the low values while keeping the high ones, so the mean goes up (E8). Averaging the phasors of neighbours first makes the noise smaller, so less is clipped. The maps show the same: alpha-300photons-3x3.png looks like alpha-true.png, alpha-40photons-1x1.png is speckle, with many white pixels.

C6. True mean molecule fraction bound 0.278; the free–bound line gives 0.362, too high; the triangle gives 0.295, close. The label (4.5 ns) pulls the phasors of half of the nuclei towards the long-lifetime corner, and projected onto the free–bound line they look “more bound” (E9). In nadh-triangle.png the nuclei with the label have a blue tint (a blue fraction of about 0.2, the truth); in the others noise leaves only a few blue specks. Nuclei with more bound NADH are greener, those with more free NADH redder.

Where this leads

  • Beyond this day: higher harmonics (more species from one decay), rising components and excited-state reactions, and spectral + lifetime phasors combined.
  • The FRET day (day 49) measures the same efficiency from intensities, with the corrections that lifetimes avoid (sensitised emission); the colocalisation day (day 48) asks the coarser question “in the same pixel?”.
  • Per-cell lifetimes and fractions are measurements like any other: compare them with the statistics of the evaluation day (replicates).