3.1. Microglial Morphology: Applications and Limitations in Neuroimmune Research
Growing interest in how diverse cell types may interact in a physical manner (i.e., structural changes) to promote functional changes in brain circuits has ignited our interest in exploring and refining approaches to study cellular morphology. Due to the heterogeneity of structure among different cell types, our current approach specifically targets microglia. Many platforms exist for the detection and subsequent classification of cellular morphology. However, they range in their ability to capture various aspects of microglial morphology, with the amount of information gathered limited by a balance between throughput and detail. Here, we demonstrate the use of Cell Select-3DMorph, a high-throughput method for characterizing microglial morphology that retains high fidelity offered by three-dimensional analyses.
The following sections contain discussion of techniques for image acquisition, morphometric processing, and data analyses, that can be applied to study microglia morphology. Through rigorous investigation of microglial morphology in models of health and disease, we aim to appreciate the consequential, and often nuanced, role of these cells in the development and persistence of neuropsychiatric disease.
3.2. Unbiased Image Acquisition Methodology
Morphological analyses rely heavily on image quality, resolution, and unbiased acquisition from a region of interest. The NAc is a subcortical brain structure known primarily for its roles in motivated behavior and as a motor-limbic interface that mediates goal-directed behaviors [
12,
13,
14]. A subregion within the NAc, the NAcore, undergoes long-lasting synaptic plasticity in response to chronic use of addictive drugs [
12,
15] (e.g., heroin, cocaine, alcohol, nicotine) and stress exposure [
16,
17,
18,
19,
20,
21].
Microglia visualization is required to perform morphological studies, commonly using IBA-1, a cytoplasmic calcium binding protein expressed in microglia and macrophages, as a marker [
22]. For the purposes of this manuscript, we refer to all IBA-1 + cells as microglia. Furthermore, there are other markers for microglia, including CD11b, CX3CR1, and CD68. Alternatively, TMEM119 and P2Y12R are markers that are exclusive for microglia. Additionally, multiple transgenic reporter lines are constructed by genetically inserting a fluorescent marker gene sequence to a gene of interest (e.g. CX3CR1
GFP, TMEM119
GFP, Sall1
GFP), this insertion causes the addition of the fluorescent marker into the target protein [
23,
24,
25]. However, these are typically mouse lines. Currently, the only transgenic rat construct available is a cre recombinase-dependent CX3CR1-ERT2 line (Rat Resource & Research Center, Columbia, MO). IBA-1 is a good morphological marker, as the protein is distributed throughout microglial cytoplasm, thus enabling clear visualization. As a result, it has been extensively utilized as a microglial marker in various mammalian models, including rodents, non-human primates, and rabbits [
26].
For a precise morphological analysis, it is important to visualize microglial cells with most, if not all, of their projections in the field of view. Therefore, 3D analyses of microglia are preferred over 2D analyses, for which the full cell is not assessed. To achieve 3D images, thick brain sections are recommended, as they enable comprehensive imaging of the microglia. For this purpose, we recommend sectioning the brain into 100-μm slices. However, others have demonstrated that sufficient 3D morphological characteristics in microglia can be observed with 50-μm sections[
27]. Following microglial labeling, confocal microscopy is recommended for image acquisition. Confocal microscopy is preferred for morphological analysis, as it can acquire high-resolution 3D images of cells.
Figure 1 shows our unbiased image acquisition methodology in the NAcore using confocal microscopy.
We have developed an unbiased imaging technique to capture our regions of interest using a reference point within the structure to aid imaging. Reference points are important to ensure consistency of imaging locations across groups. We use the anterior commissure (a.c.) as reference point to image the NAcore (
Figure 1A). Focusing on the NAcore using the Paxinos Rat Brain Atlas [
28] and the work of Voorn et al. [
29], we have traced the known glutamatergic projections from the ventral prelimbic cortex, dorsal prelimbic cortex, and dorsal anterior cingulate (PLv, PLd, and ACd, respectively). The NAcore spans an anterior posterior (AP) range from +3.00 to +0.50. Within this range, the rostral NAcore corresponds to AP +3.00 to +1.80, while the caudal NAcore spans from AP +1.80 to +0.50. For each animal, we acquire a total of six images: three from defined positions within the rostral NAcore and three from corresponding positions in the caudal NAcore, as detailed in the following section. The tissue sections and coordinates illustrated in
Figure 1 represent the caudal portion of the NAcore.
Once cells are stained and fields are defined in the microscope, confocal imaging can be conducted. Here we describe a protocol using a LeicaX SP8 Upright Confocal Microscope and the LASX software suite. This protocol can be adapted to other microscopes and software configurations. First, we survey brain sections with a 5x objective (or the lowest magnification objective available) to locate the region of interest, positioning it in the center of the field of view. Next, use the 10x objective and set the gain and intensity that allow for the best quality and resolution of the cells across treatment groups. Using a tile stitching function, we perform a spiral scan around the reference point. Then, using the microscope software, we add a mark, the focal point (
F), in the center of the reference structure, (
Figure 1C – see arrow indicating
F). For example, when imaging the NAc, we mark the focal point at the center of the anterior commissure (a.c.). Next, we change the objective to 63x oil immersion magnification. Note that we prefer a 63x objective for optimal resolution and cellular definition for morphological analyses; however others have used a 40x objective [
30]. Once the objective is set, using the navigator interface, we create a tile scan grid, (for example: a 12x10 tile scan grid - each square being 0.172 μm by 0.172 μm) with the center of the grid (shown as a cross with a circle) defined by the focal point (F) (
Figure 1C). The grid allows coordinates to be set consistent with each image position across groups (
Figure 1D); the x,y image position coordinates used within the NAcore are (3,4), (5,8), (9,2) for n1, n2 and n3, respectively. The 3 positions (n1, n2 and n3) were selected because these locations receive different glutamatergic projections (PLv, PLv and ACd respectively). Using consistent grid positions across treatment groups ensures unbiased image collection. Prior to imaging, parameters must be set for ideal resolution and image quality of the cells. We find that some general parameters that yield good resolution images include a resolution of 1024x1024 pixel resolution, a scan speed of 600 Hz, a line average of 3, and a pinhole size of 1μm. Parameters that often may vary between experiments/cohorts include gain and intensity; these parameters often need to be adjusted to achieve a low background image with good resolution of the cell branches. It is important to ensure that the parameters are consistent across the treatment conditions and that the investigator is blinded to the conditions. Lastly, we recommend that the Z-stack step size (distance between photos on the Z-axis) is set at 0.5 μm, as smaller steps are optimal for increased branch resolution. The image presented in
Figure 1E has a ~37μm thick Z-stack.
This method can be adapted to different brain regions of interest. For instance, other brain regions that undergo microglial activity changes related to stress and addiction include the medial prefrontal cortex and ventral tegmental area [
31,
32].
3.3. Morphological Analysis Tool Comparison
Morphological analyses of microglia typically focus on the ramification states of the cells; historically these states have been defined by calculating the quantities and lengths of branches, with more and longer branches indicating more ramified microglia compared to amoeboid microglia, which have fewer and smaller branches [
2,
33,
34]. In the past decades, multiple platforms have been developed for morphological analyses; each with pros and cons, making selection of the proper tool challenging. Prior to selecting an analysis tool, a criterion must be set to include or exclude cells for the analysis. A good criterion for 3D analysis of microglia is to exclude incomplete cells (i.e., cells that have less than 80% of its soma and projections within the
xyz planes of the image), as morphology cannot be accurately assessed in those cells. Following criterion selection, an analysis tool must be selected. A commonly used software is IMARIS (Oxford Instruments), as it is capable of 3D analysis.
IMARIS is an application that aids in the visualization of confocal images in 3D and has options that enable reconstruction and measurement of cell morphology and colocalization, as well as protein and cell quantification (in addition to a range of other applications). Here, we will focus on the morphological analysis features of IMARIS. Cell morphology can be analyzed using the IMARIS cell surface and filament functions which reconstruct the cells and define characteristics that relate to morphology. Cell surface creation permits measurement of cell and soma volumes, while filament creation enables measurement of branch endpoints, branchpoints, and branch length (sum), and Sholl analysis-based analysis of branch complexity, among other measures. We recommend using the filament creation function, as it measures more morphological characteristics that allow for accurate analyses compared to the cell surface creation function.
Figure 2 presents a stepwise summarized protocol for filament creation in IMARIS. The filament creation function in IMARIS has an automatic system (
Figure 2A) by which the soma diameter and fluorescent thresholding are set (
Figure 2B). However, the microglial somas must be manually positioned (
Figure 2C). Once this is done, IMARIS machine learning will reconstruct the branches of the microglia (
Figure 2D). With machine learning, it is possible to teach IMARIS to accurately define branches. IMARIS will store this information in parameter files so that it can be applied to future images. Once the initial reconstruction is complete (
Figure 2E), we exclude cells that are not within our criteria (
Figure 2F) and eliminate any filaments that are not connected or do not originate from the same cell to obtain our finalized image (
Figure 2G). Although IMARIS provides excellent visualization of the cells as well as accurate reconstruction, the time required for this process is high relative to some other platforms.
In 2018, an open access semi-automated microglia analysis platform called 3DMorph was released. The MATLAB-based code had multiple advantages that encouraged us to update and optimize the base code [
10]. Since numerous changes were implemented, we renamed and released it as CellSelect-3DMorph 1.0 (10.5281/zenodo.14159877). An important difference between the code and its predecessor [
30] is its compatibility with the current version of MATLAB and the release of a standalone executable that does not require a MATLAB license. Additionally, improvements have been made to enhance efficiency, resulting in faster code execution. It also introduces the option to select which cells to analyze and which to exclude. Both free, open-access versions are available on the Garcia-Keller laboratory’s GitHub space (
https://github.com/CGK-Laboratory/CellSelect-3DMorph). CellSelect-3DMorph is a semiautomatic software, where the reconstruction of the cells is achieved through automatic reconstruction of the cells based on manual decisions made by the user. Once images are acquired using a confocal microscope (raw image,
Figure 3A), an
otsu threshold is defined for each image (
Figure 3B); this threshold determines the background and foreground fluorescent intensity to enable separation among cells [
35]. Next, a noise filter is applied (in the same window). This deletes any small objects that have been created and separated after the
otsu thresholding (this number is determined by the user as well). Following thresholding, the software gives the option to choose the largest single cell in the image (
Figure 3D). This function serves as a checkpoint step, as
otsu separation is not perfect and occasionally combines two or more cells together into one object. Users can identify the largest object defined as a single cell, and the software will use this input to define and exclude any larger objects. Similarly, the software will also identify the smallest object in the image defined as a cell and will discard any smaller objects. Subsequently, the software offers the option of selecting cells that fall within the defined range (
Figure 3F). Cells to be used for full analysis are then identified. Finally, a full image reconstruction is made (
Figure 3E) based on which a final output is generated, consisting of single cell skeletons and 3D reconstructions (
Figure 3G) as well as a table (Microsoft Excel™ spreadsheet) providing all quantified measurements. It is worth mentioning that in the final Excel file, certain parameters—such as branchpoints, endpoints, and average, minimum, and maximum branch lengths—may display a value of zero for some cells. This is likely due to rendering errors in the software, which can stem from hardware or software limitations.
CellSelect-3DMorph will define cell volume, cell territory, ramification index, branchpoints, branch endpoints, average branch length and minimum and maximum branch length. Cell volume refers to the volume of the fluorescent pixels encompassing the cell (Figure 3G.1). Cell territory is the maximum expansion of the cell measured by a polygon surrounding the cell (Figure 3G.2). The ramification index is calculated by territorial volume divided by cell volume. Higher values suggest a more ramified cell, where the maximum projection area significantly exceeds the cell’s volume, while lower values indicate an amoeboid shape, with the projection area closely matching the cell volume. Branchpoints quantify the bifurcating points in process branching (Figure 3G.3 and 3G.4), while endpoints quantify all branches. Branchpoints, branch endpoints, minimum and maximum branch length, and average branch length are measurements of cell complexity which have been traditionally used to assess morphology in an indirect manner. However, they are useful for assessing the complexity of the cell morphology (similar to IMARIS). Both CellSelect-3DMorph and IMARIS are similar in their morphological measurements. However, CellSelect-3DMorph is faster than IMARIS for image analysis and can provide a ramification index measurement, while IMARIS can also provide the volume of the soma. Nonetheless, both analyses are useful for determining microglia morphology.
3.4. Comparison of IMARIS and CellSelect-3DMorph Results
To demonstrate the utility of the software for microglial morphological analysis, we present data analyzed using both tools, highlighting their differences and similarities. The experiment involved artificially stimulating a response from microglia through an intraperitoneal injection of adenosine 5’-triphosphate (ATP) disodium salt. ATP disodium salt induces a microglia response by activating purinergic receptors, including P2X and P2Y receptor subtypes [
36]. This experiment utilized 10-week-old naïve female rats, divided into two groups: one group received intraperitoneal (i.p.) injections of ATP diluted in ultrapure water, while the control group received vehicle (saline) injections. ATP was administered at a dose of 50 mg/kg, a concentration previously shown to activate microglia in rats [
37]. Following the injections, rats were returned to their home cages for a period of two hours, after which rodents were perfused, and tissue was collected. Rats were perfused with 4% paraformaldehyde (PFA) followed by a 24-hour post fixation also in 4% PFA (
Figure 4A). The nucleus accumbens core was then imaged and analyzed as described in
Figure 1,
Figure 2 and
Figure 3.
Figure 4B displays representative images from each condition, including raw images as well as those reconstructed using IMARIS and CellSelect-3DMorph for each group. Given the dynamic nature of microglia, and likely emergence of distinct subpopulations[
2,
34,
38], morphological measurements obtained from both software platforms exhibit non-normal distributions, requiring the use of non-parametric statistical methods for valid analysis. The data were analyzed using the non-parametric Mann–Whitney rank-sum test. To further validate the findings, the Kolmogorov–Smirnov test for cumulative distribution comparison was also applied. Both statistical tests yielded consistent results. Concurrently, the Sholl measurement data satisfied normality assumptions, enabling the use of parametric statistical analysis. Accordingly, a mixed-effects parametric test was applied to assess the Sholl data. The analysis, conducted with each software platform, indicates that ATP treatment reduced ramification, the number of branchpoints and the overall cell size of microglia, compatible with the transition to an amoeboid-like morphology. Specifically, IMARIS analysis (
Figure 4C-F) revealed reductions in Sholl intersections, branchpoints, endpoints, and ramification in ATP-treated animals. Similarly, CellSelect-3DMorph analysis (
Figure 4G-N) showed decreased cell volume, territory, branch number, and endpoints following ATP exposure. While both tools preserved the observed group differences, CellSelect-3DMorph may offer a higher-throughput option (processing ~6 images per hour) compared to IMARIS. Our findings demonstrate that both IMARIS and CellSelect-3DMorph are suitable for microglia morphology analysis and provide comparable results.
3.5. Cluster Analysis Pipeline
Thus far, we have emphasized the value of microglial morphology as a foundational approach for understanding microglial states, while also acknowledging its limitations. To address some of these limitations, including the fact that morphology alone may not predict function, static imaging fails to capture dynamic behavior, subpopulation complexity is difficult to resolve, and morphological data often exhibit non-parametric distributions, we implemented a cluster analysis pipeline integrating principal component analysis (PCA) followed by two-step clustering. This analytical approach provides a means to identify the underlying subpopulations and quantify their relative abundance across experimental groups. In doing so, this method allows for the detection of shifts or biases in microglial morphological states in response to experimental manipulation, thereby offering deeper insight into microglial dynamics beyond what is possible with traditional single-parameter or group-mean analyses.
Cluster-based analysis of microglial morphology was carried out in three primary steps: data normalization, PCA, and two-step clustering. First, data were normalized using Z-score transformation, calculated as
z = (x - μ) / σ, where
x is the raw value,
μ is the mean, and
σ is the standard deviation. This standardization ensures that all variables are on the same scale, enabling effective dimensionality reduction during PCA. For normalization, data were organized in Excel with columns representing morphological parameters and rows corresponding to individual cells, labeled by animal and treatment groups. Z-scores were calculated separately for each parameter on individual sheets. Once normalized, PCA was performed using SPSS to reduce the dataset into a smaller set of uncorrelated variables, the principal components, that capture the majority of variance in the data. This transformation allows for clearer identification of major patterns and relationships among morphological features. We retained parameters that showed strong contributions to the PCA (component loadings ≥ 0.5) for clustering analysis[
39,
40,
41,
42]. Subsequently, two-step clustering was performed in SPSS. This algorithm pre-clusters the data and then applies hierarchical clustering to determine the optimal number of clusters based on the selected variables. SPSS uses a log-likelihood distance measure for clustering and evaluates cluster quality using a silhouette coefficient (algorithmic metric assessing the fitness of the data within a cluster), with values ≥ 0.5 indicating good cluster separation[
39,
40,
42].
We conducted cluster analysis using CellSelect-3DMorph datasets obtained from both VEH and ATP-treated groups (
Figure 4A). All data were pooled and analyzed using the methodology described above. Pooling ensured that cells from both groups were subjected to the same clustering criteria, allowing for unbiased comparison across resulting clusters. To initiate the analysis, all morphological parameters provided by the software including cell territory, cell volume, ramification index, number of branch points, number of endpoints, minimum and maximum branch length, and average branch length, were normalized using Z-score transformation. PCA was then performed to reduce data dimensionality and assess the contribution of each variable. PCA revealed that seven out of the eight parameters demonstrated high quality, indicating they accounted for a substantial portion of the variance in the dataset (
Figure 5A), and the first two principal components together explained 71.51% of the total variance (
Figure 5B). We initially performed two-step cluster analysis using all seven high-quality parameters. However, this resulted in a cluster quality score of 0.4, which did not meet the threshold for good clustering. This reduced quality was likely due to multicollinearity among parameters, for example, branchpoints and endpoints are highly interrelated. To improve clustering performance, we refined the analysis by selecting three less correlated yet informative parameters: cell territory, cell volume, and ramification index. This revised two-step clustering approach initially yielded two clusters with a silhouette coefficient (cluster quality) of 0.5, indicating acceptable separation. To further capture the dynamic range of microglial states, we applied a three-cluster model, which also achieved a cluster quality of 0.5.
Subsequently, data were stratified by cluster within the VEH and ATP treatment groups for further analysis. Normality tests confirmed that the data within each cluster were normally distributed, allowing for parametric testing. Chi-square analysis was used to compare cluster frequency between groups. Figure 5C shows the microglial population distribution between VEH and ATP groups. Both groups had a comparable distribution, suggesting that that the observed differences in microglial properties (Figure 4) were not attributable to a change in the microglia population composition. Further analysis showed that, within each cluster, in both the VEH and ATP treatment groups, there were significant differences in cell territory and cell volume (Figure 5D-E). Differences in the ramification index were observed between clusters 1 and 2 and between clusters 1 and 3 (Figure 5F). These results suggest that the identified clusters likely represented distinct morphological states that are largely treatment independent. Cluster 1 microglia exhibited the most amoeboid morphology of the dataset, characterized by low cell territory, cell volume, and ramification index. Clusters 2 and 3, while differing significantly in cell territory and cell volume, showed no significant difference in ramification index—likely due to the ramification index being a ratio between cell territory and cell volume parameters. Thus, Cluster 3 represented a more ramified microglial population, whereas Cluster 2 likely reflected either a transitional morphology or a distinct microglial form that does not clearly fall into either the amoeboid or ramified categories. Comparison across treatment groups revealed some notable differences: VEH-treated microglia in Cluster 2 exhibited greater cell territory and volume compared to ATP-treated Cluster 2 cells. Similarly, Cluster 3 microglia in the VEH-treated group had larger cell volumes than their ATP-treated counterparts. These treatment-related differences within clusters may have accounted for the broader morphological changes observed in Figure 4. Collectively, this clustering analysis provides valuable insight into the heterogeneity of microglial responses and enhances our understanding of how ATP treatment influences microglial morphology at the subpopulation level.