Abstract
Unbiased quantitative analysis of macroscopic biological samples demands fast imaging systems capable of maintaining high resolution across large volumes. Here we introduce RAPID (rapid autofocusing via pupil-split image phase detection), a real-time autofocus method applicable in every widefield-based microscope. RAPID-enabled light-sheet microscopy reliably reconstructs intact, cleared mouse brains with subcellular resolution, and allowed us to characterize the three-dimensional (3D) spatial clustering of somatostatin-positive neurons in the whole encephalon, including densely labeled areas. Furthermore, it enabled 3D morphological analysis of microglia across the entire brain. Beyond light-sheet microscopy, we demonstrate that RAPID maintains high image quality in various settings, from in vivo fluorescence imaging to 3D tracking of fast-moving organisms. RAPID thus provides a flexible autofocus solution that is suitable for traditional automated microscopy tasks as well as for quantitative analysis of large biological specimens.
This is a preview of subscription content, access via your institution
Relevant articles
Open Access articles citing this article.
-
Three-dimensional wide-field fluorescence microscopy for transcranial mapping of cortical microcirculation
Nature Communications Open Access 28 December 2022
-
Modeling a 3-D multiscale blood-flow and heat-transfer framework for realistic vascular systems
Scientific Reports Open Access 26 August 2022
Access options
Access Nature and 54 other Nature Portfolio journals
Get Nature+, our best-value online-access subscription
$29.99 per month
cancel any time
Subscribe to this journal
Receive 12 print issues and online access
$209.00 per year
only $17.42 per issue
Rent or buy this article
Get just this article for as long as you need it
$39.95
Prices may be subject to local taxes which are calculated during checkout




Data availability
The datasets acquired for this study are available at https://doi.org/10.25493/AV5J-M46.
Code availability
RAPID stand-alone code is publicly available at https://github.com/lens-biophotonics/RAPID-AF. Code used to control RAPID-enabled LSM is publicly available at https://github.com/ludovicosilvestri/RAPID_CLSM. ZetaStitcher and ilastik are available at https://github.com/lens-biophotonics/ZetaStitcher and https://www.ilastik.org, respectively. BCFind software is available at https://github.com/lens-biophotonics/BCFind2.1.
References
Ueda, H. R. et al. Whole-brain profiling of cells and circuits in mammals by tissue clearing and light-sheet microscopy. Neuron 106, 369–387 (2020).
Renier, N. et al. Mapping of brain activity by automated volume analysis of immediate early genes. Cell 165, 1789–1802 (2016).
Nassi, J. J., Cepko, C. L., Born, R. T. & Beier, K. T. Neuroanatomy goes viral! Front. Neuroanat. 9, 44 (2015).
Daigle, T. L. et al. A suite of transgenic driver and reporter mouse lines with enhanced brain-cell-type targeting and functionality. Cell 174, 465–480 (2018).
Menegas, W. et al. Dopamine neurons projecting to the posterior striatum form an anatomically distinct subclass. eLife 4, e10032 (2015).
Murakami, T. C. et al. A three-dimensional single-cell-resolution whole-brain atlas using CUBIC-X expansion microscopy and tissue clearing. Nat. Neurosci. 21, 625–637 (2018).
Tomer, R., Ye, L., Hsueh, B. & Deisseroth, K. Advanced CLARITY for rapid and high-resolution imaging of intact tissues. Nat. Protoc. 9, 1682–1697 (2014).
Royer, L. A. et al. Adaptive light-sheet microscopy for long-term, high-resolution imaging in living organisms. Nat. Biotechnol. 34, 1267–1278 (2016).
Ryan, D. P. et al. Automatic and adaptive heterogeneous refractive index compensation for light-sheet microscopy. Nat. Commun. 8, 612 (2017).
Chen, Y. et al. A versatile tiling light sheet microscope for imaging of cleared tissues. Cell Rep. 33, 108349 (2020).
Matsumoto, K. et al. Advanced CUBIC tissue clearing for whole-organ cell profiling. Nat. Protoc. 14, 3506–3537 (2019).
Li, Q., Bai, L., Xue, S. & Chen, L. Autofocus system for microscope. Opt. Eng. 41, 1289–1294 (2002).
Suda, Y., Ishizaki, A., Ohtaka, K., Akashi, A. & Hiramatsu, A. Focus detection apparatus. US patent 4,634,255 (1987).
Ebina, T. et al. 3D clustering of GABAergic neurons enhances inhibitory actions on excitatory neurons in the mouse visual cortex. Cell Rep. 9, 1896–1907 (2014).
D’Souza, R. D., Bista, P., Meier, A. M., Ji, W. & Burkhalter, A. Spatial clustering of inhibition in mouse primary visual cortex. Neuron 104, 588–600 (2019).
Ye, L. et al. Wiring and molecular features of prefrontal ensembles representing distinct experiences. Cell 165, 1776–1788 (2016).
Ripley, B. D. The second-order analysis of stationary point processes. J. Appl. Prob. 13, 255–266 (1976).
Kim, Y. et al. Brain-wide maps reveal stereotyped cell-type-based cortical architecture and subcortical sexual dimorphism. Cell 171, 456–469 (2017).
de Biase, L. M. et al. Local cues establish and maintain region-specific phenotypes of basal ganglia microglia. Neuron 95, 341–356 (2017).
Lawson, L. J., Perry, V. H., Dri, P. & Gordon, S. Heterogeneity in the distribution and morphology of microglia in the normal adult mouse brain. Neuroscience 39, 151–170 (1990).
Weisenburger, S. et al. Volumetric Ca2+ imaging in the mouse brain using hybrid multiplexed sculpted light microscopy. Cell 177, 1050–1066 (2019).
Ji, N., Milkie, D. E. & Betzig, E. Adaptive optics via pupil segmentation for high-resolution imaging in biological tissues. Nat. Methods 7, 141–147 (2010).
Gu, M. & Sheppard, C. J. R. Effects of defocus and primary spherical aberration on images of a straight edge in confocal microscopy. Appl. Opt. 33, 625 (1994).
Chakraborty, T. et al. Light-sheet microscopy of cleared tissues with isotropic, subcellular resolution. Nat. Methods 16, 1109–1113 (2019).
Guenthner, C. J., Miyamichi, K., Yang, H. H., Heller, H. C. & Luo, L. Permanent genetic access to transiently active neurons via TRAP: targeted recombination in active populations. Neuron 78, 773–784 (2013).
Chung, K. et al. Structural and molecular interrogation of intact biological systems. Nature 497, 332–337 (2013).
Costantini, I. et al. A versatile clearing agent for multi-modal brain imaging. Sci. Rep. 5, 9808 (2015).
di Giovanna, A. P. et al. Whole-brain vasculature reconstruction at the single capillary level. Sci. Rep. 8, 12573 (2018).
Pan, C. et al. Shrinkage-mediated imaging of entire organs and organisms using uDISCO. Nat. Methods 13, 859–867 (2016).
Jing, D. et al. Tissue clearing of both hard and soft tissue organs with the PEGASOS method. Cell Res. 28, 803–818 (2018).
Müllenbroich, M. C. et al. Comprehensive optical and data management infrastructure for high-throughput light-sheet microscopy of whole mouse brains. Neurophotonics 2, 041404 (2015).
Preibisch, S., Saalfeld, S. & Tomancak, P. Globally optimal stitching of tiled 3D microscopic image acquisitions. Bioinformatics 25, 1463–1465 (2009).
Frasconi, P. et al. Large-scale automated identification of mouse brain cells in confocal light sheet microscopy images. Bioinformatics 30, i587–93 (2014).
Galil, Z. Efficient algorithms for finding maximum matching in graphs. ACM Comput. Surv. 18, 23–38 (1986).
Avants, B. B. et al. A reproducible evaluation of ANTs similarity metric performance in brain image registration. Neuroimage 54, 2033–2044 (2011).
Jafari-Mamaghani, M., Andersson, M. & Krieger, P. Spatial point pattern analysis of neurons using Ripley’s K-function in 3D. Front. Neuroinform. 4, 9 (2010).
Berg, S. et al. ilastik: interactive machine learning for (bio)image analysis. Nat. Methods 16, 1226–1232 (2019).
Kreshuk, A. & Zhang, C. Machine learning: advanced image segmentation using ilastik. Methods Mol. Biol. 2040, 449–463 (2019).
Acknowledgements
The authors thank F. Del Gallo from the University of Padova (Italy) for providing mouse brain with labeled microglia, I. Tolić from the Ruđer Bošković Institute (Croatia) for providing the fluorescent Schizosaccharomyces pombe, and R. Cicchi from the National Institute of Optics (Italy) for providing the histological slides used in this study. This project received funding from the European Union’s Horizon 2020 research and innovation program under grant agreements no. 785907 (Human Brain Project) and 871124 (Laserlab-Europe), and from the H2020 EU program Excellent Science in conjunction with the European Research Council (ERC) under grant agreement ID no. 692943 (BrainBIT). The project has also been supported by the Italian Ministry for Education, University, and Research within the framework of the Flagship Project NanoMAX and of the Advance Lightsheet Microscopy Italian Mode of Euro-Bioimaging ERIC, and by Ente Cassa di Risparmio di Firenze (a private foundation). M.C.M. acknowledges a Marie Skłodowska-Curie fellowship (MSCA-IF-EF-ST grant agreement no. 842893).
Author information
Authors and Affiliations
Contributions
L. Silvestri devised RAPID; L. Silvestri, L. Sacconi and F.S.P. designed the experiments; L. Silvestri and M.C.M. implemented RAPID; L. Silvestri and G.M. developed RAPID standalone software; I.C. prepared the yeast and nematode samples; A.P.D.G. and I.C. prepared the cleared mouse brains; L. Silvestri, I.C. and A.P.D.G. performed the experiments; L. Silvestri and M.C.M. analyzed data; L. Silvestri, L.O.T., A. F. and I.C. manually annotated ground-truth data for cell localization; C.C., L.O.T., G.M. and P.F. analyzed whole-brain SST+ datasets, and performed stitching and cell localization; D.K. and A.K. analyzed microglia morphology data; and L. Silvestri and M.C.M. wrote the paper with contributions from all of the authors.
Corresponding author
Ethics declarations
Competing interests
L. Silvestri, M.C.M., L. Sacconi and F.S.P. are inventors of patent IT201600132604A1, which is related to RAPID. All other authors have no competing interests.
Additional information
Peer review information Nature Methods thanks Adam Glaser and the other, anonymous, reviewer(s) for their contribution to the peer review of this work. Rita Strack was the primary editor on this article and managed its editorial process and peer review in collaboration with the rest of the editorial team.
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Extended data
Extended Data Fig. 1 Lateral shift of pupil-split images in brightfield microscopy.
Mutual lateral displacement of the two pupil-split images in brightfield illumination settings, for two different objectives (a and b). For these measurements, histological keloid samples stained with hematoxylin and eosin were used. Left panels show examples of the image shifts, with a dashed red line to help the reader visualizing the small lateral displacements. Right panels show image shifts determined by automatic image analysis as a function of defocus; different colors identify distinct defocus stacks. A linear fit with the measured slope and a measure of fit goodness (the adjusted R2 score) is also shown.
Extended Data Fig. 2 Lateral shift of pupil-split images in epifluorescence microscopy.
Mutual lateral displacement of the two pupil-split images in epifluorescence illumination settings, for two different objectives (a and b). For these measurements, mouse brain slices stained with SYTOX Green Nucleic Acid Stain (ThermoFisher) were used. Left panels show examples of the image shifts, with a dashed red line to help the reader visualize the small lateral displacements. Right panels show image shifts determined by automatic image analysis as a function of defocus; different colors identify distinct defocus stacks. A linear fit with the measured slope and a measure of fit goodness (the adjusted R2 score) is also shown.
Extended Data Fig. 3 Lateral shift of pupil-split images in light-sheet fluorescence microscopy.
Mutual lateral displacement of the two pupil-split images in light-sheet illumination settings. For these measurements, cleared mouse brains with vasculature fluorescent filling were used. Left panel shows examples of the image shifts, with a dashed red line to help the reader visualize the small lateral displacements. Right panel shows image shifts determined by automatic image analysis as a function of defocus; different colors identify distinct defocus stacks. A linear fit with the measured slope and a measure of fit goodness (the adjusted R2 score) is also shown. Note that quite good linearity is observed over a range of 140 µm, about 70 times larger than the objective depth of focus (≈ 2 µm).
Extended Data Fig. 4 Defocus variability in clarified mouse brains.
a, Virtual slab (500 µm thick) from the brain of a thy1-GFP-M mouse. b, Average defocus for each tile, denoting a clear focal difference between the two light sheets used to illuminate the two halves of the brain, as well as variable defocusing across tiles. Scale bar, 1 mm.
Extended Data Fig. 5 RAPID-enabled LSM on uDISCO cleared mouse brain.
a, Virtual slab extracted from the whole brain of a Thy1-GFP-M mouse cleared with uDISCO. For imaging, the sample was immersed in BABB-D10 (refractive index n = 1.56). The imaging chamber surrounding the sample cuvette was filled with TDE (n = 1.52). b, defocus range (that is absolute value of maximum variation in defocus) in the different image stacks collected to reconstruct the entire volume. c, 3D rendering of a portion of stack, highlighted with the orange square in (a), together with example images taken at different depths either with or without RAPID focus correction. d, Contrast enhancement obtained using RAPID and defocus as a function of depth for the image stack shown in c, e, violin plot of the contrast enhancement shown in (d). This distribution is significantly higher than 1, with p-value < 10−5 (one-sample Student t-test, n = 2490 images). f, violin plot of the defocus across the entire tomography volume (n = 1040 defocus positions). Scale bars: 1 mm a, and 100 μm c,. In the violin plots shown in e,f, data are also presented as box plots with minima at 5 percentile, maxima at 95 percentile, center at 50 percentile, and bounds of box at 25 and 75 percentile, respectively.
Extended Data Fig. 6 RAPID-enabled LSM on PEGASOS cleared mouse brain.
a, Virtual slab extracted from the whole brain of a Thy1-GFP-M mouse cleared with PEGASOS. For imaging, the sample was immersed in BB-PEG (refractive index n = 1.543). The imaging chamber surrounding the sample cuvette was filled with TDE (n = 1.52). b, defocus range (that is absolute value of maximum variation in defocus) in the different image stacks collected to reconstruct the entire volume. c, 3D rendering of a portion of stack, highlighted with the orange square in (a), together with example images taken at different depths either with or without RAPID focus correction. d, Contrast enhancement obtained using RAPID and defocus as a function of depth for the image stack shown in (c) e, violin plot of the contrast enhancement shown in d, This distribution is significantly higher than 1, with p-value < 10−5 (one-sample Student t-test, n = 1600 images). f violin plot of the defocus across the entire tomography volume (n = 1248 defocus positions). Scale bars: 1 mm (a), and 100 μm c, In the violin plots shown in (e,f), data are also presented as box plots with minima at 5 percentile, maxima at 95 percentile, center at 50 percentile, and bounds of box at 25 and 75 percentile, respectively.
Extended Data Fig. 7 Multi-color RAPID autofocusing.
a, On the left, 3D rendering of a stack imaged in two channels (GFP and PI, with RAPID autofocusing operating on PI channel). On the right, example images of both channels taken at different depths, either with or without RAPID focus correction. Scale bars: 200 μm (rendering), 100 μm (insets). b, RAPID defocus in the stack, computed using the GFP or PI channel, respectively. c, Violin plot of the discrepancy between defocus computed using the two channels (n = 40 defocus points). In the same panel, data are also presented as box plots with minima at 5 percentile, maxima at 95 percentile, center at 50 percentile, and bounds of box at 25 and 75 percentile, respectively. The same graph reports also the thickness of the light sheet.
Extended Data Fig. 8 RAPID autofocusing allows robust cell localization.
a,Virtual slab extracted from the whole brain of a FosTRAP mouse. b, Difference in cell counts between stacks imaged with RAPID autofocus and the same imaged without defocus correction. c, defocus range in the different image stacks collected to reconstruct the entire volume. d, 3D rendering of a stack, highlighted with the green square in (b). e, high-resolution 3D rendering of the portion of stack highlighted with the red parallelepiped in (d), imaged with RAPID autofocus. (f) the same volume shown in e, imaged without defocus correction. g, difference in cell counts (RAPID – No AF) versus defocus, calculated for subvolumes of 1 × 1 × 0.4 mm3. h, relative difference in cell counts (RAPID – No AF) versus defocus, calculated on the same subvolumes. The graph reports also Pearson’s correlation coefficient r between the two variables and the probability p that the observed correlation is due to chance. Scale bars: 1 mm (a, b, c, d) and 100 μm (e, f).
Extended Data Fig. 9 Spatial distribution of SST+ cells.
Coronal slices taken at different anterior/posterior positions, showing density heatmap (left half), original grayscale image (right half, gamma corrected to reduce dynamic range). Contours from Allen brain Common Coordinate Framework (CCF v3) are superimposed. Consistently with previous reports18, SST cortical neurons are mainly located in layer 4. Numbers represents A/P bregma. Scale bar, 1 mm.
Extended Data Fig. 10 Microglia segmentation across multiple brain areas.
Representative images of microglia cells from different mouse brain areas, together with the results of the Ilastik segmentation. Somata are depicted in magenta, processes in green. Scale bar, 50 μm; scale is the same for all images.
Supplementary information
Supplementary Information
Supplementary Notes 1–8, Methods, Tables 1–4, Figures 1–11, Video Legends, References in Supplementary Notes and Methods.
Supplementary Video 1
Mutual lateral motion of the two pupil-split images as a function of defocus. The amount of defocus is indicated in the upper left corner. A reference target (R1L3S2P, Thorlabs) was used to avoid any potential specimen-induced artifact.
Supplementary Video 2
Image stack from a cleared mouse brain with vasculature stained, acquired with light-sheet microscopy, using RAPID (left) or with a fixed focal position (right). The stack is the same shown in Fig. 1h (main text). Imaging depth inside the tissue is reported in the upper left corner. Scale bar, 20 μm.
Supplementary Video 3
Image stack from the cleared brain of a transgenic mouse expressing tdTomato in SST+ neurons, acquired with RAPID-enabled LSM. Imaging depth inside the tissue is reported in the upper right corner. Scale bar, 100 µm.
Supplementary Video 4
Image stack from the cleared brain of a transgenic mouse expressing GFP in microglia cells, using RAPID (left) or with a fixed focal position (right). Imaging depth inside the tissue is reported in the upper right corner. Scale bar, 100 µm.
Supplementary Video 5
Image stack from the brain of a thy1-GFP-M mouse, cleared with uDISCO, using RAPID (left) or with a fixed focal position (right). The stack is the same shown in Extended Data Fig. 5. Imaging depth inside the tissue is reported in the upper right corner. Scale bar, 100 µm.
Supplementary Video 6
Image stack from the brain of a thy1-GFP-M mouse, cleared with PEGASOS, using RAPID (left) or with a fixed focal position (right). The stack is the same shown in Extended Data Fig. 6. Imaging depth inside the tissue is reported in the upper right corner. Scale bar, 100 µm.
Supplementary Video 7
Long-term bright-field imaging of S. cerevisiae cell culture using RAPID (left) or with a fixed focal position (right). Elapsed time is indicated in the upper left corner as hours:minutes. Scale bar, 1 µm.
Supplementary Video 8
Long-term epi-fluorescence imaging of S. pombe cell culture using RAPID (left) or with a fixed focal position (right). Elapsed time is indicated in the upper left corner as hours:minutes. Scale bar, 1 µm.
Supplementary Video 9
Tracking of freely moving C. elegans in bright-field illumination, using RAPID (left) or with a fixed focal position (right). In the RAPID panel the axial position of the stage is used to reconstruct the 3D trajectory of the worm. The movie is shown at double speed with respect to real time.
Rights and permissions
About this article
Cite this article
Silvestri, L., Müllenbroich, M.C., Costantini, I. et al. Universal autofocus for quantitative volumetric microscopy of whole mouse brains. Nat Methods 18, 953–958 (2021). https://doi.org/10.1038/s41592-021-01208-1
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1038/s41592-021-01208-1
This article is cited by
-
Three-dimensional wide-field fluorescence microscopy for transcranial mapping of cortical microcirculation
Nature Communications (2022)
-
Modeling a 3-D multiscale blood-flow and heat-transfer framework for realistic vascular systems
Scientific Reports (2022)