从纳米到宏观尺度提取生物结构与异质性
Extracting biological structure and heterogeneity from the nano to the macro scale
导读
Nature Methods 发表了一种基于卷积神经网络的荧光显微数据分析方法 SQUASSH,可自由地将结构模型拟合到荧光显微数据,并同时量化变异性以揭示相关性、动力学和系统性畸变。该方法可适配从纳米到毫米尺度、多种成像模态,用于呈现从纳米到宏观尺度的形状变化模式并表征动态过程的系统生物学。
正在把原文翻译成中文,长文需要一两分钟;先显示原文。
- Article
- Open access
- Published: 01 December 2026
Nature Methods (2026) Cite this article
Abstract
Fluorescence microscopy is an essential tool in biology. It has revealed great variability at multiple scales, in macromolecular complexes, cells and organisms. Understanding this variability will reveal the mechanisms by which genetically or biochemically identical systems adopt different biological states. Achieving this requires the ability to extract both the underlying biological structure and how it varies across the population. Currently, the field lacks general techniques to deal with arbitrary structures and different types of variability. Here we present SQUASSH, a convolutional neural network-based approach to freely fit structural models to fluorescence microscopy data that simultaneously quantifies variability to reveal correlations, dynamics and systematic distortions. SQUASSH is highly versatile: it accommodates diverse imaging modalities at length scales from nanometer to millimeter. This approach opens up applications such as revealing patterns in shape changes from the nano to the macro scale and characterizing systems biology of dynamical processes.
Main
In biology, observation enables discovery, and so throughout its history, biological discovery has been driven by technical innovations in imaging, particularly microscopy. Fluorescence microscopy allows specific molecules to be labeled and thus imaged, with recent developments having pushed the achievable resolution to 1 nm (ref. [1](https://www.nature.com/articles/s41592-026-03246-z#ref-CR1 "Reinhardt, S. C. M. et al. Ångström-resolution fluorescence microscopy. Nature 617, 711–716 https://doi.org/10.1038/s41586-023-05925-9
(2023).")). It is now possible to acquire large volumes of data, either observations of many instances of the same type of structure (subcellular structure, entire cell or organism) or of the same structure observed over time. When the structure is thought to be identical in each observation information from all the observations can be combined into a single, more accurate structure using particle averaging.
Particle averaging is more widely known through its use in cryo-electron microscopy (cryo-EM), where it has been used with great success to derive protein structures at very high resolution[2](#ref-CR2 "Benjin, X. & Ling, L. Developments, applications, and prospects of cryo-electron microscopy. Protein Sci. 29, 872–882 https://doi.org/10.1002/pro.3805
(2020)."),[3](#ref-CR3 "Scheres, S. H. W. RELION: implementation of a Bayesian approach to cryo-EM structure determination. J. Struct. Biol. 180, 519–530
https://doi.org/10.1016/j.jsb.2012.09.006
(2012)."),[4](https://www.nature.com/articles/s41592-026-03246-z#ref-CR4 "Punjani, A., Rubinstein, J. L., Fleet, D. J. & Brubaker, M. A. cryosparc: algorithms for rapid unsupervised cryo-EM structure determination. Nat. Methods 14, 290–296
https://doi.org/10.1038/nmeth.4169
(2017)."). Two\-dimensional (2D) images of structures are classified and aligned, and those determined to be of sufficient quality are averaged. This enables a high\-resolution reconstruction of the structure of the protein and can even be used to quantify the heterogeneity of that structure[5](https://www.nature.com/articles/s41592-026-03246-z#ref-CR5 "Zhong, E. D., Bepler, T., Berger, B. & Davis, J. H. Cryodrgn: reconstruction of heterogeneous cryo-EM structures using neural networks. Nat. Methods 18, 176–185
https://doi.org/10.1038/s41592-020-01049-4
(2021)."). However, for this method to work, the structures must be imaged at a wide variety of random angles: usually proteins or multiprotein complexes are extracted from cells and deposited on a surface (creating a random variety of angles to observe). To observe three\-dimensional (3D) structures in situ within a cell, tomography is used, where the sample is tilted across a range of known angles and those images are then used to reconstruct the sample in three dimensions. While this method is highly effective, it does have disadvantages: the range of angles observed is limited (the ‘missing cone’ problem), and many images must be taken to reconstruct one structure, meaning it is time\-consuming to acquire data.
To give an example of the advantages and limitations of these approaches, it is useful to consider how they have been applied to the nuclear pore complex (NPC), a popular target structure. The NPC is a large molecular complex inserted in the nuclear envelope in eukaryotic cells that allows exchange between the nucleus and cytoplasm[6](https://www.nature.com/articles/s41592-026-03246-z#ref-CR6 "Lin, D. H. & Hoelz, A. The structure of the nuclear pore complex (an update). Annu. Rev. Biochem. 88, 725–783 https://doi.org/10.1146/annurev-biochem-062917-011901
(2019)."). For adherent cells, NPCs on the adherent side of the cell will all be in very similar orientations, meaning 2D in situ observations cannot be used to reconstruct the 3D shape. In EM studies of extracted NPCs, the two\-ring, eightfold symmetric structure is visible in great detail[6](https://www.nature.com/articles/s41592-026-03246-z#ref-CR6 "Lin, D. H. & Hoelz, A. The structure of the nuclear pore complex (an update). Annu. Rev. Biochem. 88, 725–783
https://doi.org/10.1146/annurev-biochem-062917-011901
(2019)."). However, recent electron tomography studies have revealed that NPCs in intact cells have a different size and less consistent shape compared to extracted ones[7](https://www.nature.com/articles/s41592-026-03246-z#ref-CR7 "Schuller, A. P. et al. The cellular environment shapes the nuclear pore complex architecture. Nature 598, 667–671
https://doi.org/10.1038/s41586-021-03985-3
(2021)."). While these tomographic studies have produced beautiful images of individual nuclear pores, they are limited to imaging fewer than 300 nuclear pores per condition[8](https://www.nature.com/articles/s41592-026-03246-z#ref-CR8 "Zimmerli, C. E. et al. Nuclear pores dilate and constrict in cellulo. Science 374, eabd9776
https://doi.org/10.1126/science.abd9776
(2021)."),[9](https://www.nature.com/articles/s41592-026-03246-z#ref-CR9 "Taniguchi, R. et al. Nuclear pores safeguard the integrity of the nuclear envelope. Nat. Cell Biol. 27, 762–775
https://doi.org/10.1038/s41556-025-01648-3
(2025).").
Super-resolution fluorescence microscopy, particularly single-molecule light microscopy (SMLM), can obtain 3D structures of hundreds to a thousand NPCs per nucleus in a single measurement, without the need for a tilt series. Thus SMLM datasets offer the first chance to systematically characterize both the structure of the NPC in situ on the cell membrane and how the structure varies from one NPC to the next across thousands of structures.
While particle averaging has been applied to SMLM datasets, its use in fluorescence microscopy is less developed than in cryo-EM, with structures targeted being primarily NPCs[10](#ref-CR10 "Szymborska, A. et al. Nuclear pore scaffold structure analyzed by super-resolution microscopy and particle averaging. Science 341, 655–658 https://doi.org/10.1126/science.1240672
(2013)."),[11](#ref-CR11 "Heydarian, H. et al. Template-free 2D particle fusion in localization microscopy. Nat. Methods 15, 781–784
https://doi.org/10.1038/s41592-018-0136-6
(2018)."),[12](#ref-CR12 "Heydarian, H. et al. 3D particle averaging and detection of macromolecular symmetry in localization microscopy. Nat. Commun. 12, 2847
https://doi.org/10.1038/s41467-021-22006-5
(2021)."),[13](#ref-CR13 "Wang, W., Heydarian, H., Huijben, T. A. P. M., Stallinga, S. & Rieger, B. Joint registration of multiple point clouds for fast particle fusion in localization microscopy. Bioinformatics 38, 3281–3287
https://doi.org/10.1093/bioinformatics/btac320
(2022)."),[14](https://www.nature.com/articles/s41592-026-03246-z#ref-CR14 "Wang, W. et al. Particle fusion of super-resolution data reveals the unit structure of nup96 in nuclear pore complex. Sci. Rep. 13, 13327
https://doi.org/10.1038/s41598-023-39829-5
(2023)."), DNA origami[15](https://www.nature.com/articles/s41592-026-03246-z#ref-CR15 "Salas, D. et al. Angular reconstitution-based 3D reconstructions of nanomolecular structures from superresolution light-microscopy images. Proc. Natl Acad. Sci. USA 114, 9273–9278
https://doi.org/10.1073/pnas.1704908114
(2017)."), centrioles[16](https://www.nature.com/articles/s41592-026-03246-z#ref-CR16 "Mahecic, D. et al. Homogeneous multifocal excitation for high-throughput super-resolution imaging. Nat. Methods 17, 726–733
https://doi.org/10.1038/s41592-020-0859-z
(2020).") and ciliary distal appendages[17](https://www.nature.com/articles/s41592-026-03246-z#ref-CR17 "Shi, X., Garcia III, G., Wang, Y., Reiter, J. F. & Huang, B. Deformed alignment of super-resolution images for semi-flexible structures. PloS ONE 14, e0212735 (2019)."). Particle averaging of SMLM NPC data has been carried out in two dimensions[10](https://www.nature.com/articles/s41592-026-03246-z#ref-CR10 "Szymborska, A. et al. Nuclear pore scaffold structure analyzed by super-resolution microscopy and particle averaging. Science 341, 655–658
https://doi.org/10.1126/science.1240672
(2013)."),[18](https://www.nature.com/articles/s41592-026-03246-z#ref-CR18 "Danial, J. S. H. & Garcia-Saez, A. J. Quantitative analysis of super-resolved structures using ASAP. Nat. Methods 16, 711–714
https://doi.org/10.1038/s41592-019-0472-1
(2019)."), and three dimensions[11](#ref-CR11 "Heydarian, H. et al. Template-free 2D particle fusion in localization microscopy. Nat. Methods 15, 781–784
https://doi.org/10.1038/s41592-018-0136-6
(2018)."),[12](#ref-CR12 "Heydarian, H. et al. 3D particle averaging and detection of macromolecular symmetry in localization microscopy. Nat. Commun. 12, 2847
https://doi.org/10.1038/s41467-021-22006-5
(2021)."),[13](#ref-CR13 "Wang, W., Heydarian, H., Huijben, T. A. P. M., Stallinga, S. & Rieger, B. Joint registration of multiple point clouds for fast particle fusion in localization microscopy. Bioinformatics 38, 3281–3287
https://doi.org/10.1093/bioinformatics/btac320
(2022)."),[14](https://www.nature.com/articles/s41592-026-03246-z#ref-CR14 "Wang, W. et al. Particle fusion of super-resolution data reveals the unit structure of nup96 in nuclear pore complex. Sci. Rep. 13, 13327
https://doi.org/10.1038/s41598-023-39829-5
(2023)."), enabling the visualization of the nanoscale structure of Nup96, which has 32 labeling sites arranged into eight dimers on two rings. While these results agree well with particle\-averaging cryo\-EM results, the more recent EM tomography results suggest that the underlying assumption of the analysis, that the structure is identical in every instance, is not correct.
The large volume of 3D data provided by SMLM microscopy is a key benefit of the technique but also creates a serious challenge. Aligning data in 3D is generally very slow and unreliable (Extended Data Fig. 1). For particle-averaging approaches in SMLM, the type of approach usually used is algorithmically quadratic in the number of images and linear in the number of localizations, limiting the method to small, simple structures (a few tens of fluorophores and on a scale of 100 nm)[11](#ref-CR11 "Heydarian, H. et al. Template-free 2D particle fusion in localization microscopy. Nat. Methods 15, 781–784 https://doi.org/10.1038/s41592-018-0136-6
(2018)."),[12](#ref-CR12 "Heydarian, H. et al. 3D particle averaging and detection of macromolecular symmetry in localization microscopy. Nat. Commun. 12, 2847
https://doi.org/10.1038/s41467-021-22006-5
(2021)."),[13](https://www.nature.com/articles/s41592-026-03246-z#ref-CR13 "Wang, W., Heydarian, H., Huijben, T. A. P. M., Stallinga, S. & Rieger, B. Joint registration of multiple point clouds for fast particle fusion in localization microscopy. Bioinformatics 38, 3281–3287
https://doi.org/10.1093/bioinformatics/btac320
(2022)."),[16](https://www.nature.com/articles/s41592-026-03246-z#ref-CR16 "Mahecic, D. et al. Homogeneous multifocal excitation for high-throughput super-resolution imaging. Nat. Methods 17, 726–733
https://doi.org/10.1038/s41592-020-0859-z
(2020).") even when steps are taken to make it more efficient[19](https://www.nature.com/articles/s41592-026-03246-z#ref-CR19 "Wu, Y.-L. et al. Maximum-likelihood model fitting for quantitative analysis of SMLM data. Nat. Methods 20, 139–148
https://doi.org/10.1038/s41592-022-01676-z
(2023)."). This issue can be avoided to some extent by constraining the fit to parameterized models (for example, line segments)[17](https://www.nature.com/articles/s41592-026-03246-z#ref-CR17 "Shi, X., Garcia III, G., Wang, Y., Reiter, J. F. & Huang, B. Deformed alignment of super-resolution images for semi-flexible structures. PloS ONE 14, e0212735 (2019)."),[19](#ref-CR19 "Wu, Y.-L. et al. Maximum-likelihood model fitting for quantitative analysis of SMLM data. Nat. Methods 20, 139–148
https://doi.org/10.1038/s41592-022-01676-z
(2023)."),[20](#ref-CR20 "Sieben, C., Banterle, N. iccolò, Douglass, K. M., Gönczy, P. & Manley, S. Multicolor single-particle reconstruction of protein complexes. Nat. Methods 15, 777–780
https://doi.org/10.1038/s41592-018-0140-x
(2018)."),[21](https://www.nature.com/articles/s41592-026-03246-z#ref-CR21 "Gray, R. D. M. et al. Nanoscale polarization of the entry fusion complex of vaccinia virus drives efficient fusion. Nat. Microbiol. 4, 1636–1644
https://doi.org/10.1038/s41564-019-0488-4
(2019).") but this limits the type of structures being fitted and is still very slow, for example, taking 20 h to fit a 5\.2\-μm section of microtubule as a tube[19](https://www.nature.com/articles/s41592-026-03246-z#ref-CR19 "Wu, Y.-L. et al. Maximum-likelihood model fitting for quantitative analysis of SMLM data. Nat. Methods 20, 139–148
https://doi.org/10.1038/s41592-022-01676-z
(2023)."). Alternatively, self\-similar structures can also be detected using patchwise cross\-correlation[22](https://www.nature.com/articles/s41592-026-03246-z#ref-CR22 "Mendes, A. et al. Structural repetition detector for multi-scale quantitative mapping of molecular complexes through microscopy. Nat. Commun. 16, 5767
https://doi.org/10.1038/s41467-025-60709-1
(2025)."), although this means the analysis does not gain any resolution by combining information from the different patches and so cannot offer the advantages of improved reconstuction quality achieved by particle fusion. All these approaches to 3D rotation fitting are prone to becoming stuck in local minima, meaning that optimization may often not be possible. This problem becomes more severe with complex structures.
As an alternative to traditional alignment methods, a deep learning approach can be taken to learn the underlying manifold and benefit from repeated instances of similar angles23, with recent smooth descriptors of 3D rotation24 helping to improve optimization performance. However, these approaches have so far only been demonstrated on 2D images[25](https://www.nature.com/articles/s41592-026-03246-z#ref-CR25 "Blundell, B. et al. 3D structure from 2D microscopy images using deep learning. Front. Bioinform. 1 https://doi.org/10.3389/fbinf.2021.74034
(2021)."). The use of 2D images means that this method can only be used for datasets where the structures are at random orientations (analogously to cryo\-EM), which does not apply to the majority of images of structures in cells, particularly cells imaged at super\-resolution.
The second major challenge is that structures imaged with fluorescence microscopy are generally larger than those observed with cryo-EM, spanning tens of nanometers up to hundreds of microns, and in most cases, imaged at room temperature. At these length scales and under these conditions, structures do not appear the same every time: the environment around them, or the ongoing processes of the cell, can deform them. Therefore, to extract useful information about the detailed structure of a cell component that is imaged multiple times, it is vital to take into account the heterogeneity of the structure. For particle-averaging approaches, particles can be separated into different classes, which are thought to correspond to different structures[26](https://www.nature.com/articles/s41592-026-03246-z#ref-CR26 "Huijben, T. eunA. P. M. et al. Detecting structural heterogeneity in single-molecule localization microscopy data. Nat. Commun. 12, 3791 https://doi.org/10.1038/s41467-021-24106-8
(2021)."), and limited continuous heterogeneity can be characterized in the NPC in two dimensions, when subject to small deformations[27](https://www.nature.com/articles/s41592-026-03246-z#ref-CR27 "Haghparast, S., Stallinga, S. & Rieger, B. Detecting continuous structural heterogeneity in single-molecule localization microscopy data. Sci. Rep. 13, 19800
https://doi.org/10.1038/s41598-023-46488-z
(2023)."). However, neither of these approaches can deal with the large, continuous heterogeneities present in most biological systems.
In some data, heterogeneity can be probed with clustering-based measurements[28](#ref-CR28 "Khater, I. M., Robert Nabi, I. & Hamarneh, G. A review of super-resolution single-molecule localization microscopy cluster analysis and quantification methods. Patterns 1 https://doi.org/10.1016/j.patter.2020.10003
(2020)."),[29](#ref-CR29 "Hugelier, S. et al. Eclipse: a versatile classification technique for structural and morphological analysis of 2D and 3D single-molecule localization microscopy data. Nat. Methods 21, 1909–1915
https://doi.org/10.1038/s41592-024-02414-3
(2024)."),[30](#ref-CR30 "Bender, S. W. B., Dreisler, M. W., Zhang, M., Kæstel-Hansen, J. & Hatzakis, N. S. Semore: segmentation and morphological fingerprinting by machine learning automates super-resolution data analysis. Nat. Commun. 15, 1763
https://doi.org/10.1038/s41467-024-46106-0
(2024)."),[31](https://www.nature.com/articles/s41592-026-03246-z#ref-CR31 "Vasan, R. et al. Interpretable representation learning for 3D multi-piece intracellular structures using point clouds. Nat. Methods 22, 1531–1544
https://doi.org/10.1038/s41592-025-02729-9
(2025)."), which quantify the size and distribution of different clusters. They are extremely useful for quantifying the distribution of fluorophores in cell compartments such as nuclei, the distribution of receptors across membranes or the distribution of subcellular compartments across the cell. The disadvantage of these approaches is that they return very limited structural detail, for example, only returning the estimated 2D diameter for NPC data[30](https://www.nature.com/articles/s41592-026-03246-z#ref-CR30 "Bender, S. W. B., Dreisler, M. W., Zhang, M., Kæstel-Hansen, J. & Hatzakis, N. S. Semore: segmentation and morphological fingerprinting by machine learning automates super-resolution data analysis. Nat. Commun. 15, 1763
https://doi.org/10.1038/s41467-024-46106-0
(2024)."). The field would therefore benefit from an approach that can perform a model\-free fusion of data to enhance resolution and quantify continuous structural heterogeneity in a human\-interpretable way.
Here we describe Simultaneous QUAntification of Structure and Structural Heterogeneity (SQUASSH), an approach to simultaneously fit both structure and heterogeneity using 3D fluorescence microscopy datasets where the same biological structure is imaged multiple times. Our approach makes the speed and accuracy improvements of the latest computer vision deep learning approaches23,24,[25](https://www.nature.com/articles/s41592-026-03246-z#ref-CR25 "Blundell, B. et al. 3D structure from 2D microscopy images using deep learning. Front. Bioinform. 1 https://doi.org/10.3389/fbinf.2021.74034
(2021).") available for 3D to 3D fluorescence microscopy data fitting for the first time (Extended Data Fig. [1](https://www.nature.com/articles/s41592-026-03246-z#Fig6)). SQUASSH also allows the user to specify a heterogeneity description (Extended Data Fig. [2](https://www.nature.com/articles/s41592-026-03246-z#Fig7)), including continuous deformations and repeating structures. The heterogeneity model is optimized as the underlying structure is fitted. Quantifying the structure and heterogeneity of biological structures at the same time offers the opportunity to dissect biological structure and variation from the nanoscale up.
Results
In fluorescence microscopy, fluorophores are rendered into an image with an approximately Gaussian point spread function (for example, confocal), or recorded as a list of fluorophore positions (for example, single-molecule localization microscopy (SMLM)). We developed a fully differentiable rendering pipeline that simulates the imaging process and allows comparison of the expected output of hypothesized fluorophore positions to the data (Fig. 1). For SMLM data, this pipeline is used to render the localized points that constitute the data, while for other data types, the images are used directly. In both cases the rendering pipeline is used to create images from the structural model, which can be compared to the experimental data. The structural model starts with a randomly generated cloud of points in 3D space and then optimizes the positions (Supplementary Video 1).
Fig. 1: A neural network with heterogeneity parameterization enables model-free fitting of fluorescence microscopy data.

The SQUASSH approach is demonstrated on simulated SMLM data of the Stanford Bunny45, with random stretches along one axis added for heterogeneity. Data (pink highlight area) consist of either 3D localization microscopy data or fluorescence microscopy image stacks of different instances of a single structure type. For each instance of the structure, multiple slice images of the data are rendered (blue highlight area). The rendering blur is decreased over the course of the optimization, as seen in the three examples in the lower half of the highlight area. These views pass through a network, yielding a rotation and translation and parameters corresponding to the heterogeneity. Using these, the current structural model, consisting of fluorophores at a number of positions (green box), is rendered with the predicted stretch applied in each case. The error between the rendering of the current structural model using computed parameters and the data is used to update the structural model, the heterogeneity model and the network weights. Over the course of optimization (see time arrow and epoch numbers), the blur is decreased, allowing the structure to first be optimized at longer length scales before attempting to resolve the detail of the structure. This leads to a gradual improvement in the output structural model and heterogeneity model (see green highlight area, where all points are displayed on the left and an isosurface along with the deduced axis of stretch on the right) and a good agreement with the ground truth structure.
SQUASSH analysis uses a convolutional neural network (CNN) to provide the rotation and translation between the current 3D structural model and each particular instance of 3D data (the performance of the rotation fitting over the course of the optimization is demonstrated in Supplementary Video 2). This means that the system can recognize repeated observations at similar angles, and thus, the analysis is not quadratic with the number of images as for pairwise alignment.
Fluorescence images are sparse, with small intensity gradients across much of the image. This makes the network particularly prone to getting stuck during optimization. We avoid this by initially rendering with a large Gaussian (or, for a non-SMLM image, blurring the input image with a Gaussian). This means that at the beginning of the optimization process, the large scale structure of the sample is optimized. Over the course of the optimization, the blur is lowered, from coarse to fine so that more detail is visible in the rendered structures, and therefore, more details can be found in the structural model[32](https://www.nature.com/articles/s41592-026-03246-z#ref-CR32 "Lindeberg, T. Scale-space for discrete signals. IEEE Trans. Pattern Anal. Mach. Intell. 12, 234–254 https://doi.org/10.1109/34.49051
(1990).") (Fig. [1](https://www.nature.com/articles/s41592-026-03246-z#Fig1), blue highlight area).
The output distribution of points from SQUASSH represents fluorophore probability density in the same way that intensity in SMLM particle-averaging results represents fluorophore probability density. The 3D renderings are isosurfaces, meaning that they are surfaces of uniform fluorophore probability density.
From the nanoscale up, almost all biological structures vary from one instance/observation to another. Here, we allow the user to build in a parameterized description of the structural heterogeneity of the dataset (Table 1, Supplementary Table 1 and Extended Data Fig. 2). For continuous variation, this could be size, squash/stretch or other types of deformation. Where the biological system being imaged may have many repeating units within a field of view, such as with the repeating units of the microtubule or spectrin rings in axons, the number of repeats in a field of view can be specified as a parameter to be fitted. Allowing both the optimization of discrete and continuous types of variability provides an important new capability for analyzing biological data.
The underlying base structure of the sample and a quantification of how the structure varies from image to image are found as the CNN and structural model are optimized (Fig. 1, green highlight area). It should be noted that we are not training the network to use it again: it is the process of training the network which yields the base structure, rotations and heterogeneity, and much like the adversary in generative adversarial networks33, the network is discarded after training.
The advantage of our deep learning-based approach to finding the rotation and position of the model in each image can be seen in the performance of our approach compared to particle-averaging methods: our approach is faster than fitting a simple model to the data and offers a large speed improvement over particle averaging incorporating heterogeneity (Extended Data Fig. 1) while offering at least equal accuracy, being applicable to a much wider range of structures than other approaches and offering far more interpretable output.
Correlated structural changes across a factor of 1,000 in lengthscale revealed in the nuclear pore
The NPC consists of two rings (separated by 57 nm), with each ring (of diameter 108 nm) decorated with eight pairs of Nup96 proteins[34](https://www.nature.com/articles/s41592-026-03246-z#ref-CR34 "von Appen, A. et al. In situ structural analysis of the human nuclear pore complex. Nature 526, 140–143 https://doi.org/10.1038/nature15381
(2015)."),[35](https://www.nature.com/articles/s41592-026-03246-z#ref-CR35 "Jumper, J. et al. Highly accurate protein structure prediction with alphafold. Nature 596, 583–589
https://doi.org/10.1038/s41586-021-03819-2
(2021)."). Hundreds of NPCs can be found in one SMLM image of a nucleus, making it a popular exemplar structure for SMLM particle averaging[10](https://www.nature.com/articles/s41592-026-03246-z#ref-CR10 "Szymborska, A. et al. Nuclear pore scaffold structure analyzed by super-resolution microscopy and particle averaging. Science 341, 655–658
https://doi.org/10.1126/science.1240672
(2013)."),[36](https://www.nature.com/articles/s41592-026-03246-z#ref-CR36 "Thevathasan, J. V. et al. Nuclear pores as versatile reference standards for quantitative superresolution microscopy. Nat. Methods 16, 1045–1053
https://doi.org/10.1038/s41592-019-0574-9
(2019)."). We analyzed two datasets, one imaged using resolution\-enhanced sequential imaging (RESI), with measurements indicating a lateral precision of 1 nm, with the axial precision not specified[1](https://www.nature.com/articles/s41592-026-03246-z#ref-CR1 "Reinhardt, S. C. M. et al. Ångström-resolution fluorescence microscopy. Nature 617, 711–716
https://doi.org/10.1038/s41586-023-05925-9
(2023)."). The second was imaged using 4Pi\-stochastic optical reconstruction microscopy (STORM)[37](https://www.nature.com/articles/s41592-026-03246-z#ref-CR37 "Bates, M. et al. Optimal precision and accuracy in 4Pi-STORM using dynamic spline PSF models. Nat. Methods 19, 603–612
https://doi.org/10.1038/s41592-022-01465-8
(2022)."), an interferometric technique expected to have an out\-of\-plane resolution roughly double the in\-plane resolution (able to resolve features of half the size).
We note that when fitting image patches from SMLM data, we are rendering with a Gaussian rather than binning fluorophores into voxels. This means that the subpixel location of a fluorophore can be inferred from the relative intensity of different voxels, and thus, the accuracy of the model is not limited to the pixel size of the rendered data. The variation in the performance of SQUASSH with the size of the voxels is displayed in Extended Data Fig. 3, where we have run analyses of a NPC dataset across multiple different pixel sizes for the input.
In our first analysis, heterogeneity was added to the model in the form of an overall scale and a single axis along which the structure can squash or stretch, with the angle of the axis relative to the structural model optimized during training, and the network makes a prediction of the degree of stretch or squash in each instance. For each dataset, SQUASSH derived a structural model for Nup96 from randomly initialized positions (Supplementary Video 3), along with optimizing the heterogeneity. This stretch along an axis would allow either a squashing of the ring, as previously hypothesized[27](https://www.nature.com/articles/s41592-026-03246-z#ref-CR27 "Haghparast, S., Stallinga, S. & Rieger, B. Detecting continuous structural heterogeneity in single-molecule localization microscopy data. Sci. Rep. 13, 19800 https://doi.org/10.1038/s41598-023-46488-z
(2023).") to be the dominant mode of deformation, or movement of the two rings relative to each other (or some combination of both).
The resulting structure agrees closely with EM and previous high-resolution particle-averaging results. Each ring displays eight motifs, and for RESI, each motif shows a clear dumbbell shape indicating the two Nup96 sites, as expected[1](https://www.nature.com/articles/s41592-026-03246-z#ref-CR1 "Reinhardt, S. C. M. et al. Ångström-resolution fluorescence microscopy. Nature 617, 711–716 https://doi.org/10.1038/s41586-023-05925-9
(2023)."). For both datasets the stretch axis was found to be along the barrel of the nuclear pore. The derived structure and distribution of stretch across the population is shown for the RESI dataset in Fig. [2a,b](https://www.nature.com/articles/s41592-026-03246-z#Fig2), while the structure for the 4Pi\-STORM dataset is shown in Fig. [2c,d](https://www.nature.com/articles/s41592-026-03246-z#Fig2) (note that Fig. [2](https://www.nature.com/articles/s41592-026-03246-z#Fig2) shows the result of a single run; histograms of the stretch over multiple runs showing the variability are shown in Extended Data Fig. [4](https://www.nature.com/articles/s41592-026-03246-z#Fig9)). Results obtained using different data (raw localization data instead of RESI, 32\-point model, a different choice of projection and no automatic removal of low\-quality data) are shown in Supplementary Fig. [1](https://www.nature.com/articles/s41592-026-03246-z#MOESM1). A good reconstruction of the basic nuclear pore structure can be achieved even when using only a few hundred randomly selected patches (Supplementary Fig. [2](https://www.nature.com/articles/s41592-026-03246-z#MOESM1)).
Fig. 2: Modeling the structure of nuclear pores with heterogeneity included reveals differences in localization performance and systematic bias between different nanoscale imaging techniques.

a, Nup96 structure derived from RESI dataset allowing a single axis of stretch which optimized to the axis of the barrel of the NPC. The structure displayed is an isosurface, and the projections are along the stretch axis showing NR (top) and CR (bottom), with a 50-nm scale bar. b, The spatial heterogeneity of the stretch of the NPC, with side projections of three sampled nuclear pores. Raw data are displayed (top) as well as the fitted structural model (bottom) for each pore. c, Nup96 structure derived from 4Pi-STORM dataset. d, The spatial heterogeneity of a single cell from this dataset. e, The distribution of the ring spacing for the RESI and 4Pi-STORM datasets, demonstrating the larger range of ring spacings observed in the RESI data. f, The spacing of the NPC plotted against the z position of the complex. The 4Pi-STORM shows a greater range of z positions but no relationship between the z position and the spacing (Pearson’s correlation coefficient ρ = 0.02, P = 0.61), while the RESI data show a clear correlation between z position and ring spacing (ρ = 0.42, P = 10−55).
We note that only the eightfold NPC structure is recovered: sevenfold symmetric and ninefold symmetric pores account for a small percentage of observations and will therefore not be recovered as the average structure. In general, if two distinct structures are present, SQUASSH will yield either the most common structure, if it forms a large majority, or an average of the structures, if the split is fairly even (Extended Data Fig. 5). If there are known to be two discrete structures present, these could be preclassified, and SQUASSH analysis could be carried out on both structures.
As is clear from Fig. 2e, the RESI dataset shows a considerably larger variation in ring spacing than the 4Pi-STORM dataset. In the real space mapping of the nuclear pore ring spacing across the nucleus (Fig. 2b for RESI and Fig. 2d for a sample cell for 4Pi-STORM), the distribution for 4Pi-STORM appears random but that for RESI is strongly ordered along the shape of the cell. A check of the correlation between the ring spacing factor and the z position (Fig. 2f) reveals a strong correlation for the RESI data but none for the 4Pi-STORM (for the cell displayed in Fig. 2d). The most plausible explanation for the correlation between z and ring spacing is a systematic bias arising from the incomplete modeling of the variation of astigmatism with z (ref. [38](https://www.nature.com/articles/s41592-026-03246-z#ref-CR38 "Petrov, P. N. & Moerner, W. E. Addressing systematic errors in axial distance measurements in single-emitter localization microscopy. Opt. Express 28, 18616–18632 https://doi.org/10.1364/OE.391496
(2020).")). A similar variation of ring thickness with astigmatism was observed in a previous NPC dataset[36](https://www.nature.com/articles/s41592-026-03246-z#ref-CR36 "Thevathasan, J. V. et al. Nuclear pores as versatile reference standards for quantitative superresolution microscopy. Nat. Methods 16, 1045–1053
https://doi.org/10.1038/s41592-019-0574-9
(2019).").
To investigate the more subtle structural changes in the NPC, we added two further axes of stretch/squash at right angles to the first one found, and the orientation and degree of stretch along those axes were optimized. We then allowed all individual points to further optimize their positions by a small amount to allow modeling of local deformations (Fig. 3a,c). To determine whether the distortion away from circularity displayed any correlation across the nucleus, we plotted the orientation of the major axis in real space. In both the RESI and 4Pi-STORM datasets, the major axes of the nuclear pores are preferentially aligned in one direction, and that direction appears to be correlated with the major axis of the nucleus itself (Fig. 3b,d). It therefore appears that the global structure of the nucleus is linked to the distortions of the rings of the nuclear pore.
Fig. 3: SQUASSH reveals NPCs within the nucleus exhibit deformations correlated both with the global nuclear structure and the distortion of the NPC ring.

a, SQUASSH analysis of NPCs used 700 points and included a heterogeneity model with three axes of deformation and individual point movement. Individual example fits are shown in 3D (left) and in projection (middle) (NR ring top and CR ring below), alongside corresponding data (right) (NR ring top and CR ring below). Scale bar, 50 nm. b, The orientation of the major axis of the deformed NPC model can be mapped back into real space for RESI data (top) and 4Pi-STORM data (bottom), in both cases showing apparent correlation with the orientation of the nucleus. c, The first three PCA components for the RESI model exhibit the deformation of the ring, with black being the average structure and red being the PCA component at 5σ. d, Analysis of a 32-point analysis of the RESI data shows that the standard deviation of the doublet spacing is correlated with the aspect ratio of the rings (Pearson’s correlation coefficient NR ring ρ = 0.16, P = 10−7 CR ring ρ = 0.29, P = 10−21).
The principal component analysis (PCA) breakdown of the 700-point RESI model (with local point movement allowed) indicates that the dimers in the ring are being altered by the deformation of the ring (Fig. 3e and Supplementary Video 4). This is particularly apparent in the third PCA component of the upper ring: as the ring becomes more squashed, the dimers along the long axis of the NPC increase their separation, while those furthest from the center of the pore get closer together. To quantitatively probe how this unexpected deformation might be affecting the local structure of the ring, we fitted a 32-point model to the data, with three axes of deformation and individual point movement. By measuring the nearest neighbor distances, we could demonstrate that the standard deviation of the nearest neighbor spacings is negatively correlated with the aspect ratio of the nuclear pore (Fig. 3f): that is, in more squashed nuclear pores, the points in the doublets are at more variable distances.
These results demonstrate that through its ability to probe structural variability, SQUASSH can identify correlations in how biological structures deform, with our method being able to detect both experimental biases and previously unsuspected biological structural changes. For the NPC, our analysis reveals correlated structural deformations from the scale of the whole nucleus (10 microns) to individual elements of the NPC (10 nm). Our observations of correlated deformations across three orders of magnitude of lengthscale are interesting in the light of the known mechanobiological effects of force on the nucleus.
SQUASSH analysis enables fluorescence imaging of the 8-nm alpha-tubulin repeat in microtubules
Microtubules are cytoskeleton filaments made of alpha/beta tubulin heterodimers. Individual dimers are approximately 8 nm in size and arranged head-to-tail to form protofilaments. Typically 13 protofilaments form a characteristic hollow structure approximately 25 nm in diameter (Fig. 4), although in vitro assembled microtubules usually have 14 protofilaments with some variations around this number39.
Fig. 4: SQUASSH analysis of PAINT data reveals 8-nm alpha-tubulin repeat.

In vitro microtubules were imaged using DNA-PAINT. Left: expected structure. Microtubules were segmented from the background and were then divided into equal sized patches, with padding to avoid information being close to the edge of the image. Middle left: example data, with xy, yz and xz projections shown. SQUASSH analysis yields the structure shown from different viewing angles (middle right and right). The repeat distance observed is 8.1 nm.
Using a custom built, low-drift microscope, we acquired DNA-PAINT data of in vitro assembled microtubules in which DNA imaging strands were covalently attached to the C-terminal tails of alpha tubulins and inferred z positions of single-molecule localizations from the number of photons emitted using the SIMPLER algorithm[40](https://www.nature.com/articles/s41592-026-03246-z#ref-CR40 "Szalai, A. M. et al. Three-dimensional total-internal reflection fluorescence nanoscopy with nanometric axial resolution by photometric localization of single molecules. Nat. Commun. 12, 517 https://doi.org/10.1038/s41467-020-20863-0
(2021).").
Reconstructed 3D images of individual microtubule 3D patches were then broken down into segments and analyzed using SQUASSH. The system was parameterized as a repeating structure, as EM results seem to indicate that spacings along the microtubule are highly regular[41](https://www.nature.com/articles/s41592-026-03246-z#ref-CR41 "Li, H., DeRosier, D. J., Nicholson, W. V., Nogales, E. & Downing, K. H. Microtubule structure at 8 Å resolution. Structure 10, 1317–1328 https://doi.org/10.1016/S0969-2126(02)00827-4
(2002)."). To take into account the localization uncertainty, the repeated elements are allowed to individually move slightly (1 nm) away from regularly spaced positions. An axis of stretch perpendicular to the repetition axis allowed any issues with variation in the *z* positions found by SIMPLER, similar to those observed for RESI, to be folded into the heterogeneity parameterization. The results for a repeat segment bounded to be between 7 and 9 nm are shown in Fig. [4](https://www.nature.com/articles/s41592-026-03246-z#Fig4). The microtubule structure is found as partial rings (with some information missing at the bottom of the microtubule), with a repeat distance of 8\.1 nm. The 3D information is particularly valuable owing to the high quality of the information of the sides of the microtubule, allowing the left\-handed chirality of the microtubule to be observed. The average angle of the segments in the reconstruction was 4\.6∘ ± 2\.0 at the outer isosurface (diameter 40 nm), compared to a predicted value of 5\.5∘ at this diameter.
It is not necessary to know the exact repeat distance to perform a fit of a repeating structure on data of this type. Longer repeat distances can be used (Extended Data Fig. 6), but in those cases, the results for one SQUASSH repeat will contain more than one microtubule unit (for example, 14–16 nm will produce two rings). The number of repeats allowed by the model can also be allowed to vary, although extremely permissive models may yield less accurate results (for example, fitting with 2–20 repeats and 4–24 nm yields a repeat distance of 9 nm). Therefore, when fitting repeating structures, if the repetition distance is not known, it is advisable to initially allow a wide range and then perform a more constrained fit once the approximate value is known.
We note there is also a particular challenge for closely spaced repeat units such as the microtubule. Decreased localization precision will lead to there being a range of spacings between repeat units rather than a single one. When performing fitting of the structure, it is more favorable to fit the most likely structure (the modal structure) rather than the long distance average. This can be seen in simulation, where increased scatter decreases the observed repeat distance if local movement is not allowed (Extended Data Fig. 7). In our fitting, we mitigate against this effect by allowing the repeating units a small degree of independent movement in each instance. The challenge of extracting the repeat distance from small segments of noisy data can also be seen in the Fourier domain: long segments of the highest quality hand picked data show a repeat at 8.4 nm (the precise value expected), but when a smaller patch size is used and all data are included, the repeat is not visible (Extended Data Fig. 8).
Extracting fluorophore distribution enables quantification of structure and variation from the nano to the micro scale
To illustrate that SQUASSH heterogeneity models can capture the types of variability that inform biology, we will consider three examples, covering structures with length scales from a few hundred nanometers to just under a millimeter. These structures are imaged with different fluorescence microscopy techniques including SMLM, lattice light sheet microscopy and confocal microscopy, demonstrating the potential of SQUASSH analysis to apply to all fluorescence imaging modalities, and over the wide lengthscale of fluorescence microscopy.
First, we will examine how SQUASSH can be used to uncover correlations in the structural variation of spectrin rings within the axons of neurons, which are known to be organized with a periodicity of around 190 nm (refs. [42](https://www.nature.com/articles/s41592-026-03246-z#ref-CR42 "Xu, K., Zhong, G. & Zhuang, X. Actin, spectrin, and associated proteins form a periodic cytoskeletal structure in axons. Science 339, 452–456 https://doi.org/10.1126/science.1232251
(2013)."),[43](https://www.nature.com/articles/s41592-026-03246-z#ref-CR43 "Leterrier, C. Putting the axonal periodic scaffold in order. Curr. Opin. Neurobiol. 69, 33–40
https://doi.org/10.1016/j.conb.2020.12.015
(2021).")). We analyzed SMLM data of spectrin rings, using SQUASSH to consider each patch as arising from a number of repeats of an unknown structure. Heterogeneity was introduced with a stretch along the structural model axis and a circular harmonic distortion (intuitively, a squash which may also change the shape) perpendicular to the model axis. Both distortions were constant across a single image patch, which contained around five to seven spectrin rings. We were able to retrieve a base structure (Fig. [5](https://www.nature.com/articles/s41592-026-03246-z#Fig5)), a ring which is subject to various types of distortion. The spacing between the rings has a value of 194 ± 10 nm, consistent with previous measurements, and the variation in spacing across the sample can be mapped (Extended Data Fig. [9](https://www.nature.com/articles/s41592-026-03246-z#Fig9)). The distortion of the rings can be characterized using PCA, with the first three PCA components shown in Fig. [5](https://www.nature.com/articles/s41592-026-03246-z#Fig5) roughly corresponding to scale, keystoning and stretch/squash (Supplementary Video [5](https://www.nature.com/articles/s41592-026-03246-z#MOESM8)). By taking the central second moments of the data, parameters corresponding to the width and height of the spectrin ring could be obtained. By comparing the width and aspect ratio of the observed rings across all patches (Fig. [5](https://www.nature.com/articles/s41592-026-03246-z#Fig5)), we revealed a strong correlation between increased width and increased aspect ratio. As might be expected intuitively, for axons plated on a coverslip, as the axons get bigger, they become more squashed.
Fig. 5: SQUASSH analysis can reveal structure and enable analysis from the nanoscale up to the mm scale.

Each row is a different scale (with the scale-bar length on the left) with columns showing from left to right the underlying data, a rendering of the 3D structure found and information from the analysis of the parameterization. The 1-μm scale: spectrin rings in axons can be analyzed to reveal the repeating structure. Analyzing the parameterized ring shapes with PCA shows the main types of distortion, and further analysis shows a statistically significant correlation between the shape and the size of spectrin rings. The 10-μm scale: dividing fixed cells in telophase imaged using lattice light sheet microscopy can be analyzed to reproduce the two chromatin plates. Ordering the data by the spacing between the plates and aligning the data to the model allows us to create a virtual time series of a dividing cell with chromatin shown in magenta and tubulin in green. We can also find the frequency of different separation distances. The 100-μm scale: analysis of plant trichomes yields a structural model despite drastic variation in shape. Further analysis allows the identification of primary modes of variation using PCA. The bending of the trichome branches and neck is highlighted by colored arrows, and 3D renderings are provided of PCA components 1 and 3.
Second, we investigated how quantification of structural heterogeneity can allow the reconstruction of a virtual time-varying event from fixed cell data. In a dataset of fixed cell lattice light sheet images of cells in telophase[44](https://www.nature.com/articles/s41592-026-03246-z#ref-CR44 "Shi, Y. et al. Smart lattice light-sheet microscopy for imaging rare and complex cellular events. Nat. Methods 21, 301–310 https://doi.org/10.1038/s41592-023-02126-0
(2024)."), the two plates of chromatin could be seen to be separated at variable distances. To analyze the data, it was downsampled, as details of the chromatin structure are not easily parameterizable, and modeled as two copies, separated by a variable distance and angle. After fitting, it is clear that the reconstruction reproduces the general shape of the chromatin well, with the axis angle and variable separation allowing fitting at different stages of telophase. The separation of the two copies can be used to create a virtual dividing cell from the fixed cell data (Supplementary Video [6](https://www.nature.com/articles/s41592-026-03246-z#MOESM9)).
Third, we analyzed data of trichomes. Trichomes in Arabidopsis thaliana are single-celled epidermal protrusions on the adaxial (upper) side of the leaf, with a neck and three to four tapering branches. The whole structure is around 300 μm in size. The leaves were stained and imaged using fluorescence confocal microscopy. For SQUASSH analysis, this was modeled as a structure with a distortion applied. The distortion was created using one vector for each corner of the cube, with the distortion at each point extrapolated between them (Supplementary Fig. 3). This parameterization allows distortions such as variability in angles between branches and in relative branch lengths. Fig. 5 shows the structure of the trichomes, which is retrieved despite the highly unconstrained parameterization of both the structural model and the distortion. The primary components of variation are dominated by size, relative length of the branches and angle between the branches. In some higher-order moments, some more subtle effects can be seen, such as a bend in a branch, probably arising from a number of trichomes in which a branch was kinked as a result of sample preparation. Thus, our trichome results demonstrate that our approach can work for very generalized heterogeneity parameterization and for very large structures.
Discussion
By fitting 3D models to 3D data and simultaneously optimizing both the structure and how it varies, we are able to recover both 3D biological structures and a human-interpretable quantification of their variation. We can analyze structures from the nanoscale to the millimeter scale, and our approach allows a completely free fit of the structure by recreating the underlying fluorophore distribution, meaning that it is not limited to particular types of structure. It is also applicable to any fluorescence imaging method, and we have demonstrated it on SMLM, lattice light sheet and confocal data. We have demonstrated that SQUASSH can reproduce known structures, such as the alpha-tubulin repeat in microtubules and the nuclear pore. However, it can also extract new information about known structures, revealing unexpected correlations in the NPC data linking structural distortions from the 10-μm down to the nanometer scale.
As in SQUASSH, the pose fitting and structure are learned for each specific dataset, no prior structural information is built in, in contrast to most other deep learning-based approaches. This means that we do not have the common drawback of deep learning-based approaches and that what is returned in an image is strongly influenced by the training data in ways difficult for a user to predict or detect. We note that for successful analysis, data must have a low enough or uniform enough background that it does not dominate the optimization process, and that in common with many other optimization approaches, SQUASSH is not guaranteed to provide a global ground truth.
Our model of heterogeneity has been demonstrated to accommodate a number of biologically relevant types of variation in the current study, from repeating structures to multiple types of deformation. The coding system is simple enough that creating an additional heterogeneity model requires only altering a small number of lines in a single Python program. In the future, SQUASSH could be used on a wide variety of biological structures across scales, allowing the direct extraction of structure, heterogeneity and dynamics and enabling discovery from nanoscale characterization of macromolecular complexes to the systems biology of development.
Methods
General software structure
Architecture
SQUASSH is designed to fit a 3D structural model in the form of a point cloud to a set of image data. We assume that we know the rendering process that forms the images but not the position or angle of the model in each image. The model may also distort (or appear multiple times in a single image), something we term the model’s heterogeneity. All of these factors are optimized simultaneously to find the underlying model and how it is distorted between different observations. To achieve this, we developed a CNN architecture (Supplementary Fig. 4)
The optimization process measures the quality of fit by using the known rendering process to create 2D images from the structural model, which should correspond to the data. To successfully optimize, it is necessary to learn not only the correct point cloud but also the correct pose, that is, the position (t) and 3D angular rotation (R). These are found by processing the rendered images associated with a single datum (or instance of data) with a CNN, then concatenating the features and further processing with a fully connected network (FCN), which outputs the pose. The network, 3D point cloud and heterogeneity description are then optimized together.
There are a number of architectural details needed to make a practical system. The first step renders the input data into a series of 2D images (for example XY, XZ and YZ projections) with a given level of blur (σin). Pointwise data are directly rendered using a Gaussian point spread function (PSF) determined by σin, and volumetric data are blurred to give it the equivalent PSF and projected or sampled as necessary. In many cases, the Z resolution of the data is lower than X**Y, so fewer pixels are needed in Z, and σin for the Z axis may be correspondingly larger. Over the course of the optimization, σin is decreased to allow the algorithm to first move the fluorophores to generally the correct area, and then to move them to fit the finer details of the structure as these become visible at smaller blur sizes. The starting value of σin is determined by the size of the patch. We found values of between 0.16 and 0.36 of the patch size give reliably good results. For final values of σin, we would recommend 1–2× the estimated resolution (for non-SMLM systems, this would be the estimated PSF size, while for SMLM systems, it would be 2–4× the average localization precision). In our experience, decreasing the blur beyond this point does not offer an improvement in performance.
The network itself is a purposefully simple structure. The encoder has five strided conv-BatchNorm46-SiLU[47](https://www.nature.com/articles/s41592-026-03246-z#ref-CR47 "Hendrycks, D. & Gimpel, K. Gaussian error linear units (GELUs). Preprint at https://doi.org/10.48550/arXiv.1606.08415
(2016).") activation blocks, using 3 × 3 convolutions to increase the channel count and decrease the size by a factor of 2\. From input to output, the channel counts goes 1–16–32–64–128–256\. The encoder is applied to all input images, and the outputs are flattened and concatenated, with the resulting number of channels, *N*, depending on the number and size of the images.
The concatenated encoder outputs feed into an FCN with a similar structure (FC-BatchNorm-SiLU), with the channel counts going N–256–256–M, where M is the number of output logits. There are M ≥ 11 logits, as three channels are needed to encode translation, six are used to encode a rotation24 in a smooth manner, one is used to encode the validity, and one is used to encode σ. The σ determines the PSF of the rendering following our previous work[25](https://www.nature.com/articles/s41592-026-03246-z#ref-CR25 "Blundell, B. et al. 3D structure from 2D microscopy images using deep learning. Front. Bioinform. 1 https://doi.org/10.3389/fbinf.2021.74034
(2021).") and allows the system to account for inaccuracies in the data such as localization errors and scatter of the fluorophore positions. The validity output is a classification of whether a datum is valid, and allows the network to essentially ignore a datum at the penalty of a fixed cost. This adds robustness to the fitting process and reduces the need to very carefully hand\-select input data.
Finally, the network outputs are limited in range to reasonable values. For example, σ cannot drop below σin, so it is computed from the logit, l**σ using SoftPlus48 with the formula σ = σin(1 + softplus(l**σ)). If the data are not already centered, we center the data automatically by shifting the centroid to the center of the patch, so we limit translation to ±10% of the patch size giving \({t}_{x}=0.1s\tanh {l}_{x}\), where s is the size of the visible patch and l**x is the logit corresponding to the translation in X (t**x). If σ is much higher than σin at the end of the fitting process, it is an indication that the system has not been able to successfully fit the details of the data, and the results are likely to be of poor quality.
Model and rendering
The 3D structural model itself is represented as a collection of 3D points each with an associated brightness between 0 and 1. The brightness allows the optimization to remove points which are unnecessary and can also allow the structural model to represent a low precision structure with a large number of low brightness points. The 3D positions are stored in scaled length units so that the range of positions is roughly ±0.05, comparable convolution kernel values often found in practice, to avoid the need for different learning rates. Likewise, brightness is computed from a stored value, b as sigmoid(100b).
As a general rule, we would recommend, for SMLM experiments where the user wishes to achieve a probability density type output, at least 10× the average number of localizations per input patch (or per repeating structural element). For non-SMLM experiments, one can consider the approximate area covered and, given the PSF size and patch size, what number of fluorophores would allow continuous coverage.
We note that the data are rendered to a series of 2D images. A single 2D projection results in a reflective ambiguity (Supplementary Note 1). While almost any additional information is enough to disambiguate mathematically, there is a tradeoff where more images give more information but are slower to run and more parameters need to be learned in the FCN. A reasonable option is to use three projections planes (XY, YZ and XZ). In many cases, a richer representation is useful, and we have found that a good balance is struck by a non physical six-plane rendering, where each of the three projections (XY, YZ and XZ) is split along the projection axis (Z, X and Y, respectively), as illustrated in Supplementary Fig. 5. The impact of different rendering methods, localization precision and labeling level are shown in Supplementary Figs. 6 and 7.
Heterogeneity
Such a 3D structural model is inherently limited to being able to represent only single instances or rigid structures, so the network has a parameterization block, which is specific to the type of structure being modeled. The parameterization modifies the structural model for each instance of the data according to logits generated by the network. The parameterization may also have some learnable parameters. This is what we term the heterogeneity.
For the basic NPC analysis, the parameterization consists of a learned axis and two scaling parameters generated by the network. The 3D structural model is scaled along the axis and isotropically in the plane normal to the axis (these combine to give overall scale). After the parameterization is applied, the points are transformed using R and t and then rendered using a Gaussian PSF, with the computed σ. Changing this parameterization allows SQUASSH to deal with very varied data as detailed in Table 1.
Table 1 Heterogeneity parameterizations available in SQUASSH
Loss and validity classifier
The loss between each pair of images is computed by normalizing the images so that they sum to 1, then computing the mean absolute error (MAE). The overall loss is the weighted sum of the individual losses. For a parameterization with scaling factors (such as for nuclear pore data), the auxiliary loss is the absolute value of the logarithm of the scale that helps the average scale to settle to around 1, an effect that is not especially sensitive to the weighting but aids convergence.
In general, incoming data are not entirely clean, meaning that there are likely to be some items of data which are bad, for example, due to selection of data from other structures, segmentation errors (for example, leading to multiple structures in one image), labeling errors (for example, causing missing structure) and so on. As these cannot be modeled the same way as the valid data, SQUASSH may attempt to partially build the invalid items into its structural model, which can reduce the overall quality. To prevent this, and to avoid the need for the user to excessively clean the data (which could lead to bias), the system also attempts to classify data as valid or invalid.
The classification is done by the network and so is updated during training. If a piece of data is classified as invalid, then it incurs no loss on the appearance of the rendered image, so the optimization will not attempt to include that item of data into the structural model. However, a penalty for excluding an item of data is needed because otherwise the system will exclude all data and incur no loss for the entire dataset. The optimizer therefore has a choice as to whether to include any given datum, and it will choose to do so if any given datum can be well modeled. If it cannot be well modeled, then the most optimal choice is to exclude the datum and incur a fixed penalty.
This is implemented by the network emitting a validity classification which is a number between 0 and 1, given by v. The MAE loss is m, and the fixed loss penalty for invalid data is w**v. We use the following formula for the loss: w**v(1 − v) + m**v, so if v = 0 (invalid), we incur a fixed loss, and if v = 1 (valid), we just use the MAE loss and smoothly interpolate otherwise.
If w**v is not broadly comparable to the average MAE, then the system will either accept or reject all of the data. In practice, the useful range spans roughly a factor of 2. The optimal weighting therefore changes as the optimization progresses and the losses change (especially with changes in σin).
To solve this, we compute \({w}_{v}=\overline{m}r\), where \(\overline{m}\) is an exponential moving average of the MAE loss, and r we term the rejection weight. The effect of this is to entirely decouple r from the MAE loss. Practical values of the weighting are roughly in the range 0.7–1.2, with 0.7 rejecting most of the data and 1.2 accepting most. A value of 2.0 effectively switches off validity checking and uses all of the data. The efficacy of the validity is illustrated in Extended Data Fig. 10, where SQUASSH automatically selects NPCs with various errors. An example of how the proportion of data deemed valid changes with r is given in Supplementary Fig. 8, and a summary for the datasets is given in Supplementary Table 1.
Training
We train the network using the Adam[49](https://www.nature.com/articles/s41592-026-03246-z#ref-CR49 "Kingma, D. P. & Ba, J. Adam: a method for stochastic optimization. Preprint at https://doi.org/10.48550/arXiv.1412.6980
(2015).") optimizer over a number of epochs, with both *σ*in and the learning rate starting at a high value and dropping exponentially toward their final values. This allows the network to rapidly acquire the coarse structure, then gradually refine finer and finer structures as the optimization progresses. In practice, the change in \\({\\sigma }\_{{{\\rm{in}}}}\\) happens once every few epochs to reduce the computational cost of repeatedly rendering the dataset.
The final output is a 3D point cloud and the parameterization values for each element of the input data.
As the system does learn the underlying manifold, augmentations can help with convergence. However, care must be taken to avoid introducing artifacts. In practice, we only augment point data, and we do this by performing random rotations about the Z axis.
There is often coupling between various parameters computed by the network, and it assists convergence to remove this where it is practical to do so. For example, if the structural model is off center, then change in rotation will also cause motion, so the network needs to learn how R and t couple together. Likewise, with an uncentered structural model, scaling will also cause a translation. We have found that, in many cases, it improves convergence to center the structural model. We achieve this by computing the centroid, that is, the mean of the positions weighted by their intensities, and subtract that from the positions.
Benchmarking
All software timings are given for execution on an AMD Ryzen 9 3900X CPU, with an NVidia GeForce RTX 2080Ti GPU.
DNA origami tetrahedra
We analyzed the tetrahedron SMLM DNA origami dataset of ref. [26](https://www.nature.com/articles/s41592-026-03246-z#ref-CR26 "Huijben, T. eunA. P. M. et al. Detecting structural heterogeneity in single-molecule localization microscopy data. Nat. Commun. 12, 3791 https://doi.org/10.1038/s41467-021-24106-8
(2021)."), which consists of 300 examples of tetrahedra imaged using DNA\-PAINT. The parameterization comprised a stretch along a single learned axis, as described in the ‘General software structure’ section with the second scaling factor set to 1\. The axial scaling factor was set to 1\.5\.
To render the data, we use six-plane rendering with 64 pixels in X, Y and Z, with a size of 3 nm pixel−1. We train with no augmentations, for 500 epochs at a learning rate of 0.0001, and the rendering PSF decreasing from a full-width at half-maximum (FWHM) of 80 nm down to 10 nm. The validity weight was set to 4.0, which prevents rejection of any data.
Training took approximately 11 min. Owing to the small size of the dataset and the simplicity of the structure, we were able to train without a graphics processing unit, which took 57 min.
NPC
Software
For analyzing the SMLM data of the NPC, we have two different parameterizations: a basic analysis, which allows for overall scaling and a stretch, and more advanced analysis, which allows for much more detailed changes in shape.
The software structure and parameterization for the basic analysis is as described in the ‘General software structure’ section. To render the data, we use six-plane rendering with 64 pixels in X and Y, at 3.9 nm pixel−1 and 32 in Z, at 7.8 nm pixel−1, and we use a validity weighting of 1.
To make the training time particularly short, we use a multistage training process. We start with a small structural model of 35 points, with the rendering FWHM starting at 65 nm and reducing to 34 nm over 30 epochs, and then down to 13 nm over a further 300 epochs, all at a fixed learning rate of 0.0001. We use eightfold augmentations, and because the model is so small, we can use a large batch size (160) for speed.
At this point, we then replace each of the 35 points with 20 new points randomly scattered around its location (giving a total of 700 points). Training then proceeds for 1,000 epochs on the data with no augmentations at a FWHM of 13 nm, with the learning rate decreasing from 0.0002 to 0.00005 and a batch size of 10.
Training time was approximately 1.6 h for the RESI data and 7.7 h for the 4Pi-STORM data. Note that with a simpler training schedule, where the initial phases of the training are performed with the full 700 points rather than the reduced size model, the training time for the RESI data is approximately 2.5 h.
For the advanced analysis, the parameterization predicts three independent, orthogonal scaling axes (that is, a rotation matrix) and, in addition, a separate translation in x, y and z for each 3D point in the model enabling very finely detailed modifications of the model structure.
The scaling axes are represented using two axes, with the third being generated via a cross product. The first axis is represented as in the basic analysis. The second axis is represented similarly but Gram–Schmidt orthogonalized relative to the first.
For ease of training, the main parameterization network emits an additional 4,096 logits for the per-point translations. A second, two-layer network processes these into translations. The structure is FC-BatchNorm-Silu-FC-Scale-Tanh-Scale, with the channel count going as 4,096–1,024–N × 3, where N is the number of points in the model, that is, 700. A scaling of ten is used before the Tanh to scale gradients. The final scaling is to translate the output of ±1 into ±7 nm.
The training process is similar to the method used for the basic parameterization, but some modifications are required for the system to converge to a useful network. In the first training stage, scaling is only permitted along the first axis, and the translation network is not used. This allows the system to acquire the axis of the NPCs as the first axis, which is useful for analyzing the data. The hyperparemeters are the same as the first stage of the basic analysis.
The second stage is as before, but the first axis of the rotation matrix is frozen to prevent it from drifting, and scaling along the other two axes is enabled. Hyperparameters are otherwise the same as the second stage of the basic analysis except that 500 epochs are used.
At this point, a third stage is added. In this stage, the neural networks, the model and the parameterization are frozen. The translation network is then added. This is trained at a learning rate of 0.00005, for a further 500 epochs.
The training time was approximately the same as for the basic analysis. The aspect ratio was calculated from the covariance of the point positions.
Sample preparation and microscopy
All of the nuclear pore data were from SMLM experiments.
The sample preparation and imaging for the RESI data were preformed as described in ref. [1](https://www.nature.com/articles/s41592-026-03246-z#ref-CR1 "Reinhardt, S. C. M. et al. Ångström-resolution fluorescence microscopy. Nature 617, 711–716 https://doi.org/10.1038/s41586-023-05925-9
(2023)."). The resulting dataset consists of 1,218 nuclear pores from a single nucleus, with an average of 470\.2 localizations each from the PAINT imaging, reduced to an average of 12\.6 with RESI processing.
Sample preparation and imaging for the 4Pi-STORM data were performed as described in ref. [37](https://www.nature.com/articles/s41592-026-03246-z#ref-CR37 "Bates, M. et al. Optimal precision and accuracy in 4Pi-STORM using dynamic spline PSF models. Nat. Methods 19, 603–612 https://doi.org/10.1038/s41592-022-01465-8
(2022)."). The resulting dataset consists of 5,822 nuclear pores from eight different cells with an average of 37\.2 localizations each.
Microtubules
Software
Microtubule data were also SMLM (that is, data were localized positions). Unlike nuclear pores, labeling microtubules to separate out individual repeating units would be a very time-consuming process and have to rely on a large amount of human judgment to correctly separate them, which could strongly bias the data. Instead, long sections of microtubules are labeled and then automatically chopped into roughly fixed length segments, which contain a variable number of repeating units. To account for this, we use a parameterization that allows for a variable number of discrete duplicates of the structural model in a fully differentiable manner.
The parameterization needs to be able to generate between M and N duplicates of the underlying structure. This is done by first duplicating the underlying structure N times along a learned axis with a learned spacing. Recall that the structural model contains a list of 3D positions and brightnesses. The parameterization scales the brightnesses in each duplicate with a weight between 0 and 1, so a duplicate scaled by 0 is effectively not present. Because the scaling is continuous, the result is differentiable. However, independent scaling for each duplicate allows nonsensical structures.
Consider a parameterization which has between three and six repeating units. Examples of brightness scalings (b1 to b6) for the six duplicates would be
$${b}_{1},\ldots ,{b}_{6}=\left\{\begin{array}{l}1,\,1,\,1,\,0,\,0,\,0,\,\quad \\ 1,\,1,\,1,\,1,\,0,\,0,\quad \\ 1,\,1,\,1,\,1,\,1,\,0,\,\,{\mbox{and}}\,\quad \\ 1,\,1,\,1,\,1,\,1,\,1\quad \end{array}\right.$$
for essentially 3, 4, 5 and 6 repeating units. However, the sequence 1, 1, 1, 0, 0, 1 would not be valid because that would imply there are three repeating units followed by a large gap followed by a final repeating unit, which is not a physically realistic structure. To ensure that the structure is contiguous, we would like to enforce the constraint that b**i−j≥ b**i for j > 0. This means that if b**j = 1, making duplicate j be present, then all prior duplicates must be present as well.
In this example, the network must generate three outputs, c4, c5, c6 used to compute b4, b5, b6, because b1, b2 and b3 are all 1. Ideally, our constraint would be implemented using the maximum operator, because if b5 = max(c5, c6) and b6 = c6, that ensures that b5≥ b6. However, we cannot use maximum, as it is not differentiable. Instead, we use boltzβ, the Boltzmann Operator as defined in ref. 50 that behaves as a differentible approximation to the maximum operator. Our implementation for M = 3 and N = 6 uses the equations
$$\begin{array}{lll}{b}_{0} & = & 1,\\ {b}_{1} & = & 1,\\ {b}_{2} & = & 1,\\ {b}_{4} & = & {\text{boltz}}_{\beta }({c}_{4},{c}_{5},{c}_{6})\approx \max ({c}_{4},{c}_{5},{c}_{5}),\\ {b}_{5} & = & {\text{boltz}}_{\beta }(0,{c}_{5},{c}_{6})\approx \max (0,{c}_{5},{c}_{6}),\\ {b}_{6} & = & {\text{boltz}}_{\beta }(0,0,{c}_{6})\approx \max (0,0,{c}_{6}).\end{array}$$
We found β = 10 provides a good tradeoff between accuracy of the approximation to maximum and smoothness for ease of optimization.
The variable duplication can produce structural models, which are very off center, so we perform centering after the parameterization. The spacing between duplicates is a learned parameter, so, similar to the axis, it is the same for all data. On the basis of our expectations of the underlying structure, we allow the spacing between duplicates to take any value between 14 nm and 18 nm, and so because the data are chopped into 64-nm chunks, we allow for between three and five repeating units to be fitted.
To allow for imperfect calibration of SIMPLER, we allow for a squashing of the structure that can be different for each datum. This requires an additional learnable axis (represented by a 3D vector) which is constrained to be orthogonal to the repetition axis using Gram–Schmidt orthogonalization. The structural model is then scaled along this axis by at most 20% with the scaling factor s given by \(s=1.{2}^{\tanh {l}_{s}}\), where l**s is the corresponding logit from the network.
Finally, we have an optional additional parameterization to counteract the tendency of the system to pick the modal rather than the mean structure. For this, we allow a small extra shift for each duplicate of the underlying model of ±1 nm. The shift is computed using tanh of the corresponging logit.
The data are rendered using the six-plane technique, as 64 × 64 for XY and 64 × 32 for XZ and YZ, with an isotropic resolution of 2 nm pixel−1. We train for 2,000 epochs at a batch size of 20 at a learning rate of 0.0001 with the initial and final rendering FWHM going from 20 nm to 8 nm. The data have twofold augmentations, and the structural model has 280 points.
With 64-nm segments, and six to ten repeating units, training took approximately 4.5 h.
Imaging experiments
Microtubules were imaged using SMLM.
Porcine brain tubulin was purified by rounds of polymerization/depolymerization as described before51. Digoxigenin–tubulin was obtained by labeling purified tubulin with digoxigenin NHS-ester (Sigma) and purified by cycling following the published protocol[52](https://www.nature.com/articles/s41592-026-03246-z#ref-CR52 "Hyman, A. et al. Preparation of modified tubulins. Methods Enzymol. 196, 478–485 https://doi.org/10.1016/0076-6879(91)96041-O
(1991).").
Amine-modified DNA oligonucleotides (Integrated DNA Technologies) were attached covalently to C-termini of tubulins using TTL-ligase[53](https://www.nature.com/articles/s41592-026-03246-z#ref-CR53 "Kuo, Y.-W., Mahamdeh, M., Tuna, Y. & Howard, J. The force required to remove tubulin from the microtubule lattice by pulling on its α-tubulin c-terminal tail. Nat. Commun. 13, 3651 https://doi.org/10.1038/s41467-022-31069-x
(2022)."). The plasmid used for expression of TTL was a gift from J. Howard.
Microtubules were assembled in the presence of 1 mM GMPCPP (Jena Bioscience) immobilized on dichlorodimethylsilane silanized coverslips using digoxigenin. Flow cells were incubated with a mixture of anti-digoxigenin-AP, Fab fragments for the attachment of microtubules and neutravidin for the attachment of biotinylated gold-nano-urchins (CytoDiagnostics, GUB10K-100-25) as fiducial markers used to correct for drift in x− and y−. Coverslips were additionally passivated with beta-casein (Sigma).
Microtubule seeds were prepared by mixing 5 μl 10μl 10 mg ml−1 DNA-PAINT tubulin, 1 μl 10 μl 10 mg ml−1 digoxygenin–tubulin, 40 μl BRB80, 5 μl 10mM GMPCPP on ice, incubating for 5 min before placing at 37 ∘C and incubating for 30 min. A passivated flowcell was incubated with gold biotinylated nano-urchins until approximately 10–20 fiducials were observed in a FOV. The flowcell was then washed twice and GMPCPP microtubules were introduced and allowed to bind to Digoxigenin. The 0.25% glutaraldehyde in BRB80 was flowed into the chamber and incubated for 5 min before washing with 3 × 100 μl of BRB80 and then 3 × 100 μl of imaging buffer (PBS, 1 mM EDTA, 500 mM NaCl, 50 mM glucose).
Imaging was performed on a custom TIRF microscope system, with 561-nm and 640-nm laser illumination. A TIRF objective (Nikon, CFI Apochromat TIRF 60XC Oil) gave a circular illumination field with diameter 180 μm. Emitted fluorescence was split using a dichroic mirror into two imaging arms using a 4f-configuration, forming the image onto the sensor using achromat lenses (Thorlabs, AC254-200-A) and combining the imaging beams with a knife-edge mirror prism (Thorlabs, MRAK25-P01). To maintain focus throughout long acquisitions, a focus-lock module was used. A back-reflected beam from an infrared laser diode was reflected using a 50:50 beamsplitter (Thorlabs, BS013) and imaged onto a camera sensor (Thorlabs, DCC1545M). Movement in the back-reflected spot was detected using custom Python scripts and used to correct for drift in the sample focus by updating the position of the piezo stage on the sample stage (Applied Scientific Instrumentation, PZ-2000 XYZ).
Imaging was performed using 100pM of Cy3-labeled imaging strands in imaging buffer with trolox and pyranose oxidase/catalase using maximum laser power (approximately 0.5 kW cm−2), acquiring 150,000 frames with an exposure time of 100 ms. Extraction of molecule positions was performed in Picasso and using custom Python scripts. Nine images were selected as containing data of sufficient quality for analysis.
Spectrin rings in neurons
Software
The spectrin ring data were SMLM (localized positions). Areas were selected by hand as for the microtubule data, in this case, as containing single-well-separated axons, and then automatically divided into small patches. The areas selected are shown in Extended Data Fig. 9. The parameterization is an generalization of the parameterization described in the ‘Software’ section. First, because the spacing of the rings varies, we allow the spacing to vary per image from between 160 and 240 nm. Second, we have scaling (from 0.5 to 2) which applies orthogonal to the axis of repetition. Finally, instead of a simple squash, we apply a more general distortion function orthogonal to the axis of repetition. The data are rendered using six-plane rendering.
The distortion function is applied radially, that is, the vector from a given point to the axis of repetition is computed, and then the point is moved by scaling the vector. The size of the scaling varies with angle around the axis. The angular variation is parameterized by a number (4) of scalings (of up to 50%) computed equally spaced angles, which are then interpolated to find scalings at any angle. As the scalings are over a circular domain, we take the discrete Fourier transform of the scalings to find a Fourier series, which can then be evaluated for arbitrary angles. Note that this radial distortion function is applied after centering the structural model, and we center the model again after the distortion is applied.
The data are rendered into images with 64 pixels in X and Y and 32 in Z, with a resolution of 25 nm pixel−1. Training is for 2,000 epochs with a batch size of 40, at a learning rate of 0.0001 with the rendering FWHM dropping from 250 to 45 nm. We train with 15 augmentations and a structural model size of 300 points. The validity weight is 0.8.
Training took approximately 2.7 h.
Sample preparation and microscopy
Spectrin rings in neurons were imaged using SMLM. Samples were prepared and data collected as described in ref. [54](https://www.nature.com/articles/s41592-026-03246-z#ref-CR54 "Spark, A. et al. vlume: 3D virtual reality for single-molecule localization microscopy. Nat. Methods 17, 1097–1099 https://doi.org/10.1038/s41592-020-0962-1
(2020)."). Well\-separated neurons across three different images were marked up manually (Extended Data Fig. [9](https://www.nature.com/articles/s41592-026-03246-z#Fig9)) and then automatically cut into segments of approximately 1 micron in length. This yields 154 segments with an average 10,700 localizations each from roughly 800 spectrin rings.
Telophase
Software
Telophase data were from lattice light sheet microscopy, so it was in the form of image stacks. These are cropped around the centroid to produce stacks of 128 × 128 × 64, which are then scaled using average pooling down to 32 × 32 × 32, yielding a final sampling of 864 nm pixel−1 in plane and 800 nm pixel−1 on the Z axis. For training, the data stacks are rendered into three projections (XY, XZ, YZ), by summing along the Z, Y and X axes.
The parameterization has a learned axis, which dictates how the nuclei are separated. The structural model is first scaled normal to the axis by up to 50% (that is, between 0.666 and 1.5) and then duplicated, and the duplicate is translated along the axis by between 8 and 24 μm. The translated duplicate is then rotated around its center around the two axes orthodonal to the direction of translation, by up to ±45∘.
Training proceeds in two stages. The first stage runs for 1,000 epochs at a learning rate of 0.0001 with the FWHM dropping from 10 μm to 5 μm, with no scaling and rotation. During this stage, as there are only 79 data cubes, we use a tiny batch size (4) to maximize the benefit of stochastic gradient descent’s ability to escape local minima. The second stage introduces rotation and scaling and runs for 10,000 epochs with the FWHM dropping to 500 nm and the learning rate decaying to 0.00001.
We set the validity weight to a high value (1,000), which prevents the system from rejecting any of the data.
Training took approximately 19 min.
Data source
The telophase images were acquired using a lattice light sheet microscope. Data were associated with ref. [44](https://www.nature.com/articles/s41592-026-03246-z#ref-CR44 "Shi, Y. et al. Smart lattice light-sheet microscopy for imaging rare and complex cellular events. Nat. Methods 21, 301–310 https://doi.org/10.1038/s41592-023-02126-0
(2024)."). The data consists of 79 stacks of 150 *z* slices, with *x* and *y* sizes varing from between 133 and 311 pixels. The sampling is 108 nm pixel−1 in plane and 200 nm pixel−1 in *z*.
Trichomes
Software
The trichomes were imaged using confocal microscopy, so the data were in the form of image stacks. Image stacks of individual trichomes were captured (see ’Imaging Arabidopsis trichomes’ section for details). As the trichome neck connects to the leaf, there is often a considerable amount of leaf visible that we do not attempt to model. We have a manual markup step where a 3D plane is provided and all data in the data cube on one side of the plane is set to zero. This is used to cut off the leaf from the neck. Owing to the high amount of shape variablility, we do not perform centering because that can cause some features to be moved outside of the visible area. As a result, we allow the network to predict larger translations, up to ±30% of the size of the image. Images are downsampled by a factor of 2 in X and Y using average pooling, and then, images are padded with zeros where necessary to a size of 89 × 89 × 60.
The uncentered data cause an additional difficulty. As we use a six-plane rendering, and the data are uncentered, occasionally a rendering plane is essentially empty and contains no data. The per-image normalization process then amplifies the nonexistent data, essentially noise for the data and numerical round-off errors for the rendered structural model. Instead, we perform normalization across the entire group of images so that the sum of all pixels across all planes sum to 1.
The distortions of trichomes are large, and we do not have any particular expectations of what it should be, so we use a general-purpose model of distortion, which is illustrated in Supplementary Fig. 3. The distortion model operates on a cube, for which we use the smallest cube encompassing the cuboidal volume of data that we are processing with SQUASSH.
The parameterization is in the form of a vector field defined within that cube. For each point in the structural model, there is therefore a corresponding vector from the vector field, and we distort the structural model by adding that vector to the point’s position. This field is parameterized using one 3D vector at each of the eight corners of the cube, giving 24 parameters. Vectors at arbitrary positions within the cube are found using trilinear interpolation of the X, Y and Z components of the vectors.
For a practical implementation, a number of steps are required. First, the X, Y and Z components are sigmoided network logits, limited independently to 1.2× the size of the cube. Second, it is necessary to center the structural model before the distortion is applied. Consider a case where the structural model is limited to the bottom-left 2 × 2 squares in corner of the grid in Supplementary Fig. 3. The distortion of those is dominated by the bottom-left, top-left and bottom-right vectors, with very little contribution from the top-right vector. Finally, the size of the trichomes varies quite strongly, so to prevent the distortion model having to account for that in addition to actual distortions, we apply an overall scale of up to a factor of 50% (that is, from \(\frac{2}{3}\) to \(\frac{3}{2}\)) to the structural model after the distortion.
Owing the the high degree of variability in the structure, we use a two-stage training process. We train first for 16,000 epochs with a learning rate of 0.0001, and a batch size of 16, with the FWHM dropping from 500 to 10 μm. During this phase, the complex distortion is disabled and only scaling is permitted. The second stage enables the distortion and proceeds for a further 8,000 epochs with an FWHM of 10 μm.
Training took approximately 45 min.
Imaging Arabidopsis trichomes
Arabidopsis trichomes were imaged using laser scanning confocal microscopy.
A. thaliana (L.) Heynh, Columbia-0 seeds were sown on Westland Multi-Purpose John Innes compost and maintained in a controlled growth chamber at 25 ∘C with a 12-h light–12-h dark photoperiod. Trichome images were captured from fully expanded leaves of 4-week-old Arabidopsis plants.
Arabidopsis leaves were excised using a razor blade, immersed in a 50 μg ml−1 working solution of propidium iodide for 10 min before being placed, adaxial side up, in the well of a polydimethylsiloxane gasket made on a microscope slide. The well was filled with perfluoroperhydrophenanthrene according to the method of Littlejohn et al.[55](https://www.nature.com/articles/s41592-026-03246-z#ref-CR55 "Littlejohn, G. R. et al. An update: improvements in imaging perfluorocarbon-mounted plant leaves with implications for studies of plant pathology, physiology, development and cell biology. Front. Plant Sci. 5 https://doi.org/10.3389/fpls.2014.0014
(2014)."). The sample was covered with a coverslip before imaging, taking care not to crush trichomes. Trichome images were captured using a Zeiss LSM 880 microscope equipped with Plan\-Apochromat 20X/0\.8 M27 objective lens and a 514\-nm laser that was used for sample excitation. Emission was collected in the wavelength range of 566–664 nm with gain set to eliminate saturated pixels across each *z*\-stack. In total, 114 *Z*\-stacks were obtained with a pixel size of 3\.02 μm in plane and 5 μm out of plane.
Reporting summary
Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.
Data availability
SMLM data associated with the Article are available via GitHub at https://github.com/edrosten/SQUASSH, and other data supporting this article are openly available from the King’s College London research data repository, KORDS, at https://doi.org/10.18742/32769705. All data related to the study are also available via Zenodo at https://doi.org/10.5281/zenodo.22258216 (ref. [56](https://www.nature.com/articles/s41592-026-03246-z#ref-CR56 "Rosten, E. et al. Extracting biological structure and heterogeneity from the nano to the macro scale. Zenodo https://doi.org/10.5281/zenodo.22258216
(2026).")). [Source data](https://www.nature.com/articles/s41592-026-03246-z#Sec35) are provided with this paper.
Code availability
Code associated with the manuscript is available via GitHub at https://github.com/edrosten/SQUASSH and via Zenodo at https://doi.org/10.5281/zenodo.22258216 (ref. [56](https://www.nature.com/articles/s41592-026-03246-z#ref-CR56 "Rosten, E. et al. Extracting biological structure and heterogeneity from the nano to the macro scale. Zenodo https://doi.org/10.5281/zenodo.22258216
(2026).")).
References
- Reinhardt, S. C. M. et al. Ångström-resolution fluorescence microscopy. Nature 617, 711–716 https://doi.org/10.1038/s41586-023-05925-9 (2023).
- Benjin, X. & Ling, L. Developments, applications, and prospects of cryo-electron microscopy. Protein Sci. 29, 872–882 https://doi.org/10.1002/pro.3805 (2020).
Article CAS PubMed Google Scholar 3. Scheres, S. H. W. RELION: implementation of a Bayesian approach to cryo-EM structure determination. J. Struct. Biol. 180, 519–530 https://doi.org/10.1016/j.jsb.2012.09.006 (2012). 4. Punjani, A., Rubinstein, J. L., Fleet, D. J. & Brubaker, M. A. cryosparc: algorithms for rapid unsupervised cryo-EM structure determination. Nat. Methods 14, 290–296 https://doi.org/10.1038/nmeth.4169 (2017).
Article CAS PubMed Google Scholar 5. Zhong, E. D., Bepler, T., Berger, B. & Davis, J. H. Cryodrgn: reconstruction of heterogeneous cryo-EM structures using neural networks. Nat. Methods 18, 176–185 https://doi.org/10.1038/s41592-020-01049-4 (2021). 6. Lin, D. H. & Hoelz, A. The structure of the nuclear pore complex (an update). Annu. Rev. Biochem. 88, 725–783 https://doi.org/10.1146/annurev-biochem-062917-011901 (2019). 7. Schuller, A. P. et al. The cellular environment shapes the nuclear pore complex architecture. Nature 598, 667–671 https://doi.org/10.1038/s41586-021-03985-3 (2021). 8. Zimmerli, C. E. et al. Nuclear pores dilate and constrict in cellulo. Science 374, eabd9776 https://doi.org/10.1126/science.abd9776 (2021).
Article CAS PubMed Google Scholar 9. Taniguchi, R. et al. Nuclear pores safeguard the integrity of the nuclear envelope. Nat. Cell Biol. 27, 762–775 https://doi.org/10.1038/s41556-025-01648-3 (2025). 10. Szymborska, A. et al. Nuclear pore scaffold structure analyzed by super-resolution microscopy and particle averaging. Science 341, 655–658 https://doi.org/10.1126/science.1240672 (2013).
Article CAS PubMed Google Scholar 11. Heydarian, H. et al. Template-free 2D particle fusion in localization microscopy. Nat. Methods 15, 781–784 https://doi.org/10.1038/s41592-018-0136-6 (2018).
Article CAS PubMed Google Scholar 12. Heydarian, H. et al. 3D particle averaging and detection of macromolecular symmetry in localization microscopy. Nat. Commun. 12, 2847 https://doi.org/10.1038/s41467-021-22006-5 (2021). 13. Wang, W., Heydarian, H., Huijben, T. A. P. M., Stallinga, S. & Rieger, B. Joint registration of multiple point clouds for fast particle fusion in localization microscopy. Bioinformatics 38, 3281–3287 https://doi.org/10.1093/bioinformatics/btac320 (2022). 14. Wang, W. et al. Particle fusion of super-resolution data reveals the unit structure of nup96 in nuclear pore complex. Sci. Rep. 13, 13327 https://doi.org/10.1038/s41598-023-39829-5 (2023). 15. Salas, D. et al. Angular reconstitution-based 3D reconstructions of nanomolecular structures from superresolution light-microscopy images. Proc. Natl Acad. Sci. USA 114, 9273–9278 https://doi.org/10.1073/pnas.1704908114 (2017). 16. Mahecic, D. et al. Homogeneous multifocal excitation for high-throughput super-resolution imaging. Nat. Methods 17, 726–733 https://doi.org/10.1038/s41592-020-0859-z (2020).
Article CAS PubMed Google Scholar 17. Shi, X., Garcia III, G., Wang, Y., Reiter, J. F. & Huang, B. Deformed alignment of super-resolution images for semi-flexible structures. PloS ONE 14, e0212735 (2019). 18. Danial, J. S. H. & Garcia-Saez, A. J. Quantitative analysis of super-resolved structures using ASAP. Nat. Methods 16, 711–714 https://doi.org/10.1038/s41592-019-0472-1 (2019). 19. Wu, Y.-L. et al. Maximum-likelihood model fitting for quantitative analysis of SMLM data. Nat. Methods 20, 139–148 https://doi.org/10.1038/s41592-022-01676-z (2023). 20. Sieben, C., Banterle, N. iccolò, Douglass, K. M., Gönczy, P. & Manley, S. Multicolor single-particle reconstruction of protein complexes. Nat. Methods 15, 777–780 https://doi.org/10.1038/s41592-018-0140-x (2018). 21. Gray, R. D. M. et al. Nanoscale polarization of the entry fusion complex of vaccinia virus drives efficient fusion. Nat. Microbiol. 4, 1636–1644 https://doi.org/10.1038/s41564-019-0488-4 (2019). 22. Mendes, A. et al. Structural repetition detector for multi-scale quantitative mapping of molecular complexes through microscopy. Nat. Commun. 16, 5767 https://doi.org/10.1038/s41467-025-60709-1 (2025).
Article PubMed PubMed Central Google Scholar 23. Kendall, A., Grimes, M. & Cipolla, R. Posenet: a convolutional network for real-time 6-dof camera relocalization. In Proc. IEEE International Conference on Computer Vision 2938–2946 (IEEE, 2015). 24. Zhou, Y., Barnes, C., Lu, J., Yang, J. & Li., H. On the continuity of rotation representations in neural networks. In Proc. IEEE/CVF Conference on Computer Vision and Pattern Recognition 5745–5753 (IEEE, 2019). 25. Blundell, B. et al. 3D structure from 2D microscopy images using deep learning. Front. Bioinform. 1 https://doi.org/10.3389/fbinf.2021.74034 (2021). 26. Huijben, T. eunA. P. M. et al. Detecting structural heterogeneity in single-molecule localization microscopy data. Nat. Commun. 12, 3791 https://doi.org/10.1038/s41467-021-24106-8 (2021). 27. Haghparast, S., Stallinga, S. & Rieger, B. Detecting continuous structural heterogeneity in single-molecule localization microscopy data. Sci. Rep. 13, 19800 https://doi.org/10.1038/s41598-023-46488-z (2023). 28. Khater, I. M., Robert Nabi, I. & Hamarneh, G. A review of super-resolution single-molecule localization microscopy cluster analysis and quantification methods. Patterns 1 https://doi.org/10.1016/j.patter.2020.10003 (2020). 29. Hugelier, S. et al. Eclipse: a versatile classification technique for structural and morphological analysis of 2D and 3D single-molecule localization microscopy data. Nat. Methods 21, 1909–1915 https://doi.org/10.1038/s41592-024-02414-3 (2024).
Article CAS PubMed Google Scholar 30. Bender, S. W. B., Dreisler, M. W., Zhang, M., Kæstel-Hansen, J. & Hatzakis, N. S. Semore: segmentation and morphological fingerprinting by machine learning automates super-resolution data analysis. Nat. Commun. 15, 1763 https://doi.org/10.1038/s41467-024-46106-0 (2024). 31. Vasan, R. et al. Interpretable representation learning for 3D multi-piece intracellular structures using point clouds. Nat. Methods 22, 1531–1544 https://doi.org/10.1038/s41592-025-02729-9 (2025). 32. Lindeberg, T. Scale-space for discrete signals. IEEE Trans. Pattern Anal. Mach. Intell. 12, 234–254 https://doi.org/10.1109/34.49051 (1990).
Article Google Scholar 33. Goodfellow, I. J. et al. Generative adversarial nets. In Proc. 28th International Conference on Neural Information Processing Systems Vol. 2, 2672–2680 (ACM, 2014). 34. von Appen, A. et al. In situ structural analysis of the human nuclear pore complex. Nature 526, 140–143 https://doi.org/10.1038/nature15381 (2015).
Article CAS Google Scholar 35. Jumper, J. et al. Highly accurate protein structure prediction with alphafold. Nature 596, 583–589 https://doi.org/10.1038/s41586-021-03819-2 (2021).
Article CAS PubMed Google Scholar 36. Thevathasan, J. V. et al. Nuclear pores as versatile reference standards for quantitative superresolution microscopy. Nat. Methods 16, 1045–1053 https://doi.org/10.1038/s41592-019-0574-9 (2019). 37. Bates, M. et al. Optimal precision and accuracy in 4Pi-STORM using dynamic spline PSF models. Nat. Methods 19, 603–612 https://doi.org/10.1038/s41592-022-01465-8 (2022). 38. Petrov, P. N. & Moerner, W. E. Addressing systematic errors in axial distance measurements in single-emitter localization microscopy. Opt. Express 28, 18616–18632 https://doi.org/10.1364/OE.391496 (2020). 39. Pierson, G. B., Burton, P. R. & Himes, R. H. Alterations in number of protofilaments in microtubules assembled in vitro. J. Cell Biol. 76, 223–228 (1978). 40. Szalai, A. M. et al. Three-dimensional total-internal reflection fluorescence nanoscopy with nanometric axial resolution by photometric localization of single molecules. Nat. Commun. 12, 517 https://doi.org/10.1038/s41467-020-20863-0 (2021). 41. Li, H., DeRosier, D. J., Nicholson, W. V., Nogales, E. & Downing, K. H. Microtubule structure at 8 Å resolution. Structure 10, 1317–1328 https://doi.org/10.1016/S0969-2126(02)00827-4 (2002).
Article CAS PubMed Google Scholar 42. Xu, K., Zhong, G. & Zhuang, X. Actin, spectrin, and associated proteins form a periodic cytoskeletal structure in axons. Science 339, 452–456 https://doi.org/10.1126/science.1232251 (2013).
Article CAS PubMed Google Scholar 43. Leterrier, C. Putting the axonal periodic scaffold in order. Curr. Opin. Neurobiol. 69, 33–40 https://doi.org/10.1016/j.conb.2020.12.015 (2021).
Article CAS PubMed Google Scholar 44. Shi, Y. et al. Smart lattice light-sheet microscopy for imaging rare and complex cellular events. Nat. Methods 21, 301–310 https://doi.org/10.1038/s41592-023-02126-0 (2024). 45. Turk, G. & Levoy, M. Zippered polygon meshes from range images. In Proc. 21st Annual Conference on Computer Graphics and Interactive Techniques 311–318 (ACM, 1994). 46. Ioffe, S. & Szegedy. C. Batch normalization: accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning 448–456 (PMLR, 2015). 47. Hendrycks, D. & Gimpel, K. Gaussian error linear units (GELUs). Preprint at https://doi.org/10.48550/arXiv.1606.08415 (2016). 48. Dugas, C., Bengio, Y., Bélisle, F. Nadeau, C. & Garcia, R. Incorporating second-order functional knowledge for better option pricing. In Advances in Neural Information Processing Systems Vol. 13 (eds Leen, T. et al.) (NeurIPS, 2000). 49. Kingma, D. P. & Ba, J. Adam: a method for stochastic optimization. Preprint at https://doi.org/10.48550/arXiv.1412.6980 (2015). 50. Asadi, K. & Littman, M. L. An alternative softmax operator for reinforcement learning. In International Conference on Machine Learning 243–252 (PMLR, 2017). 51. Castoldi, M. & Popov, A. V. Purification of brain tubulin through two cycles of polymerization–depolymerization in a high-molarity buffer. Protein Expr. Purif. 32, 83–88 (2003).
Article CAS PubMed Google Scholar 52. Hyman, A. et al. Preparation of modified tubulins. Methods Enzymol. 196, 478–485 https://doi.org/10.1016/0076-6879(91)96041-O (1991). 53. Kuo, Y.-W., Mahamdeh, M., Tuna, Y. & Howard, J. The force required to remove tubulin from the microtubule lattice by pulling on its α-tubulin c-terminal tail. Nat. Commun. 13, 3651 https://doi.org/10.1038/s41467-022-31069-x (2022). 54. Spark, A. et al. vlume: 3D virtual reality for single-molecule localization microscopy. Nat. Methods 17, 1097–1099 https://doi.org/10.1038/s41592-020-0962-1 (2020). 55. Littlejohn, G. R. et al. An update: improvements in imaging perfluorocarbon-mounted plant leaves with implications for studies of plant pathology, physiology, development and cell biology. Front. Plant Sci. 5 https://doi.org/10.3389/fpls.2014.0014 (2014). 56. Rosten, E. et al. Extracting biological structure and heterogeneity from the nano to the macro scale. Zenodo https://doi.org/10.5281/zenodo.22258216 (2026).
Acknowledgements
We thank R. Jungmann, S. Reinhardt, W. Legant and Y. Shi for providing and assisting with their data. This project was supported by the BBSRC, grant BB/T011823/1, (SuC) and the Royal Society University Research Fellowship scheme, URF\R1\211329 (SiC).
Funding
This project was supported by the BBSRC, grant BB/T011823/1, (SuC) and the Royal Society University Research Fellowship scheme, URF\R1\211329 (SiC).
Ethics declarations
Competing interests
The authors declare no competing interests.
Peer review
Peer review information
Nature Methods thanks Jonas Ries and the other, anonymous, reviewer(s) for their contribution to the peer review of this work. Primary Handling Editor: Arunima Singh, in collaboration with the Nature Methods team. Peer reviewer reports are available.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Extended data
Extended Data Fig. 1 Benchmarking different particle averaging approaches relative to 3D SQUASSH.
Results for a DNA orgami experimental dataset and the RESI nup96 nuclear pore data (both of which have structures biased towards a single orientation, as is common in many biological datasets) are compared for a number of different approaches. Methods based around creating a 3D model from 2D data, HoLLy and SQUASSH 2D (our current method but with 2D image input), cannot accurately reproduce 3D structures from this data, as the projection to 2D images loses information because of the biased views. In terms of the relative performance of HoLLy and SQUASSH 2D, SQUASSH 2D is a factor of 7 faster than HoLLy and produces better (though still not accurate) results. SQUASSH (3D) is faster than HoLLY and produces accurate 3D structures. CHD runs around a factor of 15-40x slower than SQUASSH (depending on size of dataset). It achieves similar quality reconstruction for the DNA origami. SQUASSH finds a distribution of tetrahedron heights 63.7 ± 12.7 nm, analysis of the bins presented in the CHD paper gives an average of 74.4 ± 12.9 nm. A manual analysis (possible because all the particles are in the same orientation) gives 63.4 ± 13.1 nm. CHD is not able to achieve reconstruction for the nuclear pore RESI data as it cannot achieve alignment. LocMoFit could not be run on DNA origami as there was not a suitable model. For the nuclear pore model, LocMoFit can fit a 32 point model with two rings to the data, where the rings can move relative to each other. It finds an average ring spacing of 59.3 ± 7.9 nm, as compared to 58.2 ± 6.5 nm for SQUASSH. Of course, as a fixed model, the form of the LocMoFit model is completely constrained by the user. The published ‘template free’ version of LocMoFit uses a two ring model to perform its initial alignment and is therefore not suitable for any other structures.
Extended Data Fig. 2 Illustration of different heterogeneity parameterisations.
Following Fig. 1 we use the Stanford Bunny as an exemplar structural model, with the primary axis aligned with x. Row 1: variable duplication along an axis. Row 2: elongation along an exis. Row 3: expansion orthongonal to an axis. Rows 4 and 5: various different angle dependent scaling orthogonal to an axis.
Extended Data Fig. 3 Variation in reconstruction quality from the RESI data with variable pixel size of the input data.
Data was rendered with variable numbers of pixels, with 8x8 xy patches (pixel size 31.2 nm), 16x16 patches (pixel size 15.6 nm), 32x32 patches (pixel size 7.8 nm), 64x64 patches (pixel size 3.9 nm), and 128x128 patches (pixel size 1.95 nm). An example of data projected into xy and xz is shown for each patch size. Output models are shown underneath, in a 3D isosurface rendering and in projection. As can clearly be seen, results from 8x8 patches are unsurprisingly poor, with 16x16 patches retrieving the basic structure but lacking detail and 32x32 patches returning all elements of the structure. There does not seem to be a clear advantage in terms of the quality of the reconstructed output between 64x64 patches and 128x128. This demonstrates that rendering at a pixel size smaller than the theoretical resolution of the technique (1 nm in xy) is not necessary to fully retrieve the structure with full accuracy, as our method is dependent on image gradients rather than isolating individual point. All scalebars are 50 nm.
Extended Data Fig. 4 Histograms showing the run-to-run variation in the distribution of the nuclear pore complex ring spacings from the RESI dataset (left) and the 4Pi-STORM dataset (right).
SQUASSH was rerun 10 times with the same parameters. The histogram bars are plotted at the mean value with the error bars as ± 1 standard deviation. The error (standard deviation) on the mean value from run-to-run variation was 1.2 nm for the RESI data and 2.9 nm for the 4Pi-STORM data. In comparison, the standard deviation of the mean distribution was 6.5 nm for the RESI data and 4.0nm for the 4Pi-STORM data. Thus the variance in the extracted structure is dominated by the sample heterogeneity, rather than variation in the structures fitted from run to run.
Extended Data Fig. 5 Performance of SQUASSH when dataset contains two different, discrete structures.
Two instances of the Stanford bunny model were created, reflected relative to each other (structure 1, structure 2 in top line). The proportion of the two different structures within the dataset was varied between 50/50 and 99/1 %. The output structure was seriously impacted by having a substantial fraction (above 5%) of the data being of a different structure. The impact of discrete differences of structure will be impacted by the proportion of different structures present, as seen here, and the degree of difference between different structures.
Extended Data Fig. 6 Effect of mismatch in size between the spacing between repeating units of a biological structure and the range of repetition distances allowed during a SQUASSH analysis.
When the allowed range of distances is larger than the underlying spacing, the underlying shape cannot be reproduced well by repeating a single shape. As a result the optimization process will produce a structure which contains multiple shapes (‘subunits’) so that when that shape is repeated it matches the underlying structure well. Each panel shows the allowed range of repetition distances and the allowed number of repeats when fitting a patch. Results from different repetition distances all reveal repeating subunits at spacings between 8 nm and 9 nm. Top left: SQUASSH optimised to a repetition distance of 43.7 nm, with 5 subunits with 8.7 nm spacing being observed. Top right: optimised to a repetition distance of 16.2 nm, with 2 subunits with an 8.1 nm spacing being observed. Bottom left: optimised to a repeating unit of 8.2 nm, with a single subunit. The constraint on the number of repetitions in the field of view and the spacing can both be left fairly wide and an approximately correct spacing value can still be obtained (bottom right, 9 nm repeat).
Extended Data Fig. 7 Repeat distance of a periodic structure is affected by the scatter in the results, demonstrated on simulated data.
Left: the 3D structure of a microtubule was simulated with different levels of noise added to the positions, and a histogram of distances between every pair of points was computed. With a small amount of added noise, there is a clear peak at 8.2 nm (indicated with the vertical line), corresponding to the repetition distance of the structure. With a large amount of added noise, the mode of the distances shifts to a slightly smaller value (around 7.3 nm). Right:SQUASSH was applied to the simulated microtubules and the graph shows repeat distance of SQUASSH repeating unit versus sigma of Gaussian scatter applied to simulated microtubule structure (400 patches were simulated and fitted).
Extended Data Fig. 8 Frequency of microtubule repeat can be detected in Fourier transforms of long patches of high quality data but not from whole dataset.
Fourier analysis of microtubules shows a significant frequency component corresponding to 8.4 nm periodicity (blue line). For this analysis, 6 straight segments of microtubles 2000 nm in length were projected on to the long axis and then rendered. The power spectra of the segments were computed and then averaged. However, if Fourier transforms of the whole dataset are taken in 256 nm segments (orange line) the repeat is not clearly visible. Therefore, for this type of structure, SQUASSH can recover the periodicity from data which could not be analysed with Fourier-based analysis.
Extended Data Fig. 9 Spacing between spectrin rings in axons found using SQUASSH.
Top row: reconstructed SMLM images of axons with SQUASSH analysis (scale bar is 10 μm). Areas to analyse were selected based on them having a single ring structure rather than multiple joined together, or crossing. Spacing values are superimposed in colour, illustrating the variation in ring spacing across the sample. Bottom row: histogram of ring spacings, with a mean value of 194 nm.
[Extended Data Fig. 10 Examples of nuclear pore complexes from[1](https://www.nature.com/articles/s41592-026-03246-z#ref-CR1 "Reinhardt, S. C. M. et al. Ångström-resolution fluorescence microscopy. Nature 617, 711–716
https://doi.org/10.1038/s41586-023-05925-9
(2023).") processed with RESI, which were identified as invalid by SQUASSH.](https://www.nature.com/articles/s41592-026-03246-z/figures/15)
Nuclear pore complexes are shown with XY and XZ projections. In all of the examples, substantial problems can be seen, such as missing sections of the ring, the upper or lower ring missing, severe distortion or segmentation errors giving spurious fluorophores. Scale bar is 100 nm.
Supplementary information
Supplementary Information (download PDF )
Supplementary Note 1, Table 1 and Figs. 1–8.
Reporting Summary (download PDF )
Peer Review File (download PDF )
Supplementary Video 1 (download MP4 )
Optimization of a structure using SQUASSH analysis. The fluorophores are initiated to random positions and then optimize over time. Left: each fluorophore is rendered as a sphere. Right: each fluorophore is rendered as a Gaussian, and a marching cubes algorithm is used to render an isosurface.
Supplementary Video 2 (download MP4 )
Demonstration of how the rotational fitting is optimized alongside the structural model and learning of the underlying manifold. SQUASSH was applied to simulated data derived from the Stanford bunny. For each element of data, fluorophore positions were derived from the mesh vertices with scatter and dropout and then a random rotation and translation was applied. The optimization was stopped at three different stages, the rotation network was extracted, and its performance was tested by inputting a new data element while smoothly varying the rotation. Rows show different stages of the optimization (top row being earliest, bottom row being latest). From left to right, the first column shows data elements being inputted. The second column shows the input projection (using the blur at that stage of the optimization), the third column shows the ground truth structural model at the pose given by the rotation network, and the fourth column shows the current structural model at the pose given by the rotation network. This demonstrates the underlying rotation manifold being learned: as the input data are rotated, the output rendering generally rotates in a similar way. The network can predict many rotations correctly at the beginning, but at some positions (especially where there is close to a reflective ambiguity), the results are not correct. However, by the bottom row, correct rotations are predicted for all poses.
Supplementary Video 3 (download MP4 )
Optimization of the structure of nup96 within the NPC. The structure is initiated with 35 fluorophores at random positions and then optimized. The postions of each fluorophore are then reseeded with a total of 700 fluorophores for the whole image, and the optimization proceeds. This process allows us to create a probability density map for fluorophore positions within nup96 that can be intuitively represented as an isosurface, without requiring knowledge of the precise number of fluorophores within a given structure. Structure derived from RESI data.
Supplementary Video 4 (download MP4 )
Deformation of nuclear pore rings is associated with relative movement of dimer components. The first three PCA deformation modes are shown, with PCA component 1 on the left, PCA component 2 in the middle, and PCA component 3 on the right. The NR ring and CR ring are shown in projection. The structure moves from the mean to 3σ for that PCA component and then back to the mean. Note that the primary variation for PCA component 1 is change in the ring spacing, which is not visible here. Relative movement of the components of the dimer is particularly clear for PCA component 3. Structure derived from RESI data.
Supplementary Video 5 (download MP4 )
Structure of spectrin rings within axons. Three repeat units are shown, with a random sampling of points within the PCA being made and then smoothly interpolating between them. Note that the quality at the top and bottom of the structure is degraded compared to the sides, as the structure is being observed in the same axial orientation every time, and therefore, the optimization cannot benefit from observations at different angles. It can be seen that the shape and size of the rings vary considerably.
Supplementary Video 6 (download MP4 )
In the telophase, the chromosomes arrive at the cell poles, and a new nuclear membrane forms around each of the sets of chromosomes. Lattice light sheet microscopy data are modeled as arising from two structures separated by a variable distance along an axis, with one structure also able to rotate relative to that axis. This allows fixed cell observations to be reordered to create a virtual dividing cell, and the distance between the two chromatin disks in each observation to be identified.
Source data
Source data file (download XLS )
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Rosten, E., Stedman, D., Chu, LY. et al. Extracting biological structure and heterogeneity from the nano to the macro scale. Nat Methods (2026). https://doi.org/10\.1038/s41592\-026\-03246\-z
- Received: 10 July 2025
- Accepted: 02 September 2026
- Published: 01 December 2026
- Version of record: 01 December 2026
- DOI: https://doi.org/10\.1038/s41592\-026\-03246\-z
Share this article
Anyone you share the following link with will be able to read this content:
Sorry, a shareable link is not currently available for this article.
Provided by the Springer Nature SharedIt content-sharing initiative
出处
- S 官方Nature Methods · RSS阅读原文 ↗
Extracting biological structure and heterogeneity from the nano to the macro scale
生成时使用了正文节选。