Skip to main content
Biophysical Journal logoLink to Biophysical Journal
. 2022 Jul 4;121(15):2906–2920. doi: 10.1016/j.bpj.2022.06.036

Estimating the localization spread function of static single-molecule localization microscopy images

Thomas R Shaw 1,2, Frank J Fazekas 1, Sumin Kim 3, Jennifer C Flanagan-Natoli 1, Emily R Sumrall 1, Sarah L Veatch 1,2,
PMCID: PMC9388596  PMID: 35787472

Abstract

Single-molecule localization microscopy (SMLM) permits the visualization of cellular structures an order of magnitude smaller than the diffraction limit of visible light, and an accurate, objective evaluation of the resolution of an SMLM data set is an essential aspect of the image processing and analysis pipeline. Here, we present a simple method to estimate the localization spread function (LSF) of a static SMLM data set directly from acquired localizations, exploiting the correlated dynamics of individual emitters and properties of the pair autocorrelation function evaluated in both time and space. The method is demonstrated on simulated localizations, DNA origami rulers, and cellular structures labeled by dye-conjugated antibodies, DNA-PAINT, or fluorescent fusion proteins. We show that experimentally obtained images have LSFs that are broader than expected from the localization precision alone, due to additional uncertainty accrued when localizing molecules imaged over time.

Significance

Single-molecule localization microscopy (SMLM) is a class of imaging methods that resolve fluorescently labeled structures beyond the optical resolution limit of visible light. SMLM detects stochastically blinking labels over minutes and localizes each blink with precision of order 10 nm. We present a method to evaluate the accuracy of localizations in a way that is analogous to the point spread function of a conventional light microscope. The LSF estimate explicitly observes time-dependent factors that degrade image resolution and provides an objective tool to both optimize imaging and guide image analysis. The estimate is robust on useful timescales for a range of SMLM probes.

Introduction

Single-molecule localization microscopy (SMLM) is a powerful tool to image structures in cells with dimensions ranging between tens of nanometers to tens of microns. Methods such as (d)STORM (1,2), (F)PALM (3,4), and PAINT (5) exploit the stochastic blinking of single fluorophores to localize emitting molecules with a localization precision much smaller than the diffraction limit of visible light, by imaging only a small subset of probes in any given image frame. These samples are then imaged over time, and acquired localizations are typically assembled into a single reconstructed superresolved image.

Assessing the quality of reconstructed images can be challenging as numerous factors can contribute. These factors can include the labeling density, the types of structures being imaged, the brightness and blinking dynamics of the fluorophore, the finite size of labeling antibodies, motions of the stage or labeled molecules during acquisition, and the analytical methods used in postprocessing. One important measure of the quality of a measurement is the localization precision of single fluorophores, which is influenced by many of the factors listed above. Many localization algorithms directly return estimates of the localization precision of single fits, and similar information can be extracted directly from the localizations themselves through the use of pair-correlation functions or nearest neighbor analyses that extract the distribution of positions of molecules detected in adjacent frames (6,7). However, these methods are not sensitive to errors introduced on timescales longer than a few image frames. Other metrics of image quality have been developed that integrate both precision and spatial sampling. One widely used method, called Fourier ring correlation (FRC) (8,9), effectively captures the impact of factors that degrade quality over the entire span of image acquisition. The FRC curve depends on the types of structures imaged, how well they are sampled, and the specific regions of interest used. The resolution value it reports indicates the length scale below which the signal to noise ratio falls below a specified limit. This value is useful for comparing imaging conditions for a particular sample, but hard to compare across sample types, making its use highly context dependent.

Here, we present a simple method to estimate the average localization spread function (LSF) of an SMLM data set as a way to evaluate its resolution. The LSF is analogous to the point spread function (PSF) of a conventional microscopy measurement and can aid the interpretation of acquired images. The LSF reports on how accurately distances can be measured between labeled objects within images, and can be used when constraining the structure of a multiprotein complex or when estimating the statistical codistribution of labeled components. The LSF can also be used to evaluate optimizations all along the image acquisition and processing pipelines. The method presented exploits temporal correlations in the blinking dynamics of single fluorophores commonly used for localization microscopy (10, 11, 12). This enables the method to report on errors accumulated over time that do not typically impact the accuracy of single-molecule fitting but impact how accurately a molecule’s position is determined relative to others (13,14). Here, we derive a method to isolate the LSF directly from acquired localizations, validate it through simulation and images of DNA origami rulers, and apply it to several images of labeled structures in cells. In all of the experimental examples interrogated, the LSF width increases over timescales at and below that of drift correction.

Materials and methods

Simulations

Simulations mimicking DNA origami rods were accomplished by randomly placing pairs of fluorophores positioned 50 nm apart within a 40 by 40 μm region of interest (ROI) at an average density of 1 pair per μm2. A total of 20,000 individual image frames with an effective frame time of 0.1 s were simulated by sampling a subset of molecular positions with a localization precision of 10 nm in each lateral dimension. The dynamics of individual fluorophores were governed by a continuous time Markov process involving five states: one on state (1), three dark states (0, 01, 02), and an irreversible bleached state (B), following the procedure described previously (12,15). The on state was accessible from any of the dark states, while dark state 0 was accessible only from the on state, and dark states 01 and 02 were accessible only from the previous dark states, 0 and 01, respectively. We used the following parameters (using the notation described in (12,15)) to capture essential elements of our experimental observations: λ(01)= 1.2 Hz; λ(001)= 0.05 Hz; λ(0102)= 0.0033 Hz; λ(011)= 0.02 Hz; λ(021)= 0.0005 Hz; λ(10)= 5 Hz; μ(1B)= 0.05 Hz. The continuous time Markov process was simulated in MATLAB (MathWorks, Natick, MA) using File Exchange code “simCTMC.m” (16). When present, drift was applied to all molecular positions with a constant rate of 0.3 nm/s in the x direction along with diffusive drift characterized by a diffusion coefficient of D = 2.5 nm2/s. Drift was corrected using the mean shift algorithm described previously (17) using 1000 frames per alignment (10 s).

Experimental sample preparation

DNA origami “gatta-STORM” nanorulers were purchased from Gattaquant (Grafelfing, Germany) and a sample was prepared following the manufacturer’s instructions. In brief, biotinylated bovine serum albumin (biotin-BSA; Thermo Fisher, Waltham, MA, USA; 1 mg/mL) was absorbed to a clean 35 mm no. 1.5 glass bottom dish (MatTek well; MatTek Life Sciences, Ashland, MA, USA) for 5 min then washed. Streptavidin was then applied (1 mg/mL) for 5 min, then washed with a solution of phosphate-buffered saline (PBS) plus 10 mM MgCl2. A solution containing the biotinylated DNA origami was then applied. Samples were then washed and imaged in an imaging buffer supplemented with 10 mM MgCl2. “gatta-PAINT” 80RG nanorulers in a sealed sample chamber were purchased from Gattaquant and imaged in the Atto655 color channel following the manufacturer’s recommendations.

Mouse primary neurons were isolated from P0 mouse pups as described previously and cultured on MatTek wells (17). On day 10 of culture (days in vitro 10), neurons were rinsed with sterile Hanks’ balanced salt solution and fixed for 10 min with prewarmed 4% PFA (Electron Microscopy Sciences, Hatfield, PA, USA) in PBS. The fixed neurons were rinsed three times with PBS and permeabilized in 0.2% Triton X-100 (MilliporeSigma, St. Louis, MO, USA) in PBS for 5 min. Neurons were then incubated in blocking buffer containing 5% BSA for 30 min, and labeled with Nup210 polyclonal antibody diluted in PBS (1:200; Bethyl Laboratories, Montgomery, TX, USA; A301-795A) overnight in 4°C. The following day, neurons were washed three times in PBS and stained with goat anti-rabbit AlexaFluor647 Fab Fragment (1:800; Jackson ImmunoResearch, West Grove, PA, USA; 111-607-003) for an hour, washed three times with PBS, then imaged.

CH27 B cells (mouse, MilliporeSigma, St. Louis, MO, USA); cat. no. SCC115, RRID:CVCL_7178), a lymphoma-derived cell line (18) were acquired from Neetu Gupta (Cleveland Clinic, OH). CH27 cells were maintained in culture as described previously (19). Cells were adhered to MatTek wells coated with VCAM following procedures described previously (20). In brief 0.1 mg/mL IgG, Fcγ specific was adsorbed to a plasma cleaned well for 30 min at room temperature. Wells were rinsed with PBS, then nonspecific binding was blocked with 2% BSA at room temperature for 10 min, followed by incubation with 0.01 mg/mL recombinant human VCAM-1/CD106 Fc chimera protein (R&D Systems, Minneapolis, MN, USA) and 0.01 mg/mL ChromPure Human IgG, Fc fragment (Jackson ImmunoResearch) for 1 h at room temperature or overnight at 4°C. VCAM-1-coated dishes were stored up to 1 week in VCAM-1 and Fc at 4°C. Immediately before plating, dishes were blocked at room temperature in 2% goat serum (Gibco, Thermo Fisher, Waltham, MA, USA) for 10 min, then cells were allowed to adhere for 15 min in medium before chemical fixation in 2% PFA and 0.2% glutaraldehyde (Electron Microscopy Sciences). F-Actin was stained by permeabilizing cells with 0.1% Triton-X-100 before incubation with 3.3 μM phalloidin-AlexaFluor647 (Thermo Fisher, Waltham, MA, USA) for at least 15 min. Phalloidin-stained cells were imaged immediately after removing label. Cells transiently expressing Clathrin-GFP were permeabilized after fixation with 0.1% Triton-X-100 followed by labeling with a single domain anti-GFP antibody (MASSIVE-TAG-Q ANTI-GFP) from Massive Photonics (Grafelfing, Germany) for 1 h at room temperature, then imaged in 0.5 nM of imaging strand in the imaging buffer supplied by the manufacturer.

Cells expressing the membrane label Src15-mEos3.2 were prepared by transiently transfecting 106 cells with 1 μg of plasmid encoding Src15-mEos3.2 (N′-MGSSKSKPKDPSQRRNNNNGPVAT-[mEos3.2]-C′), which was derived from a GFP-tagged version by replacing GFP with mEos3.2 (21,22). Transfection was accomplished using Lonza Nucleofector electroporation (Lonza, Basel, Switzerland) with program CA-137 and cells were grown in flasks overnight before plating and fixation as described above.

Single-molecule imaging and localization

Imaging was performed using an Olympus IX83-XDC inverted microscope. TIRF laser angles were achieved using a 100× UAPO TIRF objective (NA = 1.50), and active Z-drift correction (Olympus America, Center Valley, PA, USA). AlexaFluor647 was excited using a 647 nm solid-state laser (OBIS, 150 mW, Coherent, Santa Clara, CA, USA) and mEos3.2 was excited using a 561 nm solid-state laser (Sapphire 561 LP, Coherent), both coupled in free space through the back aperture of the microscope. Fluorescence emission was detected on an EMCCD camera (Ultra 897, Andor, Belfast, Northern Ireland). Samples containing AlexaFluor647 were imaged in a buffer containing 100 mM Tris, 10 mM NaCl, 550 mM glucose, 1% (v/v) β-mercaptoethanol, 500 μg/mL glucose oxidase (Sigma, St. Louis, MO, USA), and 40 μg/mL catalase (Sigma), with 10 mM MgCl2 for the DNA origami sample. Samples with mEos3.2 or DNA PAINT Atto655 probes were imaged in imaging buffer from Massive Photonics. Single-molecule positions were localized in individual image frames using custom software written in MATLAB. In most cases, peaks were segmented and fit from background corrected images, where the background was estimated as the median signal over 500 acquisition frames. Peaks were segmented using a standard wavelet algorithm (23) and segmented peaks were then fit as single emitters on GPUs using previously described algorithms for 2D (24), or as multiemitters on a CPU using the ThunderStorm ImageJ plugin (25). After localization, points were culled to remove outliers before drift correction (17). Images were rendered by generating 2D histograms from localizations followed by convolution with a Gaussian for display purposes. Rendering parameters are included in captions and typically images showing larger regions are reconstructed with large pixels and Gaussian filters (10–50 nm) while small regions are rendered with small pixels and Gaussian filters (1 and 4–10 nm, respectively). For the nanoruler samples, localizations were assigned to single fluorophores using a home-built implementation of DBSCAN (26), with ε= 12 nm and minPts = 15.

Evaluation of space-time autocorrelations

Space-time autocorrelations were obtained by first tabulating space and time displacements between all pairs of localizations within a specified ROI detected in a given data set. This was accomplished using a crosspairs function based on the one from the R package spatstat (27), but used here as a C routine with a MATLAB interface, as described previously (17). Lists of displacements were converted into space-time autocorrelation functions by binning in both time and space within the C routine for improved performance, followed by a normalization implemented in MATLAB that produces a value g(r,τ)=1 when localizations are randomly distributed in both space and time within the specified ROI. A derivation of the form of this normalization and an explanation of how it is computed are presented in supporting material Note S1.

Estimation of gLSF(r,τ) and σxy(τ)

The core computations of the LSF estimation are gathered in a single MATLAB function. First, g(ri,τj) is computed as described above, for a range of distance and time separation values. By default, ri,i=1,,Nr represent bins with bin edges from 0 to 250 nm with equal spacing of 5 nm, resulting in bin centers ranging between 2.5 and 247.5 nm, and τj,j=1,,Nτ represent bins with edges that are log spaced. The lower edge of the final time-separation bin is determined by identifying the lowest τ that satisfies g(r<25nm,τ)/g(r<25nm,34T<τT)1.5, where T is the time of the image acquisition. The τmax reported in figures is the bin center of this final time-separation bin.

Then, Δg(r,τj)=g(r,τj)g(r,τmax) are computed for each τ, normalized by their first spatial points (r<5nm), and fitted to a Gaussian of the form Aexp(r2/4σxy,j2), using MATLAB’s nonlinear least-squares fitting routing fit. σxy,j is reported as the estimate of σxy,j(τj). Bootstrapped standard errors are determined by choosing eight subsamples of the points, each containing one quarter as many points as the full data set, and estimating σxy(τj)k for each subsample k, in the same way as for the full data set. The standard error is reported as 12std.dev.(σxy(τj)k), where the 12 accounts for the overestimate of errors due to using 4 times fewer points.

Estimating gLSF(r,τ) by grouping localizations with molecules

In simulations and DNA origami samples, localizations imaged at xi,yi,ti are associated with the molecules that produced them. For the nanoruler samples, localizations were assigned to single fluorophores using a home-built implementation of DBSCAN (26), with ε= 12 nm and minPts = 15.

We tabulate displacements between all pairs associated with the same molecule Δrij=Δxij2+Δyij2 and Δtij. The list of all pairs is binned into 2D histograms following the same r and τ bin-edges as described for computing g(r,τ) above and are normalized by the number of pairs contributing to each bin. Distributions at each τ bin are fit to the same Gaussian form as applied to the gLSF(r,τ) estimated from Δg(r,τ).

Measuring distances between distinct molecules on the same ruler

In simulations, all localizations were associated with the molecules and rulers that produced them. In DNA origami samples, DBSCAN segmented molecules on the same ruler were identified as segments whose average localization position was within 10 nm of the expected displacement between probes on rulers specified by the manufacturer (40–60 nm for 50 nm STORM origami and 70–90 nm for 80 nm PAINT origami). We then tabulate displacements between all pairs of localizations associated with different molecules on the same ruler Δrij=Δxij2+Δyij2.

Determining the resolution with FRC

The resolution of each data set was assessed with FRC (8). To produce the FRC curves, localizations were divided into consecutive blocks of 500 frames, and these blocks were randomly placed into one of two statistically independent subsets. For the simulated and experimental DNA origami data sets, as well as the nuclear pore complex (NPC) data set, the pixel size for the FRC calculation was taken to be 5 nm, and square regions (10 μm on each side) were used as a mask. For the actin and Src15 data sets, the pixel size was 10 nm, with the mask 20 μm on each side. Twenty randomly determined repetitions of the calculation were performed for each data set.

Determining localization precision using nearest neighbor distributions

Nearest neighbors were identified in adjacent image frames using the crosspairs algorithm using a time interval of 1 frame and a distance cutoff of 100 nm. The closest nearest neighbor was identified for each molecule and included in the distribution P(rNN). This distribution was then fit using the MATLAB function fit to extract the localization precision (σNN) using the functional form (7) P(rNN)=ArNN2σNN2exp{rNN24σNN2}+B2πw2exp{(rNNro)22w2}+C.

The second and third term correct for pairs of localizations not originating from the same molecule.

Results

Derivation of the estimated LSF

The spatial autocorrelation function describing a distribution of static molecules is given by gmolecules(r) and is tabulated as described in Materials and methods and supporting material. This function can be divided into two components:

gmolecules(r)=1ρδ(r)+gp(r). (1)

The first term in Eq. 1 comes from counting single emitters and is a Dirac delta function (δ(r)) with magnitude equal to the inverse average density of molecules (ρ) over the ROI. The second term in Eq. 1 comes from correlations between distinct pairs of molecules and reports on the sample-dependent detailed structure present in the image. In the special case of complete spatial randomness, gp(r)=1. In SMLM, single emitters labeling molecules have dynamics governed by the probe photophysics, which can be described with the temporal autocorrelation function ge(τ). Probes can remain on for multiple sequential image frames and can blink on again at a later time before eventually bleaching irreversibly (10, 11, 12). As a result, ge(τ) is highly correlated (>1) at short time intervals and decays sharply on timescales describing the average on-time of fluorophores. This function continues to decay slowly at long τ, both because some probes tend to flicker over medium to long timescales and because some fluorophores eventually bleach. Including ge(τ) produces the following spatiotemporal autocorrelation function for the emitting molecules:

gemitters(r,τ)=1ρδ(r)ge(τ)+gp(r). (2)

In other words, the central peak due to the same fluorophore being “on” at different times inherits the dynamics of the probe, while the contributions from pairs of different molecules remains time independent. Equation 2 assumes the blinking statistics of fluorophores labeling different molecules are uncorrelated, which is why ge(τ) multiplies only the first term.

When fluorophores are localized with finite spatial resolution, the distribution of localization errors can be described as a probability density function that characterizes the resolution of the image. This distribution induces a characteristic blurring of the true locations of the molecules, just as a conventional microscope can be thought of as convolving a true image with a PSF. By analogy, we instead call this distribution the LSF. The autocorrelation function of localizations, g(r,τ), is the autocorrelation of the emitters, gemitters(r,τ), blurred (convolved) by the autocorrelation of the LSF, or gLSF(r,τ). Including this factor, g(r,τ) becomes:

g(r,τ)=1ρgLSF(r,τ)ge(τ)+gLSF(r,τ)gp(r), (3)

where indicates a convolution. The first term in Eq. 3 describes multiple observations of the same molecule and is exactly proportional to the LSF at time interval τ.

The goal of subsequent steps of this derivation is to isolate gLSF(r,τ) from the first term of Eq. 3 by comparing g(r,τ) tabulated from pairs of localizations acquired at different time intervals τ. In particular, we choose a long time interval τmax and consider differences:

Δg(r,τ)=g(r,τ)g(r,τmax). (4)

First consider the simple case where the LSF is independent of τ, gLSF(r,τ)=gLSF(r). In this limit, the second term of Eq. 3 is independent of τ, so Δg(r,τ) is exactly proportional to gLSF(r):

Δg(r,τ)=1ρ(ge(τ)ge(τmax))gLSF(r)gLSF(r,τ). (5)

Thus, the difference Δg(r,τ) can be taken as a direct measurement of gLSF(r,τ).

In practice, the above assumption does not hold exactly, so we must consider the effects of time-varying gLSF(r,τ). In this more general case, the above equality becomes an approximation. However, under reasonable experimental conditions, the approximation often remains quite accurate. In the following, we discuss the potential sources of error, and relevant limits under which the errors become negligible.

The first source of error in Eq. 5 under time-varying gLSF(r,τ) arises because the second term of Eq. 3 is no longer independent of τ. The resulting error is given by

gLSF(r,τ)gp(r)gLSF(r,τmax)gp(r).

Note that gLSF(r,τ) is a PDF, so the magnitude of this error can be at most gp(r). As a result, the approximation is likely to be valid when 1ρ(ge(τ)ge(τmax))gP(r). In practice, we find that even samples with relatively strong structure satisfy this assumption for short τ, where ge(τ) decays rapidly. In addition, this source of error can be negligible if gp(r) is nearly constant, as is the case in a sample with weak interactions between labeled molecules. Similarly, if the LSF only broadens slightly, so gLSF(r,τ)gLSF(r,τmax) the error will also be negligible. This condition often holds for accurately drift-corrected images, where we find the width of the LSF to be within a few nm of the localization precision even at τmax.

A second source of error in Eq. 5 under time-varying gLSF(r,τ) comes from the first term of Eq. 3. In particular, assuming that the first source of error is negligible, Eq. 4 yields:

Δg(r,τ)1ρ(gLSF(r,τ)ge(τ)gLSF(r,τmax)ge(τmax)). (6)

In principle, Eq. 6 could be used to extract gLSF(r,τ) and gLSF(r,τmax) through fitting. In practice, we make the further approximation that gLSFr,τgeτgLSFr,τmaxgeτmaxgLSFr,τgeτgeτmax yielding the simple relation:

Δg(r,τ)gLSF(r,τ). (7)

This applies in the limit of ge(τ)>>ge(τmax) or gLSF(r,τ)gLSF(r,τmax), but introduces some practical limitations that are discussed in detail in the next section.

Equation 7 can be used to estimate the full gLSF(r,τ) from acquired localizations. To summarize the LSF using a single number, we further assume that gLSF(r,τ) takes on a Gaussian form:

gLSF(r,τ)exp{x2/4σx2(τ)y2/4σy2(τ)},

where σx(τ) is the standard deviation in the x direction of the distance between the true position of the molecule at time t and a localization at time t+τ. The extra factor of 2 in the denominator accounts for the fact that gLSF reports on the distribution of distances between pairs of localizations, resulting in twice the variance compared with the error in a single localization. Typically, the LSF is isotropic in the lateral dimensions, so we take σxy:=σx=σy and compute angularly averaged correlation functions resulting in:

gLSF(r,τ)exp{r24σxy(τ)2}. (8)

It is convenient to also define the mean-squared displacement σr2(τ)=σx2(τ)+σy2(τ)=2σxy2(τ), which accounts for errors in both dimensions. When localizations are acquired in three dimensions, the axial resolution often differs from the lateral resolution, and this component can be considered independently:

gLSF(z,τ)exp{z24σz(τ)2}.

We have implemented this method as MATLAB code, which is available online (28).

Practical limitations of the LSF estimate

The derivation above mathematically demonstrates why it is possible to simply isolate the autocorrelation of the LSF from the full autocorrelation of the image by tabulating the differences between measured autocorrelations obtained at different time intervals (Eq. 7). This simple method works because repeated observations of the same molecule are typically correlated in time while repeated observations of pairs of distinct molecules are uncorrelated in time. Because of this, simply subtracting observations at different time intervals results in isolating the average contribution from multiple observations of the same molecule. As mentioned above, this simple view requires a few assumptions that limit the applicability of this approach.

The main assumption used to arrive at Eq. 7 is that individual molecules on average produce localizations that are correlated in time. These correlations are expected to extend out to some finite time interval beyond which the method no longer applies because repeated observations become uncorrelated. Past studies document surprisingly long correlation times for many (d)STORM and (f)PALM probes (10, 11, 12) under a range of imaging conditions, suggesting that Eq. 7 should apply even at extended time intervals for images generated using these methods and probes. PAINT probes, which produce localizations through binding and unbinding of a probe fluorophore to a target molecule, only produce temporal correlations up until the off-rate of the specific binding interaction, since the binding of new probes from solution does not depend on the history of probe binding to a specific site (5,29). These reduced correlations contribute to the more uniform appearance of FLM images acquired using PAINT, and will also limit the applicability of this method. Conveniently, plots of g(r<σr,τ) capture the time interval dependence of correlated observations from single molecules (ge(τ)) up to a numerical offset, and examples showing this decay for several experiments with different fluorophores are shown in Fig. S1. These curves can be used to guide the range of τ over which Eq. 7 is expected to apply.

For the case where gLSF(r,τ)=gLSF(r,τmax), Eq. 7 will correctly estimate gLSF(r,τ) as long as ge(τ)>ge(τmax), since the two LSFs will have the same shape in space and subtraction will not lead to distortion even when both components have similar amplitudes (Δge(τ)ge(τ)). When gLSF(r,τ) does not have exactly the same shape as gLSF(r,τmax), distortions can arise for small Δge(τ)/ge(τmax) that can lead to systematic errors in estimates of gLSF(r,τ). These systematic distortions are demonstrated in Fig. S2 for the example of a Gaussian LSF with a standard deviation that varies with τ. For cases where gLSF(r,τ) broadens slightly with increasing time interval, our approach will produce a systematically narrow estimate of gLSF(r,τ) for small Δge(τ)/ge(τmax). This occurs, for example, when labeled molecules diffuse over length scales comparable to the localization precision over the acquisition time, and is demonstrated on the simulated example of Fig. S3. For the purposes of this report, we do not include estimates gLSF(r,τ) that may be subject to this systematic bias, using a cutoff ofΔg(r<5nm,τ)/g(r<5nm,τmax)<0.5. In principle, a user could extend the applicability of this method to larger τ by instead fitting to Eq. 6 which independently models gLSF(r,τ) and gLSF(r,τmax) or could instead tabulate Δg(r,τ) for closely spaced τ where changes in gLSF(r,τ) are expected to be more subtle.

The decay of ge(τ) means that the signal to noise ratio of Δg(r,τ) will degrade at longer time intervals, over which fewer correlated pairs are observed. To increase statistical stability, we group time intervals into increasingly large disjoint τ bins and estimate g(r,τ) as a weighted average. In this report, τ bin edges are log spaced to account for the exponential decay inherent in ge(τ) and we report the average τ value of the bin, but occasionally show the full range of τ values included in the bin. We typically use the back quarter of the data set to initially tabulate g(r,τmax), meaning that 34Tmax<τmax<Tmax, where Tmax is the acquisition time. We then identify the cutoff by finding the τ where Δg(r<5nm,τ)/g(r<5nm,τmax) first falls below 0.5. We then recalculate g(r,τmax) using this cutoff as the low τ edge of the τmax bin. Statistical confidence is estimated through bootstrapping and we estimate the statistical power of Δg(r,τ) directly from g(r,τ), as described in Materials and methods.

Validation through simulation

To validate this approach, we generated simulated data sets of DNA origami nanorulers in which fluorophores are separated by a fixed distance of 50 nm. Fluorophore blinking was subject to a photophysical model based on (12,15). In brief, fluorophores could exist in an “on” state, one of three dark states, or a bleached state. Transitions between states were governed by a continuous time Markov process, with transition rates roughly based on those measured in (12) but modified to reflect the experimental conditions used to obtain experimental images in this work. Nanorulers were placed randomly and uniformly with an average density of 1/μm2 across a 40 by 40 μm field of view with the molecules having a localization precision of 10 nm in each lateral dimension. A total of 20,000 image frames were simulated with a frame time of 0.1 s. Fig. 1 a illustrates a small field of view containing 3 nanorulers, both as a reconstructed image and with localizations colored by time. An image showing a larger subset of the field of view is shown as Fig. S4.

Figure 1.

Figure 1

Validation of approach through simulation. (a) Simulations consist of randomly positioned pairs of molecules positioned 50 nm apart in random orientations. Reconstructed image (left; 1 nm pixels, 3 nm Gaussian blur) and scatterplot of localizations with color representing the observation time (right) for a small subset of the simulated plane. Scale bar, 100 nm. A reconstructed image showing a larger field of view is shown in Fig. S4. (b) Autocorrelations as a function of displacement g(r,τ), tabulated from simulations for time interval windows centered at the values shown. (c) Δg(r,τ)=g(r,τ)g(r,τmax=1206s) for the examples shown in (b). (d) Δg(r,τ) are fit to Δg(r,τ)exp{r2/4σxy2} to extract the width of the LSF in each lateral dimension, which in this case is the same as the LSF width deduced by grouping localizations with their associated molecules (from loc.) and the simulated localization precision (loc. prec.) at all time intervals. Error bars represent estimates of the standard error obtained through bootstrapping. (e) The distribution of displacements between different molecules on the same ruler are well described by a model incorporating the localization precision (10 nm) and the separation distance (50 nm). To see this figure in color, go online.

Simulated localizations were subjected to a spatiotemporal autocorrelation analysis as described in Materials and methods and representative plots of the spatial component of g(r,τ) are shown in Fig. 1 b. This family of curves contains two major features: an initial peak at short displacements (r < 40 nm) arising from multiple localizations from the same molecule, and a second feature at wider radii (40 nm < r < 100 nm) arising from displacements between localizations from different molecules on the same ruler. The amplitude of the initial peak decreases with increasing τ, while the second feature is largely independent of τ. The τ-dependent component is isolated by subtracting g(r,τ) at long τ from those arising from shorter τ to obtain Δg(r,τ) as shown in Fig. 1 c. In this simulation, there are no τ-dependent effects that would impact resolution, resulting in Δg(r,τ) having the same width for all τ. This is summarized by fitting Δg(r,τ) to the Gaussian function of Eq. 8 to extract the LSF width, σxy, reported in Fig. 1 d. Representative Δg(r,τ) with Gaussian fits are shown in Fig. S5. In this simulated example, we can associate all localizations with the molecules that produced them and can directly compute gLSF(r,τ) from the relative positions of localizations originating from the same molecule as described in Materials and methods. This is followed by fitting to Eq. 8 to obtain σxy, which is also reported in Fig. 1 d. Finally, we tabulate displacements between all localizations originating from distinct molecules on the same ruler. The distribution of these displacements is shown in Fig. 1 e, and its properties are described by simulation parameters. The line in Fig. 1 e has a Gaussian shape with the form: P(r)exp{(rr)2/4σxy2}, where σxy is the localization precision (10 nm) and r is the average displacement between localizations originating at the ruler endpoints (52 nm). The slight bias in r toward a value larger than the actual separation between molecules (50 nm) arises from the components of localizations that fall perpendicular to the ruler axis and always contribute positive values to the measured displacements (502+2σxy2 = 52 nm).

The simulation of Fig. 1 does not contain any factors that degrade image resolution over time. In Fig. 2, the same simulation is subjected to a directed drift in the x direction as well as diffusive drift in both x and y. Drift is corrected using a mean shift algorithm (17) that works by evenly dividing localizations into time-bins, then finding the displacement that minimizes the mean distance between localizations across all time-bins. The applied drift and the calculated drift correction are shown in Fig. 2 a along with the resulting image reconstruction. g(r,τ) curves over different windows in time interval (Fig. 2 b) closely resemble those shown in the static simulation, but Δg(r,τ) now broadens with increasing τ (Fig. 2 c). This broadening reflects a degradation of the LSF beyond the localization precision at all but the shortest time intervals and plateaus near the timescale of drift correction (Fig. 2 d). Here, the measured LSF width reaches a local maximum at a time separation somewhat smaller than the drift correction timescale, which we attribute to the drift correction algorithm itself as it is also apparent in the LSF width obtained by associating localizations with their originating molecules. Deviations from the expected distribution of pairwise distances between localizations of molecules from opposite ends of the same nanoruler also exceed those of the static case (Fig. 2 e) and are better described by a model that incorporates the measured LSF width, σxy=11.8 nm, which is determined by averaging over estimated σxy(τ) weighted by the number of pairs associated with each time interval window.

Figure 2.

Figure 2

Validation of approach through simulation with drift and drift correction. (a) The simulation from Fig. 1 with applied drift (black) and drift correction (red) as shown in the trajectory above. Reconstructed image (left; 1 nm pixels, 3 nm Gaussian blur) and scatterplot of localizations with color representing the observation time (right) for a small subset of the simulated plane. Scale bar, 100 nm. (b) Autocorrelations as a function of displacement g(r,τ), tabulated from simulations for time interval windows centered at the values shown. (c) Δg(r,τ)=g(r,τ)g(r,τmax=1211s) for the examples shown in (b). (d) Δg(r,τ) are fit to Δg(r,τ)exp{r2/4σxy2} to extract the width of the effective LSF in each lateral dimension. In this case, the LSF width varies with time interval, closely following the LSF width measured by grouping localizations with molecules (from loc.). Error bars represent estimates of the standard error obtained through bootstrapping. (e) The distribution of displacements between different molecules on the same ruler are well described by a model incorporating the average LSF width (σxy=11.8nm) and the known separation distance (50 nm). To see this figure in color, go online.

Observing a plateau in plots of σxy(τ) is a good indicator that the LSF estimator is generating reliable estimates, since drift correction is designed to stabilize localization error on long timescales. Fig. S3 shows an example of the same simulation with drift and drift correction, but where individual molecules are also allowed to diffuse slowly such that gLSF(r) broadens substantially with τ in a way that is not accounted for through drift correction. In that case, σxy(τ) increases with τ and is underestimated byΔg(r,τ). This is a case where the approximations needed to estimate gLSF(r) as Δg(r,τ) are not appropriate.

The simulated blinking dynamics of fluorophores includes a chance of photobleaching, or an irreversible transition into a dark state. In this example and in our experience in general, we find that this analysis is largely independent of photobleaching rates. This is because the normalization used to tabulate g(r,τ) accounts for any systematic reduction in the number of localizations over time. Photobleaching does reduce the number of pairs observed at large separation times, and therefore the statistical performance of the measurement.

Estimating the LSF of DNA origami data sets

Fig. 3 demonstrates this approach on an experimental data set of DNA origami nanorulers that resemble the simulated rulers with AlexaFluor647 labeling sites separated by 50 nm. Fig. 3 a shows a small subset of the field of view of the acquired image, that was reconstructed from 29,000 image frames acquired over 53 min at a frame rate of 0.1 s, with a total of over 126,000 individual localizations. In postprocessing, a drift correction was applied with a time-window width of 25 s or 250 image frames. As in the simulated case, g(r,τ) decays at short r with increasing τ (Fig. 3 c), and Δg(r,τ) is roughly Gaussian (Fig. 3 d). Fitting Δg(r,τ) yields the resolution σxy(τ). As in the simulated example, the estimated LSF width is lowest at short time intervals (6.5 ± 0.1 nm) and plateaus at timescales somewhat shorter than the frequency of the applied drift correction.

Figure 3.

Figure 3

Experimental observations of DNA origami rulers labeled with AlexaFluor647. (a) Reconstructed image (left; 1 nm pixels, 3 nm Gaussian blur) and scatterplot of localizations with color representing the observation time (right) for a small subset of the observed plane. Scale bars, 100 nm and 50 nm (inset). A larger field of view from this image is shown in Figure S6. (b) Autocorrelations as a function of displacement g(r,τ), tabulated from localizations for time interval windows centered at the values shown. (c) Δg(r,τ)=g(r,τ)g(r,τmax=1976s) for the examples shown in (b). (d) Δg(r,τ) are fit to Δg(r,τ)exp{r2/4σxy2} to extract the width of the LSF in each lateral dimension which varies with time interval, closely following the LSF width measured by grouping localizations with DBSCAN segmented molecules (from loc.). Error bars represent estimates of the standard error obtained through bootstrapping. The resulting average LSF width for this image is σxy= 7.48 ± 0.07 nm. (e) The distribution of displacements between pairs of fluorophores on the same ruler. Fitting to a Gaussian shape with width given by the measured σxy produces r= 52.2 ± 0.2 nm. To see this figure in color, go online.

Since the localization clouds from individual Alexa Fluor 647 molecules were visually distinct, we applied a DBSCAN segmentation algorithm (26) to associate localizations with individual molecules. From this segmentation, we tabulated the LSF width within segmented molecules (Fig. 3 d) and find good general agreement with estimates of the LSF width obtained from Δg(r,τ) at short τ, further validating this approach. At longer τ, the LSF width differs somewhat by these two methods. We attribute this to inaccurate segmenting of localizations to molecules by the DBSCAN algorithm, which is expected to become more prominent at longer τ due to reduced temporal correlations of emitters. The segmented localizations are also used to tabulate the distribution of pairwise distances between different molecules on the same origami (Fig. 3 e). This distribution is well described by a model applying the measured σxy(τ)=7.5 nm with r=52.2±0.2 nm, where the error is dominated by uncertainty in the sample magnification at the camera. This yields a separation distance of 51.1 ± 0.2 nm between labels on individual rulers, which is within the manufacturer’s specifications.

We have conducted this same analysis on a similar DNA origami sample that was imaged using DNA PAINT, this time using rulers containing three collinear docking sites separated by 80 nm and summarized in Fig. 4. In contrast to the dSTORM fluorophores of Fig. 3, molecules imaged by DNA PAINT do not exhibit long timescale correlations, limiting the applicability of this method. The DNA PAINT probes used for this image do remain correlated over timescales relevant for drift correction (∼15 s), which is long enough to provide a useful estimate of image resolution. In this example, drift correction was applied with a time-window width of 11 s or 110 image frames. Pairwise distances between labels on the center and ends of the origami were measured after applying DBSCAN to segment localizations from distinct docking sites and are well described by a model applying the measured σxy(τ)=8.7nm withr=82.5±0.3nm. This yields a separation distance of 81.6 ± 0.3 nm between the center and endpoint labels on individual rulers. Since temporal correlations of the PAINT probes used in this example only extend for a small fraction of the acquisition time (20 min), the average σxy is given primarily by the value determined in the largest time interval bin (τ=15s). This is because the vast majority of pairs are detected at time intervals grouped into τmax, where we do not estimate σxy but instead apply the value estimated at the previous time-window bin. The good agreement between the model and measured distributions in Fig. 3 e validates this approach, at least for this specific example where drift correction was accomplished on a shorter timescale.

Figure 4.

Figure 4

Experimental observations of DNA origami rulers imaged with DNA PAINT, using an Atto655 imaging strand. (a) Reconstructed image (left; 1 nm pixels, 3 nm Gaussian blur) and scatterplot of localizations with color representing the observation time (right) for a small subset of the observed plane. Scale bar, 100 nm. A larger field of view from this image is shown in Figure S7. (b) Autocorrelations as a function of displacement g(r,τ), tabulated from localizations for time interval windows centered at the values shown. (c) Δg(r,τ)=g(r,τ)g(r,τmax=609s) for the examples shown in (b). (d) Δg(r,τ) are fit to Δg(r,τ)exp{r2/4σxy2} to extract the width of the LSF in each lateral dimension, which varies with time interval, closely following the LSF width measured by grouping localizations with DBSCAN segmented molecules (from loc.). Error bars represent estimates of the standard error obtained through bootstrapping. The resulting average LSF width for this image isσxy= 8.8 ± 0.2 nm. (e) The distribution of displacements between different molecules on the same ruler. Fitting to a Gaussian shape with width given by the measured σxy produces r= 82.5 ± 0.3 nm. To see this figure in color, go online.

Estimating the LSF from data sets of labeled structures in chemically fixed cells

We next apply this method to image labeled structures in cells. Fig. 5 shows the method applied to NPCs within the nuclear envelope of chemically fixed primary mouse neurons. In these images, a protein component of NPCs, NUP210, was labeled with a conventional primary antibody and a Fab secondary directly conjugated to AlexaFluor647. A total of 12,500 images were acquired over 23 min with an integration time of 0.1 s and a total of 178,873 localizations detected within the masked ROI at the nuclear envelope. Drift correction was accomplished with a time-window of 8.3 s or 83 image frames. Reconstructed images of the entire nucleus and single pores are shown in Fig. 5 a along with a scatter plot demonstrating that individual NPC subunits are sampled at times throughout the observation g(r,τ) (Fig. 5 b). Curves extend to beyond 100 nm reflecting the extended structure of individual labeled NPCs, but extended structure is effectively removed by examining Δg(r,τ) (Fig. 5 c). Fitting Δg(r,τ) to a Gaussian shape quantifies image LSF width over time, which is smallest at short τ (8.3 ± 0.3 nm) and increases at larger time intervals. We estimate σxy to be 10.9 ± 0.8 nm.

Figure 5.

Figure 5

Experimental observations of nuclear pore complexes within primary mouse neurons, antibody-labeled with AlexaFluor647. (a) (Left) Reconstructed image (10 nm pixels, 10 nm Gaussian blur) with yellow dashed line indicating the region of interest interrogated. (Right) A magnified subset from the white square region of larger image (1 nm pixels, 4 nm Gaussian blur) along with a scatterplot of localizations with color representing the observation time. Scale bars, 2 μm (left) and 200 nm (right top and bottom). (b) Autocorrelations as a function of displacement g(r,τ), tabulated from localizations for time interval windows centered at the values shown. (c) Δg(r,τ)=g(r,τ)g(r,τmax=685s) for the examples shown in (b). (d) Δg(r,τ) are fit to Δg(r,τ)exp{r2/4σxy2} to extract the LSF width in each lateral dimension. Error bars represent estimates of the standard error obtained through bootstrapping. The average LSF width for this image is σxy= 10.9 ± 0.8 nm. To see this figure in color, go online.

Fig. 6 shows a similar class of cellular structure imaged using DNA PAINT. In this example, clathrin-gfp is transiently expressed in CH27 cells then labeled post fixation with an anti-GFP nanobody conjugated to an ssDNA docking strand. Cells are then imaged in the presence of a complementary imaging strand labeled with Atto 655. Similar to the origami DNA PAINT sample of Fig. 4, temporal correlations from single molecules remain for short to medium timescales (∼8 s), allowing for accurate estimation of LSF broadening due to drift and drift correction. Here, we estimate the average LSF width σxy to be 11.6 ± 0.3 nm.

Figure 6.

Figure 6

Experimental observations of clathrin-coated pits within CH27 B cells, imaged using a nanobody-coupled Atto655 DNA-PAINT scheme. (a) (Left) Reconstructed image (16 nm pixels, 20 nm Gaussian blur) with yellow dashed line indicating the region of interest interrogated. (Right) A magnified subset from the white square region of larger image (1 nm pixels, 4 nm Gaussian blur) along with a scatterplot of localizations with color representing the observation time. Scale bars, 2 μm (left) and 200 nm (right top and bottom). (b) Autocorrelations as a function of displacement g(r,τ), tabulated from localizations for time interval windows centered at the values shown. (c) Δg(r,τ)=g(r,τ)g(r,τmax=274s) for the examples shown in (b). (d) Δg(r,τ) are fit to Δg(r,τ)exp{r2/4σxy2} to extract the LSF width in each lateral dimension. Error bars represent estimates of the standard error obtained through bootstrapping. The average resolution for this image is σxy= 11.6 ± 0.3 nm. To see this figure in color, go online.

Fig. 7 shows the method applied to an image of F-actin staining by phalloidin-AlexaFluor647 in chemically fixed CH27 B cells adhered to a glass surface decorated with VCAM. For this sample, 5000 images were acquired over 4.9 min with an integration time of 0.05 s and a total of 302,681 localizations within the masked ROI. Drift correction was accomplished with a time-window of 2.5 s or 50 image frames. Unlike Figs. 5 and 6, where labels decorate isolated structures scattered over a surface, this reconstructed image of F-actin is more space filling, making up a web of fibers that extend across the entire ventral cell surface (Fig. 7 a). This extended structure can be detected in g(r,τ) (Fig. 7 b) as increased intensity in the tail that extends to large separation distances for curves generated at all τ. This large-scale structure is effectively removed in Δg(r,τ) (Fig. 7 c) allowing for a determination of the LSF width over a range of timescales as shown in Fig. 7 d. In this example, the ROI was drawn within the cell boundary to minimize the intensity of gp(r) which allows for accurate estimation of gLSF(r,τ) out to longer time intervals. This is because the amplitude of g(r,τmax) includes contributions from gp(r), while the amplitude of Δg(r,τ) only depends on ge(r), therefore Δg(r<25nm,τ)/g(r<25nm,τmax) will remain larger than the cutoff over a wider range of τ. The estimate for σxy is 11.8 ± 1.5 nm.

Figure 7.

Figure 7

Experimental observations of F-actin on the ventral surface of a CH27 B cell using phalloidin-AlexaFluor647. (a) (Left) Reconstructed image (50 nm pixels, 50 nm Gaussian blur) with yellow dashed line indicating the region of interest interrogated. (Right) A magnified subset from the white square region of larger image (1 nm pixels, 10 nm Gaussian blur) along with a scatterplot of localizations with color representing the observation time. Scale bars, 5 μm (left) and 500 nm (right top and bottom). (b) Autocorrelations as a function of displacement g(r,τ), tabulated from localizations for time interval windows centered at the values shown. (c) Δg(r,τ)=g(r,τ)g(r,τmax=150s) for the examples shown in (b). (d) Δg(r,τ) are fit to Δg(r,τ)exp{r2/4σxy2} to extract the LSF width in each lateral dimension. The timescale of the drift correction is shown in red. Error bars represent estimates of the standard error obtained through bootstrapping. The average resolution for this image is σxy= 11.8 ± 1.5 nm. To see this figure in color, go online.

As a final demonstration, Fig. 8 shows the method applied to an image of Src15-mEos3.2, a myristoylated peptide bound to the inner leaflet of the plasma membrane and directly conjugated to the photoswitchable protein fluorophore mEos3.2. This peptide uniformly decorates the ventral surface of a chemically fixed CH27 B cell adhered to a glass surface decorated with VCAM, as seen in the reconstructed image of Fig. 8 a. For this sample, 7000 images were acquired over 12.7 min with an integration time of 0.1 s and a total of 240,503 localizations. Drift correction was accomplished with a time-window of 12.5 s or 125 image frames. mEos3.2 exhibits different blinking dynamics than AlexaFluor647, with some probes exhibiting correlated blinking on long timescales. This can be seen in plots of g(r,τ) that take long timescales to decay (Fig. 8 b). Again, Δg(r,τ) curves isolate the initial peak, allowing for the quantification of the LSF width. In this example, the slow decay of g(r<25nm,τ) with τ allows for estimation of σxy out to large time intervals. The estimate for σxy is 13.7 ± 0.2 nm.

Figure 8.

Figure 8

Experimental observations of membrane anchor peptide Src15-mEos3.2 on the ventral surface of a CH27 B cell. (a) (Left) Reconstructed image (50 nm pixels, 50 nm Gaussian blur) with yellow dashed line indicating the region of interest interrogated. (Right) A magnified subset from the white square region of larger image (1 nm pixels, 6 nm Gaussian blur) along with a scatterplot of localizations with color representing the observation time. Scale bars, 5 μm (left) and 200 nm (right top and bottom). (b) Autocorrelations as a function of displacement g(r,τ), tabulated from localizations for time interval windows centered at the values shown. (c) Δg(r,τ)=g(r,τ)g(r,τmax=533s) for the examples shown in (b). (d) Δg(r,τ) are fit to Δg(r,τ)exp{r2/4σxy2} to extract the LSF width in each lateral dimension. The timescale of the drift correction is shown in red. Error bars represent estimates of the standard error obtained through bootstrapping. The average resolution for this image is σxy= 13.7 ± 0.2 nm. To see this figure in color, go online.

Comparison with other measures of image resolution

The data sets interrogated in Figs. 1, 2, 3, 4, 5, 6, 7, and 8 were also subjected to other methods that report on image resolution and results are summarized in Table 1. These include the FRC (8,9), errors returned directly from fitting localizations (Cramer-Rao lower bound or CRLB of the variance of a maximum likelihood estimator (24,30)), and using the nearest neighbor distribution in adjacent frames (nearest neighbor-based analysis, or NeNA (7)).

Table 1.

Summary of values obtained for several resolution measures for the data sets shown in figures

Data set LSF (from Δg(r,τ))
LSF (from segments)
FRC CRLB
NeNA
σxy(τframe) σxy σxy(τframe) σxy Peak Avg
Fig. 1 10.1 (0.2) 10.02 (0.08) 10.1 10.0 30 (1) N/A 10.0
Fig. 2 10.1 (0.1) 11.79 (0.07) 10.1 11.5 35 (1) N/A 10.0
Fig. 3 6.5 (0.1) 7.48 (0.07) 6.4 8.1 20 (1) 6.3 9.0 6.7
Fig. 4 6.78 (0.02) 8.8 (0.2) 6.8 9.7 27 (1) 6.8 7.8 6.8
Fig. 5 8.3 (0.3) 10.9 (0.8) N/A
N/A
N/A
N/A
35 (1) 5.6 9.5 7.8
Fig. 6 10.1 (0.1) 11.6 (0.3) 48 (2) 10.9 14.1 9.3
Fig. 7 8.1 (0.1) 11.8 (1.5) 285 (6) N/A 7.5
Fig. 8 11.0 (0.1) 13.7 (0.2) 59 (6) 9.9 14.2 9.9

All units are nm and errors, when evaluated, are included in parenthesis. LSF widths are estimated from Δg(r,τ) and by associating localizations with molecules (from segments, not possible for cellular images). σxy(τframe) is the LSF width for τ close to the frame time (τframe) and σxy is the LSF widths averaged over all τ. FRC are values obtained using the FRC. Full FRC curves are included in Fig. S8. CRLB values describe features of the distribution of Cramer-Rao lower bounds returned by the fitting procedure for data sets processed without background subtraction. Full distributions and σxy(τ) estimated from these differently processed images are included in Fig. S9. NeNA are obtained by fitting nearest neighbor distributions from localizations in adjacent frames. Distributions and fits are included in Fig. S9.

The FRC method involves reconstructing images and quantifying them in Fourier space, identifying the highest frequency signals that exceed some predetermined noise threshold, as illustrated in Fig. S8. As a result, the resolution values returned by the FRC algorithm depend on the localization accuracy of single emitters but also the structure present in images and the spatial sampling of that structure. Because of this, the FRC resolutions reported in Table 1 do not trend systematically with LSF widths extracted through Δg(r,τ), as these report on the localization accuracy alone. The FRC method is sensitive to factors that erode the LSF over time, as indicated by the larger value generated from the simulated data set with drift and imperfect drift correction (Fig. 2; 35 nm) as compared with the simulation without drift (Fig. 1; 30 nm). The FRC is also highly dependent on the types of structures imaged, returning a very large value for the data set containing F-actin localizations (Fig. 7; 285 nm) even though the LSF width estimate from Δg(r,τ) is similar to the other samples imaged (11.8 nm). This is because this data set contains the most space-filling structure so there is less signal at high spatial frequencies, and because this structure is less spatially sampled than the other data sets shown. We also note that long blinking time correlations can lead to artificially low FRC resolution values (8), whereas the LSF width estimate is dependent on these time correlations to achieve accurate results.

The fitting algorithms used return estimated localization precisions for each fit, known as the CRLB. These error estimates are obtained by applying a model that incorporates photon counting statistics, the Gaussian shape of the PSF, and specifics of the camera, such as its gain and offset. The accuracy of the error estimates depends in turn on the accuracy of the assumptions used to build the fitting model. While it is possible to achieve accurate error estimates with CRLBs (24), we find that factors, such as imperfect gain calibration, read noise, and nonuniform background fluorescence, frequently lead to imperfect error estimates in realistic experimental conditions. Our typical imaging processing pipeline involves a preprocessing step in which the image background is estimated then subtracted from raw image frames. The mean of the background on each fitting region is added back to that region, to approximately reproduce the appropriate counting statistics. Since this background subtraction is not incorporated into the model used to estimate errors, the values returned by the fitting algorithm are inaccurate. The values reported in Table 1 are obtained by re-fitting the data set without background subtraction, leading to somewhat different values of σxy(τ) as shown in supporting material Fig. S9. For each data set, there is a broad distribution of errors peaked at a value close to the LSF width estimated from Δg(r,τ) at the shortest time interval interrogated (σxy(τframe)). This distribution extends asymmetrically to larger errors, biasing the average error to larger values. We speculate that the average error from fits differs from that estimated by Δg(r,τ) at short τ due to simplifying or inaccurate assumptions in the model employed by the fitting algorithm. It is also possible that larger errors originate from localizations that are not correlated in time and therefore do not contribute to the estimate from Δg(r,τframe).

A third method uses the distribution of nearest neighbor distances between probes imaged in adjacent frames to estimate the average localization precision through fitting (supporting material Fig. S10) (7). This method makes the often valid assumption that the vast majority of neighbor localizations in adjacent frames arise from the same labeled molecule, therefore this distribution reports on the accuracy of localization at short time intervals. As expected the localization precision reported by the nearest neighbor distribution method is in good general agreement for the LSF width estimated from Δg(r,τ) at the shortest time interval interrogated (σxy(τframe)), especially for data sets of well-separated molecules (Figs. 1, 2, 3, and 4). For images of cellular structures, we find a slight bias of the NeNA estimate toward smaller values than those estimated from Δg(r,τ). In these samples, a larger fraction of nearest neighbors originate from different molecules, and we speculate that the correction terms used to fit these additional neighbors contribute to this bias. Finally, we note that the NeNA estimates do not capture broadening of the LSF by factors that erode localization precision over time. This is expected since only nearest neighbors from adjacent frames are incorporated in the analyzed distributions.

Conclusions

Here, we present a method to estimate the LSF of an SMLM measurement directly from acquired localizations, relying on a few reasonable assumptions. The basic method is validated through simulations and demonstrated using experimental data of three commonly used localization microscopy probes. The described method performs best when used alongside fluorophores that exhibit blinking dynamics that remain correlated in time out to timescales relevant to sources of error present in the imaging experiment. The width of the LSF, here reported by fitting to a Gaussian shape, directly reports on how accurately the positions of molecules are recorded at the end of an experimental and analytical pipeline, and can be used to optimize imaging protocols or assist in the interpretation or further processing of imaged structures.

Directly measuring the LSF allows experimenters to validate and optimize imaging and processing methods, which can be difficult to accomplish using existing metrics of image resolution. For example, while commonly used fitting algorithms return localization precisions, these estimates are only valid when raw image frames are fit, prohibiting the use of preprocessing steps, such as filtering or background subtraction. In contrast, the FRC resolution metric can be used to compare processing steps accomplished on the same set of observations, but variation across samples can be hard to interpret since this measure depends on the LSF, the sampling of the image, and the types of structures being imaged. A distinct advantage of the LSF estimate described here is that it directly reports on how accurately one can measure distances between localized molecules in an image. We expect this method to be useful when interpreting experiments that involve the measurement of distances between localizations in images, for example, in nanometer precision distance measurement methods (31), where an accurate estimate of the localization error is essential. We also expect it to be useful in the interpretation of spatial auto- or cross-correlation analysis, which reports on the statistical distribution or codistribution of labeled components (6,32,33).

The values obtained using the described method depend on long timescale correlations of fluorescent probes used for imaging. For the examples shown, we find that it is most important to characterize resolution lost on timescales shorter than the timescale of drift correction, which appears to be the most important source of time-dependent degradation of the LSF in these cases. Fortunately, numerous methods exist to correct for rigid drift on timescales relevant to the temporal correlations of many SMLM probes (34, 35, 36, 37, 38, 39, 40, 41), suggesting that the method presented in this report is broadly applicable for a range of experimental conditions. Apart from drift, the estimated LSF is also sensitive to other time-dependent sources of error (or their absence). For example, a recent report observes residual motions of fluorescent labels in fixed samples, which would appear in the LSF as a degradation of LSF width over the timescale of the relevant motions (14).

The reported method estimates resolution by fitting the estimated LSF at each time interval probed to a Gaussian shape, followed by a weighted average to extract the estimated error of the average localization in an image. This approach is convenient because the resolution is summarized as a single number. However, it is possible to extract more detailed information about the LSF by not averaging over angles, or by loosening the assumption of a Gaussian shape. Fig. S11 shows the autocorrelation of the LSF, gLSF(r,τ), for the NPC data set of Fig. 5, expanded in x, y, and τ. Fig. S12 shows the weighted time average gLSF:=gLSF(r,τ)τ for the six data sets of Figs. 3, 4, 5, 6, 7, and 8, with weights given by the observed number of localization pairs separated by each time delay τ. Beyond quantifying resolution, we anticipate that the LSF could prove useful for other purposes, such as deconvolution of reconstructed images or spatial correlation functions, or as an input to clustering algorithms or other analysis tools.

Author contributions

T.R.S., F.J.F., and S.L.V. developed the method. T.R.S. and S.L.V. developed the analysis code and performed the analyses, with help from F.J.F. T.R.S., F.J.F., and S.L.V. developed the simulated data. S.L.V. imaged the nanoruler samples, and the clathrin, actin, and Src15 samples. The Src15 and clathrin samples were prepared by E.R.S. and the actin sample was prepared by J.C.F.-N. NPC sample preparation and imaging was carried out by S.K. S.L.V. and T.R.S. wrote the text in consultation with the other authors.

Acknowledgments

We thank Kathleen Wisser, Andrea Stoddard, and Patrick DeLear for assistance with experiments. This work was supported by grants from the U.S. National Science Foundation (MCB1552439) and National Institutes of Health (GM129347 and GM110052).

Declaration of interests

The authors declare no competing interests.

Editor: Amy Palmer.

Footnotes

Supporting material can be found online at https://doi.org/10.1016/j.bpj.2022.06.036.

Supporting citations

References (8,42, 43, 44) appear in the supporting material.

Supporting material

Document S1. Figures S1–S12
mmc1.pdf (1.5MB, pdf)
Document S2. Article plus supporting material
mmc2.pdf (4.2MB, pdf)

References

  • 1.Rust M.J., Bates M., Zhuang X. Sub-diffraction-limit imaging by stochastic optical reconstruction microscopy (STORM) Nat. Methods. 2006;3:793–795. doi: 10.1038/nmeth929. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Heilemann M., Margeat E., et al. Tinnefeld P. Carbocyanine dyes as efficient reversible single-molecule optical switch. J. Am. Chem. Soc. 2005;127:3801–3806. doi: 10.1021/ja044686x. [DOI] [PubMed] [Google Scholar]
  • 3.Hess S.T., Girirajan T.P.K., Mason M.D. Ultra-high resolution imaging by fluorescence photoactivation localization microscopy. Biophys. J. 2006;91:4258–4272. doi: 10.1529/biophysj.106.901116. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Betzig E., Patterson G.H., et al. Hess H.F. Imaging intracellular fluorescent proteins at nanometer resolution. Science. 2006;313:1642–1645. doi: 10.1126/science.1127344. [DOI] [PubMed] [Google Scholar]
  • 5.Sharonov A., Hochstrasser R.M. Wide-field subdiffraction imaging by accumulated binding of diffusing probes. Proc. Natl. Acad. Sci. USA. 2006;103:18911–18916. doi: 10.1073/pnas.0609643104. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Veatch S.L., Machta B.B., et al. Baird B.A. Correlation functions quantify super-resolution images and estimate apparent clustering due to over-counting. PLoS One. 2012;7:e31457. doi: 10.1371/journal.pone.0031457. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Endesfelder U., Malkusch S., et al. Heilemann M. A simple method to estimate the average localization precision of a single-molecule localization microscopy experiment. Histochem. Cell Biol. 2014;141:629–638. doi: 10.1007/s00418-014-1192-3. [DOI] [PubMed] [Google Scholar]
  • 8.Nieuwenhuizen R.P.J., Lidke K.A., et al. Rieger B. Measuring image resolution in optical nanoscopy. Nat. Methods. 2013;10:557–562. doi: 10.1038/nmeth.2448. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Banterle N., Bui K.H., et al. Beck M. Fourier ring correlation as a resolution criterion for super-resolution microscopy. J. Struct. Biol. 2013;183:363–367. doi: 10.1016/j.jsb.2013.05.004. [DOI] [PubMed] [Google Scholar]
  • 10.Annibale P., Vanni S., et al. Radenovic A. Quantitative photo activated localization microscopy: unraveling the effects of photoblinking. PLoS One. 2011;6:e22678. doi: 10.1371/journal.pone.0022678. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Nieuwenhuizen R.P.J., Bates M., et al. Stallinga S. Quantitative localization microscopy: effects of photophysics and labeling stoichiometry. PLoS One. 2015;10:e0127989. doi: 10.1371/journal.pone.0127989. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Patel L., Williamson D., et al. Cohen E.A.K. Blinking statistics and molecular counting in direct stochastic reconstruction microscopy (dSTORM) Bioinformatics. 2021;37:2730–2737. doi: 10.1093/bioinformatics/btab136. [DOI] [PubMed] [Google Scholar]
  • 13.Shang M., Huang Z.l., Wang Y. Influence of drift correction precision on super-resolution localization microscopy. Appl. Opt. 2022;61:3516. doi: 10.1364/AO.451561. [DOI] [PubMed] [Google Scholar]
  • 14.Ni J., Cao B., et al. Ni Y. Improved localization precision via restricting confined biomolecule stochastic motion in single-molecule localization microscopy. Nanophotonics. 2021;11:53–65. doi: 10.1515/nanoph-2021-0481. [DOI] [Google Scholar]
  • 15.Patel L., Gustafsson N., et al. Cohen E. A hidden Markov model approach to characterizing the photo-switching behavior of fluorophores. Ann. Appl. Stat. 2019;13:1397–1429. doi: 10.1214/19-AOAS1240. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Dana Simulate continuous-time Markov chains. 2022. https://www.mathworks.com/matlabcentral/fileexchange/79649-simulate-continuous-time-markov-chains MATLAB Central File Exchange. Retrieved January 7, 2022.
  • 17.Fazekas F.J., Shaw T.R., et al. Veatch S.L. A mean shift algorithm for drift correction in localization microscopy. Biophys. Rep. 2021;1:100008. doi: 10.1016/j.bpr.2021.100008. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Haughton G., Arnold L.W., et al. Mercolino T.J. The CH series of murine B cell lymphomas: neoplastic analogues of Ly-1+ normal B cells. Immunol. Rev. 1986;93:35–51. doi: 10.1111/j.1600-065X.1986.tb01501.x. [DOI] [PubMed] [Google Scholar]
  • 19.Stone M.B., Veatch S.L. Steady-state cross-correlations for live two-colour super-resolution localization data sets. Nat. Commun. 2015;6:7347. doi: 10.1038/ncomms8347. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Chan J.R., Hyduk S.J., Cybulsky M.I. α4β1 integrin/VCAM-1 interaction activates αLβ2 integrin-mediated adhesion to ICAM-1 in human T cells. J. Immunol. 2000;164:746–753. doi: 10.4049/jimmunol.164.2.746. [DOI] [PubMed] [Google Scholar]
  • 21.Rodgers W. Making membranes green: construction and characterization of GFP-fusion proteins targeted to discrete plasma membrane domains. Biotechniques. 2002;32:1044–1046. doi: 10.2144/02325st05. 1050-1051. [DOI] [PubMed] [Google Scholar]
  • 22.Zhang M., Chang H., et al. Xu T. Rational design of true monomeric and bright photoactivatable fluorescent proteins. Nat. Methods. 2012;9:727–729. doi: 10.1038/nmeth.2021. [DOI] [PubMed] [Google Scholar]
  • 23.Izeddin I., Boulanger J., et al. Sibarita J.B. Wavelet analysis for single molecule localization microscopy. Opt Express. 2012;20:2081–2095. doi: 10.1364/OE.20.002081. [DOI] [PubMed] [Google Scholar]
  • 24.Smith C.S., Joseph N., et al. Lidke K.A. Fast, single-molecule localization that achieves theoretically minimum uncertainty. Nat. Methods. 2010;7:373–375. doi: 10.1038/nmeth.1449. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Ovesný M., Křížek P., et al. Hagen G.M. ThunderSTORM: a comprehensive ImageJ plug-in for PALM and STORM data analysis and super-resolution imaging. Bioinformatics. 2014;30:2389–2390. doi: 10.1093/bioinformatics/btu202. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.Ester M., Kriegel H.-P., et al. Xu X. AAAI Press; 1996. A Density-Based Algorithm for Discovering Clusters in Large Spatial Databases with Noise; pp. 226–231. [Google Scholar]
  • 27.Baddeley A., Rubak E., Turner R. CRC Press; Boca Raton London New York: 2016. Spatial Point Patterns: Methodology and Applications with R. [Google Scholar]
  • 28.Shaw T.R., Fazekas F.J., Veatch S.L. VeatchLab/localization-spread-function. 2022. https://github.com/VeatchLab/localization-spread-function [DOI] [PMC free article] [PubMed]
  • 29.Dai M., Jungmann R., Yin P. Optical imaging of individual biomolecules in densely packed clusters. Nat. Nanotechnol. 2016;11:798–807. doi: 10.1038/nnano.2016.95. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Ober R.J., Ram S., Ward E.S. Localization accuracy in single-molecule microscopy. Biophys. J. 2004;86:1185–1200. doi: 10.1016/S0006-3495(04)74193-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Niekamp S., Sung J., et al. Stuurman N. Nanometer-accuracy distance measurements between fluorophores at the single-molecule level. Proc. Natl. Acad. Sci. USA. 2019;116:4275–4284. doi: 10.1073/pnas.1815826116. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Stone M.B., Shelby S.A., et al. Veatch S.L. Protein sorting by lipid phase-like domains supports emergent signaling function in B lymphocyte plasma membranes. Elife. 2017;6:e19891. doi: 10.7554/eLife.19891. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.Andersen I.T., Hahn U., et al. Jensen E.B.V. Double Cox cluster processes — with applications to photoactivated localization microscopy. Spat. Stat. 2018;27:58–73. doi: 10.1016/j.spasta.2018.04.009. [DOI] [Google Scholar]
  • 34.Colomb W., Czerski J., et al. Sarkar S.K. Estimation of microscope drift using fluorescent nanodiamonds as fiducial markers: estimation of microscope drift. J. Microsc. 2017;266:298–306. doi: 10.1111/jmi.12539. [DOI] [PubMed] [Google Scholar]
  • 35.Ma H., Xu J., et al. Liu Y. A simple marker-assisted 3D nanometer drift correction method for superresolution microscopy. Biophys. J. 2017;112:2196–2208. doi: 10.1016/j.bpj.2017.04.025. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.Balinovic A., Albrecht D., Endesfelder U. Spectrally red-shifted fluorescent fiducial markers for optimal drift correction in localization microscopy. J. Phys. D Appl. Phys. 2019;52:204002. doi: 10.1088/1361-6463/ab0862. [DOI] [Google Scholar]
  • 37.Wang Y., Schnitzbauer J., et al. Huang B. Localization events-based sample drift correction for localization microscopy with redundant cross-correlation algorithm. Opt Express. 2014;22:15982–15991. doi: 10.1364/OE.22.015982. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 38.Elmokadem A., Yu J. Optimal drift correction for superresolution localization microscopy with Bayesian inference. Biophys. J. 2015;109:1772–1780. doi: 10.1016/j.bpj.2015.09.017. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Schlangen I., Franco J., et al. Rickman C. Marker-less stage drift correction in super-resolution microscopy using the single-cluster PHD filter. IEEE J. Sel. Top. Signal Process. 2016;10:193–202. doi: 10.1109/JSTSP.2015.2506402. [DOI] [Google Scholar]
  • 40.Wester M.J., Schodt D.J., et al. Lidke K.A. Robust, fiducial-free drift correction for super-resolution imaging. Sci. Rep. 2021;11:23672. doi: 10.1038/s41598-021-02850-7. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 41.Cnossen J., Cui T.J., et al. Smith C. Drift correction in localization microscopy using entropy minimization. Opt Express. 2021;29:27961–27974. doi: 10.1364/OE.426620. [DOI] [PubMed] [Google Scholar]
  • 42.Illian J., Pentinen A., et al. Stoyan D. John Wiley; Chichester, England; Hoboken, NJ: 2008. Statistical Analysis and Modelling of Spatial Point Patterns. [Google Scholar]
  • 43.Diggle P. CRC Press; Boca Raton: 2014. Statistical Analysis of Spatial and Spatio-Temporal Point Patterns. [Google Scholar]
  • 44.Shaw T., Møller J., Waagepetersen R.P. Globally intensity-reweighted estimators for K- and pair correlation functions. Aust. N. Z. J. Stat. 2021;63:93–118. doi: 10.1111/anzs.12318. [DOI] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Document S1. Figures S1–S12
mmc1.pdf (1.5MB, pdf)
Document S2. Article plus supporting material
mmc2.pdf (4.2MB, pdf)

Articles from Biophysical Journal are provided here courtesy of The Biophysical Society

RESOURCES