Abstract
Mapping immediate early gene (IEG) expression across intact mouse brains allows for unbiased identification of brain-wide activity patterns underlying complex behaviors. Accurate registration of sample brains to a common anatomic reference is critical for precise assignment of IEG-positive (“active”) neurons to known brain regions of interest (ROIs). While existing automated voxel-based registration methods provide a high-throughput solution, they require substantial computing power, can be difficult to implement and fail when brains are damaged or only partially imaged. Additionally, it is challenging to cross-validate these approaches or compare them to any preexisting literature based on serial coronal sectioning. Here, we present the open-source R package SMART (Semi-Manual Alignment to Reference Templates) that extends the WholeBrain R package framework to automated segmentation and semi-automated registration of intact mouse brain light-sheet fluorescence microscopy (LSFM) datasets. The SMART package was created for novice programmers and introduces a streamlined pipeline for aligning, registering, and segmenting LSFM volumetric datasets across the anterior-posterior (AP) axis, using a simple “choice game” and interactive menus. SMART provides the flexibility to register whole brains, partial brains or discrete user-chosen images, and is fully compatible with traditional sectioned coronal slice-based analyses. We demonstrate SMART’s core functions using example datasets and provide step-by-step video tutorials for installation and implementation of the package. We also present a modified iDISCO+ tissue clearing procedure for uniform immunohistochemical labeling of the activity marker Fos across intact mouse brains. The SMART pipeline, in conjunction with the modified iDISCO+ Fos procedure, is ideally suited for examination and orthogonal cross-validation of brain-wide neuronal activation datasets.
- activity mapping
- brain-wide activity mapping
- immediate early gene
- light sheet microscopy
- neuronal ensembles
- tissue clearing
Significance Statement
Immediate early genes (IEG) are invaluable for revealing the structure-activity-function relationships of different brain regions. By leveraging the activity-dependent expression of IEGs (e.g., Fos), brain activity in mice can be associated with recent experiences. The combination of advances in tissue clearing, immunolabelling, and volumetric fluorescent imaging provide the methodology to extract brain-wide imaging datasets of IEG expression. Automated pipelines can analyze these datasets, but often exclude accessible validation checkpoints. There is a need for computational tools that streamline analysis of such datasets and include human checkpoints for orthogonal cross-validation of automated approaches. Addressing this gap, we introduce SMART, an open-source user-friendly R package, which builds on existing registration and automated cell counting methods, to facilitate whole-brain IEG mapping in mice.
Introduction
Neural activity mapping using immediate early gene (IEG) expression is invaluable for the identification of brain-wide activity patterns underlying behavior (Renier et al., 2016; Ye et al., 2016). Recent advances in whole-mount tissue clearing and immunohistochemistry (IHC; Ertürk et al., 2011, 2012; Renier et al., 2014; Susaki et al., 2014; Lee et al., 2016; Ueda et al., 2020b), coupled with improvements in volumetric fluorescent imaging (Reynaud et al., 2008; Power and Huisken, 2017) and open-source brain mapping pipelines (Renier et al., 2016; Fürth et al., 2018), have made it possible to analyze IEG expression across intact brains and identify novel structure-activity-function relationships at multiple spatial scales (DeNardo et al., 2019; Franceschini et al., 2020; Kimbrough et al., 2020; Ueda et al., 2020a).
A key technical challenge is the precise registration of experimental brains to a common reference atlas before assignment of detected IEG-positive (“active”) neurons to known anatomic regions of interest (ROIs). Existing automated voxel-based registration methods provide a high-throughput solution, but require substantial computing power, are challenging for novice programmers, and fail when brains are incomplete or damaged during staining. Additionally, these approaches provide regional counts spanning the entire anterior-posterior (AP) axis and are challenging to cross-validate or compare against classical “coronal-chunk” activity mapping studies using serial sections around ROIs (DeNardo et al., 2019; Kimbrough et al., 2020, 2021).
The R package WholeBrain (Fürth et al., 2018) provides an elegant alternative that combines semi-automated user-refinable registration with automated segmentation of vectorized coronal reference atlas plates and can accommodate flexible imaging resolutions. However, WholeBrain is not optimized for registration of entire mouse brain imaging datasets for three main reasons. First, users are required to manually identify anatomic coordinates along the AP axis that correspond to the reference atlas plate. Second, as segmentation is performed on individual 2D images and then assigned to 3D space, for datasets with a high-resolution z-step size, segmentation can result in duplicate counts across adjacent images. Third, WholeBrain does not account for nonuniformities in tissue morphing along the AP axis during staining and clearing when making z assignments.
To address these gaps, we developed an open-source R package called SMART (Semi-Manual Alignment to Reference Templates), as an extension to the existing WholeBrain package. SMART provides a streamlined pipeline for registration, segmentation and analysis of high-resolution partial and whole-brain imaging datasets. SMART is built with the novice programmer in mind, includes a console interface to guide users through analysis and visualization, and requires minimal programming experience. Notably, SMART allows registration of discrete, user-chosen image stacks across a mouse brain (termed partial datasets) and provides regional counts that can be directly compared against studies based on coronally sectioned brain slice imaging datasets (Crombag et al., 2002; Koya et al., 2009; Bossert et al., 2011, 2012; Navailles et al., 2015; Pelloux et al., 2018; Campbell et al., 2019; Warren et al., 2019; Kane et al., 2021).
Here, we demonstrate the key features of SMART using example mouse whole-brain activity-mapping datasets. We present a modified version of the iDISCO+ immunolabeling and clearing protocol for uniform whole-brain Fos labeling, illustrate the application of SMART to user-guided registration and segmentation of these datasets, and demonstrate new visualization tools for graphical representation of detected Fos-positive (behaviorally active) cells. The goal of SMART is to make brain-wide activity analysis accessible to researchers with limited computational infrastructure and programming expertise. To this end, we provide a static docker image of SMART so that new users can test out SMART’s core functions before installing WholeBrain and SMART. We also provide a dedicated webpage with detailed installation instructions, step-by-step video tutorials, and a sample dataset (both raw and fully analyzed data) as a training resource for new users. We discuss the utility of SMART for expert cross-validation of automated whole-brain analysis pipelines such as ClearMap.
Materials and Methods
Subjects and behavior
We used two three- to six-month-old CD-1 male mice (Charles River Labs, CD-1 IGS; strain code 022) and one Thy-1 GFP transgenic (The Jackson Laboratory, B6; CBA-Tg (Thy1-EGFP) SJrs/NdivJ; stock 011070) mouse that we maintained on a reverse 12/12 h light/dark cycle (lights off at 8 A.M.). We performed all surgical procedures in accordance with the Guide for the Care and Use of Laboratory Animals (Ed 8, 2011), under protocols approved by the local Animal Care and Use Committee. CD-1 mice used for example datasets were taken from a cohort that underwent operant aggression self-administration as previously described (Golden et al., 2017, 2019a,b), Mouse 1 (control) was perfused directly from home cage and Mouse 2 (test) was perfused 90 min after a reinforced aggression test.
Tissue clearing and immunolabeling using modified iDISCO+
We used a modified version of the iDISCO+ protocol to achieve uniform Fos immunostaining and tissue clearing across intact mouse brains. Details of the sample pretreatment, immunolabeling and clearing steps are provided in the sections below. The timeline for the entire procedure is shown in Table 1, and a list of reagents and suggested suppliers is shown in Table 2. We also indicate time ranges where appropriate to allow flexibility in scheduling.
Sample collection
We anesthetized the mice with isoflurane and perfused transcardially with 200 ml of 0.1 m PBS (pH 7.4) followed by 400 ml of 4% paraformaldehyde (PFA) in PBS (4% PFA, pH 7.4). We extracted brains and postfixed them in 4% PFA (4°C, overnight). We then transferred brains to 15 ml conical polystyrene centrifuge tubes containing PBS with 0.1% sodium azide for long-term storage at 4°C or processed them on the next day.
Sample pretreatment with methanol (MeOH)
All sample pretreatment steps were performed in 15 ml conical tubes while gently mixing on a rotating mixer (Daigger Scientific, EF24935) and sample tubes were filled to the top with solutions to prevent oxidation. Following equilibration to room temperature (RT), we first washed brains in PBS (RT, 3 × 30 min). We then dehydrated samples using ascending concentrations of MeOH in deionized H2O (dH2O), 0%, 20%, 40%, 60%, 80%, 100%, 100% MeOH (RT, 1.5 h each). Next, we performed delipidation using 66% dichloromethane (DCM)/33% MeOH (RT, 1 × 8 h followed by overnight). We then washed samples in 100% MeOH (RT, 2 × 3 h each), before bleaching in a chilled hydrogen peroxide (H2O2)/H2O/MeOH solution (1 volume 30% H2O2 to 5 volumes 100% MeOH) overnight at 4°C. Next, we rehydrated samples using descending concentrations of MeOH in dH2O, 80%, 60%, 40%, 20%, 0% MeOH (RT, 1.5 h each). We then washed the samples first in PBS at RT (1 × 1 h), then twice in a buffer containing PBS with 0.5% Triton X-100 (PTx0.5) at 37°C (2 × 1 h, followed by 1 × overnight).
Immunolabeling
Immunolabeling was performed in 1.5-ml Nalgene cryotubes while gently mixing on the rotating mixer and samples were transferred to 15-ml conical centrifuge tubes for permeabilization, blocking and wash steps. We used a buffer containing PBS with 0.5% Tween 20, and 10 μg/ml heparin (PTwH0.5) for all wash steps and sample containers were filled to the top with solutions to prevent oxidation. We first incubated samples in permeabilization buffer containing 78.6% PTx0.5, 1.4% glycine, and 20% dimethyl sulfoxide (DMSO), and then in blocking buffer containing 84% PTx0.5, 6% normal donkey serum (NDS), and 10% DMSO (37°C, 2 d each). Next, we incubated samples in primary (1°) antibodies [anti-cFos: phospho-c-Fos (Ser32) (D82C12) XP Rabbit mAb, Cell Signaling Technology, #5348S Lot 1; anti-GFP, RRID:AB_10557109; green fluorescent protein (GFP) Antibody, Aves Labs GFP-1020, lot #GFP697986, RRID:AB_10000240] diluted in 1° antibody buffer containing 92% PTwH0.5, 3% NDS, and 5% DMSO (37°C, 7 d). We started with a 1:1000 dilution of antibody on day 1 and supplemented with four equal booster doses of 1° antibody (4 × 1 d) for a final dilution of 1:200 on day 5. After one week of 1° antibody treatment (five additions over 5 d plus two extra days), we performed washes in PTwH0.5 over 4 d (37°C, 4 × 12 h followed by 2 × 1 d). We then incubated samples in secondary (2°) antibodies [Alexa Fluor 647 AffiniPure F(ab')2 fragment donkey anti-rabbit IgG (H+L), Jackson ImmunoResearch, 711-606-152, lot #128806, RRID:AB_2340625; Alexa Fluor 488 AffiniPure F(ab')2 fragment donkey anti-chicken IgY (IgG; H+L), Jackson ImmunoResearch, 703-546-155, lot #127495, RRID:AB_2340375] diluted in 2° antibody buffer containing 97% PTwH0.5, and 3% NDS (37°C, 7 d). We started with a 1:500 dilution of antibody on day 1 and supplemented with four equal booster doses of 2° antibody (4 × 1 d) for a final dilution of 1:100 on day 5. After one week of 2° antibody treatment (five additions over 5 d plus two extra days), we performed washes in PTwH0.5 over 4 d (37°C, 4 × 8–12 h followed by 2 × 1 d).
Clearing
Initial clearing steps were performed in 15-ml conical polystyrene centrifuge tubes while gently mixing on the rotating mixer, and sample tubes were filled to the top with solutions to prevent oxidation. We first dehydrated samples using ascending concentrations of MeOH in dH2O, 0%, 20%, 40%, 60%, 80%, 100%, 100% MeOH (RT, 1.5 h each). We then performed delipidation using 66% DCM + 33% MeOH (RT, 2 × 3 h, followed by 1 × overnight). Next, we washed the samples in 100% DCM (RT, 2 × 3 h) to remove MeOH and then incubated them in dibenzyl ether (DBE) for clearing and refractive index matching (RT, 2 × 3 h, followed by 1 × overnight).
Light-sheet fluorescence microscopy (LSFM) imaging
We used a light sheet microscope (UltraMicroscope II, LaVision Biotec) with an attached camera (Andor Neo sCMOS) and a 2×/0.5 NA objective (MV PLAPO 2XC, Olympus) with noncorrected dipping cap. Cleared tissue was imaged coronally (olfactory bulb side up) using a customized sample platform. We took images in the 488-nm (autofluorescence or Thy1-GFP signal) and 647-nm (Fos) channels and used a z-step size of 2.5 μm. We used Imspector Microscope software (v1.44) to control image acquisition with the following parameters: exposure = ∼100 ms, sheet NA = 0.156 (5 μm), sheet width = 80%, zoom = 0.63×, dynamic horizontal focus = 7, dynamic horizontal focus processing = blend, merge light-sheet = blend.
Image preprocessing
We used the 3D rendering software Arivis Vision 4D (3.0.0) to qualitatively check for skew in the coronal alignment in our imaging dataset. We manually corrected alignment to the coronal plane using the software’s Data Transformation Gallery and exported the images as TIFF files.
SMART R package development
We wrote all package functions in base R (R Core Team, 2019). We wrote package documentation with roxygen2 (Wickham et al., 2018). We used the magick package (Ooms, 2018) to easily load, save, and modify images; to track function durations, we used the tictoc package (Izrailev, 2014). We used the rgl (Adler et al., 2019), misc3D (Feng and Tierney, 2013), and sunburstR (Bostoc et al., 2019) packages to generate 3D interactive plots, while we used ggplot2 to generate morph plots along the AP axis. We used d3r (Bostock et al., 2019) to easily convert data frames in R into JSON hierarchies. We included these packages, along with WholeBrain (Fürth et al., 2018) as dependencies in SMART. We also include a dependency on the devtools package (Wickham et al., 2019) to facilitate easy installation from GitHub. Finally, we used the Shiny package (Chang et al., 2018) to create an interactive web applet to display our example dataset (https://smartrpackage.shinyapps.io/smart_sample_dataset).
Package installation and Docker image
A list of online resources for installation and use of SMART and its dependencies are provided in Extended Data Table 1-1. We include a static docker image so new users can test the core features of SMART and its applicability to their data. We recommend that long-term users and those with large datasets follow the online instructions provided to install WholeBrain and SMART natively on their computers within an R development environment (e.g., RStudio).
Extended Data Table 1-1
A list of the online video tutorials available for different aspects of the pipeline. Detailed descriptions of each tutorial component are listed. Download Table 1-1, DOCX file.
Data storage and user reference material
Our compressed raw example image dataset is provided online at https://osf.io/y9uax/, courtesy of The Open Science Framework, a free online project management repository. It is easily extractable using 7-Zip, an open-source file archiver.
Results
Pipeline features
SMART builds on the WholeBrain package to process intact whole and partial brain datasets (Fig. 1A). Key improvements include: (1) extensive video tutorials (Extended Data Table 1-1) and written documentation to support SMART package installation and implementation; (2) a unified setup function to define parameters before registration, segmentation, and anatomic assignment (forward warp); (3) a user-friendly console interface during registration for easy addition, modification, and removal of correspondence points or reversion to the previous modification; (4) nonuniform AP deformation is accounted for using semi-manual alignment to user-defined “reference” atlas templates; (5) analysis steps are looped through the entire image dataset with simple function calls; (6) duplicate cell counts assigned to adjacent z-planes during 2D segmentation are identified and removed, extending WholeBrain segmentation to 3D volumes; (7) data output at each step is saved and organized in a standardized format that allows modifications without restarting the pipeline; (8) additional SMART functions provide new ways to parse and visualize data across ROIs. A comprehensive list of all SMART functions is provided in the package documentation and detailed in the online tutorial. We highlight some key features in depth in the remainder of this section.
Software installation
Installation of the SMART package is simple, and accomplished with a single command using the devtools package in R. However, since WholeBrain is a SMART package dependency, it must be preinstalled. We include links to up-to-date instructions for WholeBrain installation on Linux, Windows, and Mac-based operating systems on the package website (https://sgoldenlab.github.io/SMART/index.html). Additionally, to facilitate quicker access to the pipeline to trial WholeBrain and SMART functions, we used Docker (Merkel, 2014), a platform for software virtualization, and created a Linux-based static docker image with WholeBrain and SMART prepackaged. The website also includes instructions to download and run a container of our docker image, a video tutorial of the installation, and our recommendations regarding its usage.
Setup
Analysis parameters are stored in a single variable list created by running the interactive function, setup_pl(). All stored parameters are easily modifiable, and this variable list is the main input necessary for all downstream analysis. The function im_sort() orders image paths based on user-defined, flexible, microscope file naming conventions, and the function get_savepaths() generates standardized subdirectories for analysis outputs.
AP alignment
SMART corrects nonlinear relationships between the reference atlas and imaged dataset in the AP axis by interpolating between a subset of user-aligned references plates (Fig. 2A). First, the start and end images in the dataset are manually assigned AP coordinates by comparing against a standard atlas. We provide an example atlas (accessible through the tutorial website) based on the Allen Mouse Common Coordinate Framework plates used in the WholeBrain package. Next, users specify the AP coordinates of internal reference template plates with histologic landmarks that are either most familiar or most relevant to their experiment. If unspecified, they default to seven suggested plates (+1.91, +1.10, −0.42, −0.93, −1.94, −2.95, −3.96 mm bregma) across the AP axis. Table 3 provides descriptions of suggested anatomic landmarks as a guide for users to identify these default coordinate plates.
The selected internal reference templates are aligned to the imaging data through an interactive “choice game” where three image options are presented alongside the reference atlas template (Fig. 2B). The center image is estimated based on interpolation of the first and last aligned image, while the left and right images are further anterior and posterior options, respectively. The choice presentations become progressively closer to each other when the user chooses the middle image, while a choice of the right or left image sets them as the new middle image during the next choice cycle. The default progression of z-step choices between consecutively presented images for each coordinate is 200, 100, 30, and 10 images, although this progression is user-modifiable. Once all internal reference templates have been aligned, users can run a midpoint check (Fig. 2C) to confirm alignment and play the choice game again if needed. All intermediate AP coordinates are estimated by interpolating between reference templates.
We demonstrate the utility of the choice game by comparing the difference between predicted AP coordinates of images based on simple linear interpolation, a strategy used in base WholeBrain, and their actual coordinates following the choice game (Fig. 3A). Choice of images that aligned accurately to the reference plates were based on detailed inspection of the anatomic landmarks listed in Table 3. Several images differed as much as 300 μm from their predicted AP values, enough to cause significant errors in assignment of detected Fos-positive cell counts to the correct anatomic regions (Fig. 3B). We provide a plotting function after users play the choice game to show the extent of nonlinear deformation in iDISCO+ processed brain samples along the AP axis relative to the Allen Mouse Brain Atlas (Fig. 3C).
Interactive registration improvement
In the base WholeBrain package, removing, changing, or adding registration correspondence points can be tricky for new users as each change requires a separate function call, and it is not possible to revert to a previous state. When registering large volumes with small image z-steps, this is prohibitive. SMART incorporates all steps into a single registration function, regi_loop() that provides an interactive console interface, allows reverting to the last modification, automatically loops through selected atlas registration plates (Fig. 4A), and saves the output of each successful atlas registration (Fig. 4B).
Automated segmentation, duplicate cell count cleanup, and forward warping
The features of interest segmented by WholeBrain are defined by parameters assigned to a segmentation filter. Using the filter as an additional input, SMART automatically loops through the entire image dataset and segments according to the filter parameters. For datasets with a high-resolution z-step, a major issue is the segmentation of the same cell across multiple adjacent images. The SMART function clean_duplicates() corrects for inaccurate artificially inflated cell counts with the dataset based on user-defined distance thresholds in the z-axis and the x-y-axes. The central position of the cell body is marked in the z-position containing the maximum intensity values while duplicate counts across other images are erased. The function forward_warp() loops the WholeBrain warping function through the entire dataset and assigns anatomic x-y-z-positions to corrected segmentation data.
Pipeline validation with intact cleared brain LSFM dataset
We first validated our modified iDISCO+ clearing approach (Fig. 5A) and immunolabeled the IEG Fos throughout the intact tissue of a Thy-1 GFP transgenic mouse (Fig. 5B). We then cleared and immunolabeled Fos in male outbred CD-1 mice (Fig. 5E, Mouse 1). We used SMART to correct AP deformation (choice game), manually correct registration misalignments in the autofluorescence channel (488 nm) across all atlas plates (Fig. 5C). We then segmented cell bodies in the Fos channel (647 nm), corrected for duplicate segmentation objects, and performed the forward warp of corrected counts onto atlas space (Fig. 5D).
Data organization and visualization
SMART includes additional functions for visualization of analysis outputs. The function get_table() creates a table displaying all region acronyms, region cell counts, and region cell count percentages in the dataset, while get_rois() extracts only user-specified ROIs from the main dataset. These SMART functions can be combined with existing WholeBrain visualization functions to generate interactive 3D renderings and region cell count plots of user-specified ROIs. We demonstrate these features in our example dataset by generating a 3D rendering of various limbic regions (Fig. 6A) and a region cell count plot of the PFC (Fig. 6B). In addition to the normalized morph plot along the AP axis (Fig. 3C), we demonstrate an interactive sunburst plot showing region cell counts and hierarchical structural relationships as an additional data visualization feature (Fig. 6D). We provide an interactive web applet (https://smartrpackage.shinyapps.io/smart_sample_dataset) for sharing and 3D visualization of SMART outputs.
Discussion
We present SMART, an open-source R package extending the functionality of the WholeBrain analytical pipeline to partial and brain-wide activity mapping using mouse LSFM datasets. Implementation of the SMART analysis pipeline does not require prior programming expertise. Users are guided through the analysis setup process and presented with an intuitive console interface where needed. The modified registration, segmentation, and forward warp functions automatically loop through the entire imaging dataset, a valuable feature when analyzing large neuroimaging datasets. SMART also automatically creates and saves outputs in standardized data subdirectories, facilitating organized storage and sharing of datasets. Further, SMART accounts for nonuniform morphing along the AP axis in cleared tissue datasets and corrects for possible duplication of cell counts during 2D segmentation. We also present a modified Fos immunostaining protocol for uniform labeling and demonstrate SMART’s key features using an example mouse LSFM dataset generated following this protocol. While we describe SMART’s application to a whole mouse brain LSFM Fos dataset, many of these features can be implemented on LSFM scans of partial brains or even images of single sections and are not restricted to the staining technique or image acquisition parameters used in this manuscript.
An important consideration when using the SMART pipeline is the speed of analysis. The analysis bottleneck of the base WholeBrain package is the manual correction of registered atlas plates. While this is the most time-intensive step and is less efficient than automated methods (Ni et al., 2021), it enables interactive improvement of registration based on users’ expertise. Users can save significant time registering an entire brain using SMART’s interactive console interface. Using a comparable dataset to the one presented, we estimate that a well-trained user of the SMART pipeline can accurately register an entire mouse brain following 3–4 d of dedicated registration. The remaining segmentation, duplicate cell count cleaning, and forward warping processes can be completed within 1 d. A notable feature of SMART is that it allows users to save intermediate stages of analysis and return to them when convenient. This makes it possible for multiple users to work on the same data in tandem and spread the time commitment across entire teams.
The main determinant of the accuracy of region cell count mapping is the pipeline user’s own anatomic knowledge. This remains both an advantage and disadvantage of the SMART-WholeBrain approach compared with other typically intensity-based voxel registration approaches: users can easily evaluate registration quality and correct for misalignments, but between-user reproducibility in registrations requires that users have similar anatomic expertise. However, we propose that using these approaches in parallel provides the best outcome. An initial registration pass using automated voxel-based approaches like ClearMap (Renier et al., 2016), can provide a broad view of activity patterns across the entire brain and highlight zones along the AP axis with ROIs. This can be followed up by user-guided fine-tuned registration in SMART (using coronal plates restricted to these identified AP axis limits) to produce detailed counts of individual regional subdivisions. These counts can serve both as an orthogonal cross-validation of ClearMap outputs and allow further isolation of target region boundaries in the AP axis. Additionally, the results are easily compared with prior classical slice section-based IEG studies, and provide refined stereotaxic targets for resulting chemogenetic, optogenetic, and pharmacological approaches to test for a functional role of any detected target regions. SMART outputs may also be visualized and shared through dedicated brain visualization software such as BrainRender (Claudi et al., 2021).
Mapping of cell distributions across intact brain tissue is becoming an integral approach toward understanding the activity and function of neural circuits at the level of the connectome. The resurgence in interest in tissue clearing techniques within the last decade has driven new advancements in high resolution volumetric imaging methodologies, such as serial two-photon tomography (Ragan et al., 2012) and LSFM (Dodt et al., 2007). Such methods faithfully capture biological information at sub-cellular resolution, but in doing so, they generate unwieldy sizes in neuroimaging datasets. A key bottleneck is the registration and cellular segmentation of these massive datasets to a standardized atlas to enable across-subject and across-experimental group comparisons.
While automated voxel-based registration approaches provide a high-throughput solution, they typically have high computational demands, require programming expertise, and rarely allow for user-evaluation or manual correction. Presently, the most common voxel-based approach is the use of ClearMap (Renier et al., 2016; Kirst et al., 2020), recently updated to ClearMap2. In contrast, WholeBrain’s spline-based computational framework is versatile because of its minimal processing requirements, scale-invariant registration, and manual registration correction capabilities. To accommodate these technical differences, minimum processing requirements between these are approaches are large: ClearMap requires high-level multi-CPU processing and minimum of 256 GB RAM while WholeBrain accommodates standard CPU processing and a minimum of 32 GB RAM. Other technical differences include the level of registration automation, where ClearMap is fully automated and WholeBrain is semi-automated, and programming environment, where ClearMap is written in Python and WholeBrain in R. These considerations may help users select the more appropriate approach for analysis of their datasets. However, the WholeBrain package was primarily built to analyze serial sections across the AP axis with wide z-spacing and is not optimized for analysis of high z-resolution LSFM datasets.
SMART extends WholeBrain’s functionality in this domain, and streamlines the user experience through installation, setup, registration, segmentation and analysis. SMART lowers the barrier to entry by guiding users through each individual step of installation and analysis, includes qualitative checks during each step of the process, and provides simple tools for visualization of results. It retains the core strengths of WholeBrain (e.g., low processing requirements, user-guided registration correction) and adds new functions to support analysis and visualization of partial and whole mouse brain LSFM datasets.
We expect the SMART package will enhance the accessibility of the base WholeBrain package and encourage more users to undertake neural mapping projects, whether using full brain or partial brain datasets. To this end, we include a detailed website to guide new users through installation of the necessary software and package dependencies and provide step-by-step instructions and video tutorials (Extended Data Table 1-1) of SMART’s key functions using a downloadable example dataset. We also include a docker image installation option with WholeBrain and SMART prepackaged together for easier accessibility. We also provide our pipeline output as a convenient web applet for interactive visualization. The package website and description are available at https://sgoldenlab.github.io/SMART/ and also as the Extended Data 1.
Extended Data 1
SMART code. Download Extended Data 1, ZIP file.
Acknowledgments
Acknowledgments: We thank Yavin Shaham and Bruce Hope and their lab members for their help with this project, Lauren E. Komer and Vadim Kashtelyan for their technical assistance, Olivia Drake for her testing and feedback on the Docker installation instructions of the SMART package, and the NIDA Histology Core and staff for their support.
Footnotes
The authors declare no competing financial interests.
This work was supported by National Institute on Drug Abuse (NIDA) Intramural Research Program funds to the labs of Yavin Shaham and Bruce Hope, funding from the National Institutes of Health Center for Compulsive Behaviors (R.M.), the PRAT Grant 1FI2GM117583-01 (to S.A.G.), and NIDA Grants P30DA048736, R00DA045662, 1UG3DA053802-01, and 1R01DA054317-01 (to S.A.G.), and the National Alliance for Research on Schizophrenia and Depression Young Investigator Award 27082 (to S.A.G.).
This is an open-access article distributed under the terms of the Creative Commons Attribution 4.0 International license, which permits unrestricted use, distribution and reproduction in any medium provided that the original work is properly attributed.