Skip to main content

This is a preprint.

It has not yet been peer reviewed by a journal.

The National Library of Medicine is running a pilot to include preprints that result from research funded by NIH in PMC and PubMed.

bioRxiv logoLink to bioRxiv
[Preprint]. 2023 Jan 23:2023.01.23.525256. [Version 1] doi: 10.1101/2023.01.23.525256

A Model-Based Hierarchical Bayesian Approach to Sholl Analysis

ERIK VONKAENEL 1, ALEXIS FEIDLER 2, REBECCA LOWERY 2, KATHERINE ANDERSH 2, TANZY LOVE 1, ANIA MAJEWSKA 2, MATTHEW N MCCALL 1,3,*
PMCID: PMC9900812  PMID: 36747628

Summary

Due to the link between microglial morphology and function, morphological changes in microglia are frequently used to identify pathological immune responses in the central nervous system. In the absence of pathology, microglia are responsible for maintaining homeostasis, and their morphology can be indicative of how the healthy brain behaves in the presence of external stimuli and genetic differences. Despite recent interest in high throughput methods for morphological analysis, Sholl analysis is still the gold standard for quantifying microglia morphology via imaging data. Often, the raw data are naturally hierarchical, minimally including many cells per image and many images per animal. However, existing methods for performing downstream inference on Sholl data rely on truncating this hierarchy so rudimentary statistical testing procedures can be used. To fill this longstanding gap, we introduce a fully parametric model-based approach for analyzing Sholl data. We generalize our model to a hierarchical Bayesian framework so that inference can be performed without aggressive reduction of otherwise very rich data. We apply our model to three real data examples and perform simulation studies comparing the proposed method with a popular alternative.

Keywords: Bayesian analysis, Generalized non-linear models, Hierarchical models, Microglia, Sholl analysis

1. Introduction

It has been shown that microglia are key players in countless brain pathologies including neurodegenerative disorders, traumatic brain injury, and psychiatric diseases (Sierra and others, 2019; Prinz and others, 2019; Gomez-Nicola and Perry, 2014). As the main immune cells in the central nervous system, microglia respond to these pathologies in a myriad of ways. Alongside reactive behavior, microglia may also have a direct impact at the onset of several diseases. For example, recent genome-wide association studies showed that genes which are risk factors for Alzheimer’s disease are largely expressed in microglia rather than in other brain cell types (Hemonnot and others, 2019). Other specific pathologies which involve the microglia include glioma, strokes, multiple sclerosis, Parkinson’s disease, autism, and schizophrenia (Hambardzumyan and others, 2016; Patel and others, 2013; Long-Smith and others, 2009; Takano, 2015; Monji and others, 2009; Bogie and others, 2014). Further, studies have also linked microglia function to various lifestyle factors such as stress, diet, and alcohol consumption (Tynan and others, 2010; Johnson, 2014; Marshall and others, 2013).

A primary reactive behavior of microglia is to change their morphological phenotype. Homeostatic microglia are ramified cells, characterized by a number of highly branched processes extending from a central soma. In response to the presence of either pathological or physiological stimuli, microglia can re-organize these processes to change their number, shape, and distribution, resulting in a broad spectrum of morphological phenotypes. Theses morphological changes are a dynamic process which potentially differ depending on the stimulus, environmental context, and the stage of the microglial response (Franco and Fernández-Suárez, 2015; Tang and Le, 2015). While it is challenging to make direct inferences about microglial function based purely on morphological changes (Paolicelli and others, 2022), morphology remains an important indicator of changes in microglial function in many different physiological and pathological settings.

Though there has been interest in high-throughput methods for analyzing microglial morphology (Colombo and others, 2022; Heindl and others, 2018), often studies rely on simple analysis methods implemented in freely available software, such as Sholl analysis (Sholl, 1953), as a means to quantify cell morphology. Despite the popularity of Sholl analysis, methods for performing inference on cell morphology using Sholl data are extremely limited. Though Sholl analysis is able to capture a wide range of morphological changes, current methods struggle to take advantage of all available information. We aim to fill this gap by proposing novel methods for performing inference using Sholl data.

In this article, we propose a fundamentally different inference procedure for Sholl data. Specifically, we propose a model based approach using biologically meaningful parameters. We adopt a hierarchical Bayesian framework, which can easily capture variation at each level of the experimental hierarchy. Further, the model is parameterized so that Sholl curve summaries commonly used in the literature can be retrieved directly from the model parameters. This allows investigators to perform inference using all of the data available to them and incorporate variation at each level of the experimental hierarchy.

2. Methods

2.1. Existing Methods

To perform Sholl analysis, one constructs concentric circles around the soma of a cell, the smallest containing the soma, and the largest containing the entire process arbor, i.e. the entire cell. Then, the number of times any process crosses each circle is counted. A Sholl curve (Figure S1 A) is constructed by plotting the counts for each circle against the corresponding radii.

Currently, some of the most popular morphological analysis methods are based on the analysis of Sholl curves. Most existing methods involve aggressive data reduction or transformation so that basic statistical procedures can be used. There are two primary avenues for analyzing these data: transformation-based and summary-based methods.

Transformation-based methods involve linearizing Sholl curves so that ordinary least squares can be applied, the most common being the semi-log and log-log methods. For the ith concentric circle, let xi be the radius, Ai be the area, and yi be the number of intersections. Then the semi-log regression model is given by log10yiAi=βxi+εi, where εiN (0, 1). Similarly, the log-log model is given by log10yiAi=βlog10xi+εi, where εiN (0, 1). The parameter β is called Sholl’s regression coefficient, which is often interpreted as the decay rate of the number of branches with distance from the soma (Sholl, 1953; Milosević and Ristanović, 2006).

These linearizations can be quite poor, typically resulting in the transformed Sholl curve oscillating about the fitted linear curve. Even when the linearization appears reasonable, the typical oscillation is still apparent (Figure S1 B). Additionally, we commonly have access to many cell images, often in some nested hierarchical structure induced by experimental design, so a single linearization technique may not be appropriate for all available data. Even if a model is reasonably chosen, we are still limiting our analysis of very rich data to a single parameter model.

Another strategy involves reducing the Sholl curve into a summary statistic, which can be passed to a hypothesis testing procedure. Some previously proposed Sholl curve summaries are:

  • Branch Maximum: the maximum number of crossings across all radii

  • Critical Value: the radius at which the maximum number of crossings is observed

  • Schoenen Ramification Index: the branch maximum divided by the number of branches originating at the soma

  • Area Under the Curve

  • Full Width Half Max: the width of the curve at half the maximum number of crossings

Often, there is some amount of averaging that occurs before these summaries are calculated. Hierarchical data are collapsed at the subject-level so that each subject only has a single, aggregated Sholl curve. This aggregate curve is typically the point-wise mean of each cell-level curve associated with that subject. Inference is commonly performed on Sholl curve summaries using ANOVA so that group differences and interactions can be tested.

2.2. The Sholl Curve Model

We start by specifying our model for a single Sholl curve. Let 0 and 0 denote the set of integers and real numbers greater than or equal to 0, respectively. Then a Sholl curve is the pair (X, Y ), where Y=y1,,yJ0J are the process crossings corresponding to the concentric shells of radius X=x1,,xJ0J, where x1<<xJ. The model is then given by:

yi|xiPoissonμi
logμi=α1γxi2+τ,forxi<γα2xiγ2+τ,else (2.1)

where α1, α2 < 0, 0 < γ < xJ , and τ > 0. This is essentially a change-point generalized non-linear model assuming a Poissonian random component with canonical link function. Intuitively, the log transform of Sholl curves are approximately asymmetric quadratics (Figure S2), which we directly model in the log-mean function. Since Sholl curves are count data, a Poissonian random component with canonical log link is a natural approach.

We think of this model as a combination of a “growth-curve” and a “decay-curve”, which are separated by the change-point γ. The parameters α1 and α2 control the growth and decay curves, respectively. The maximum of the fitted curve is given by (γ, eτ ), allowing us to directly estimate the critical value and branch maximum. We can also retrieve the y-intercept of the estimated curve as α1γ2 + τ , which is interpreted as the expected number of processes originating from the soma. Changes in the mean model as each parameter varies can be seen in Figure 1.

Fig. 1.

Fig. 1.

The mean model induced by Equation 2.1 as each parameter varies. A: The growth parameter α1 controls the behavior of the curve before the change-point. B: The decay parameter α2 controls the behavior of the curve after the change-point. D: The parameter τ controls the branch maximum of the fitted curve via eτ . C: The parameter γ controls the critical value, i.e. the change-point, of the fitted curve.

Microglia experiments often contain many images per animal and many cells per image, so a natural extension of the single curve model is a Bayesian hierarchical framework. We demonstrate this extension in three hierarchical models which are later applied to real data examples. Though specifically tailored to our examples, the three models we showcase can be used in many practical settings with minor adjustments.

2.3. Model 1

The first model extends the single curve model to a nested hierarchical structure with four levels. In the applied example, the four levels correspond to population, animal, image, and cell, which are nested in that order. We assume parameters for each level are independently sampled from the corresponding distribution in the next highest level. For instance, the model parameters in Equation 2.1 at the cell level are independently sampled from image-level distributions.

The hierarchical structure of this model is displayed in Figure 2. The population-level parameters seen in Figure 2 are defined as μ=μα1,μα2,μγ,μτ. Then for the lth animal, we define ωl=ωα1l,ωα2l,ωγl,ωτ,l and Σω=diagσωα12,σωα22,σωγ2,σωτ2. Parameters corresponding to the kth image of animal l are defined as ψkl=ψα1kl,ψα2kl,ψγkl,ψτkl and Σψ=diagσψα12,σψα22,σψγ2,σψτ2. In Figure 2, cell-level parameters for image k of animal l are vectorized as Θkl=θ1kl,,θJklkl, so that parameters for cell j in image k of animal l are given by θjkl=θα1jkl,θα2jkl,θγjkl,θτjkl and Σθ=diagσθα12,σθα22,σθγ2,σθτ2. We also vectorize the Sholl curve process crossings for cells in image k of animal l as Ykl=y1kl,,yJklkl, where yjkl=y1jkl,,yNjkljkl denote process crossings for cell j in image k of animal l.

Fig. 2.

Fig. 2.

Hierarchical structure for model 1. We assume parameters at any level are randomly sampled from the corresponding distribution in the next highest level. Here, ϕ(∗) denotes the Gaussian distribution, µ denotes population-level parameters, ω denotes animal-level parameters, ψ denotes image-level parameters, θ denotes cell-level parameters, and Y denotes Sholl curve process crossings. For a given parameter ∗, Σ denotes variance parameters for the corresponding Gaussian. Gaussian priors are truncated via A and B to enforce the parameter constraints of Equation 2.1.

We truncate normal distributions ϕ at each level of the hierarchy according to the parameter space of Equation 2.1. The lower bound of the parameter space is A = (−∞, −∞, 0, 0) and the upper bound is B=0,0,x˜,, where x˜ is the least upper bound on the support of the Sholl curves. As suggested in Gelman (2006), we assume a half-t prior on all standard deviation parameters.

2.4. Model 2

The second model is a truncation of the first, which we apply to Sholl data that has been aggregated at the animal-level. This model contains population, group, and animal levels, nested in that order. Notably, we model group and interaction effects for each parameter in Equation 2.1 so that group-level inference can be performed. This model allows for two categorical variables, each with two groups.

We can see the hierarchical structure of the model in Figure 3. We include effects at the group level via additive terms on the group level mean parameter. Denoting groups for the first categorical variable as either ND or MD,

bMDϕμbMD,ΣbMD|,,μγ,μτ<bMD<μα1,μα2,,,μbMD,ΣbMD

is interpreted as a shift in the group mean for group MD. Similarly denoting groups for the second categorical variable as either I or C,

bCϕμbC,ΣbC|,,μγ,μτ<bC<μα1,μα2,,,μbC,ΣbC

is interpreted as a shift in the group mean for group C. The interaction effect is given by

bMD/CϕμbMD/C,ΣbMD/C|AbMD/C<bMD/C<BbMD/C,μbMD/C,ΣbMD/C

where

AbMD/C=,,μγ+bγMD+bγC,μτ+bτMD+bτC
BbMD/C=μα1+bα1MD+bα1C,μα2+bα2MD+bα2C,,,

which is interpreted as a shift in the group mean for group MD/C.

Fig. 3.

Fig. 3.

Hierarchical structure for Model 2. Denote groups in the first categorical variable as either ND or MD, and the second as either I or C. Notation is consistent with Figure 2 except, for some combination of groups *, ζ* denotes group-level parameters, Ω*=ω1*,,ωL* denotes animal-level parameters, and Y*=y1lm,,yNlm denotes Sholl curve process crossings. Additionally, group combination is indexed by m and we model group level effects as additive terms b on the mean parameter for group level distributions.

The bounds on these effects are set to constrain the group level means within (A, B), i.e. the support of the truncated normal distributions. We assume truncated normal hyper-priors on mean parameters for each effect, where the truncation is identical to the corresponding effect bounds. As before, we assume half-t priors on all standard deviation parameters in the model, including half-t hyper-priors for the effect standard deviations.

2.5. Model 3

The third model generalizes the second by incorporating cell-level data. Specifically, this model contains population, genotype, animal, and cell levels in that order. We also show how effects can be modeled at multiple levels of the hierarchy by including a genotype-level effect, and cell-specific effects shared across animals.

The full model is shown in Figure 4. At the genotype level, we add an effect for knockout (KO) as an additive term on the mean parameter for ξKO. Specifically,

ξGenoϕμ+IKObKO,Σξ|A<ξGeno<B,μ+IKObKO,Σξ

where

IGeno=1ifGeno=KO0ifGeno=WT

Fig. 4.

Fig. 4.

Hierarchical structure for model 3. As before, all notation is shared with models displayed in Figures 2.3 and 2.4, except ξ denotes genotype-level parameters. Additionally, bKO denotes the genotype level effect, bCrush denotes the condition level effect, and bKO/Crush denotes the interaction effect between condition and genotype. I* is an indicator variable equal to 1 for observations in group ∗, and 0 else.

The effect is given by

bKOϕμbKO,ΣbKO|,,μγ,μτ<bKO<μα1,μα2,,,μbKO,ΣbKO.

In our real data example, cell-level curves correspond to either a control eye, or an eye subject to optical nerve crush injury. Each animal has a crush and control eye, so we model the effect of condition, and the interaction of condition and genotype at the cell level via

θjlCond/GenoϕωlGeno+ICrushbCrush+IKO/CrushbKO/Crush,Σθ|A<θjlCond/Geno<B,ωlGeno,bCrush,bKO/Crush,Σθ,ξGeno,Σω,μ,bKO,Σξ

where

ICrush=1ifCond=Crush0ifCond=Control

and

IKO/Crush=1ifCond=CrushandGeno=KO0else.

The effect of condition is given by

bCrushϕμbCrush,ΣbCrush|AbCrush<bCrush<BbCrush,μbCrush,ΣbCrush

where

AbCrush=,,minΩγ,minΩτ
BbCrush=minΩα1,minΩα2,,,

and Ω=ω,1WT,,ω,LWTWT,ω,1KO,,ω,LKOKO.

The interaction effect is

bKO/CrushϕμbKO/Crush,ΣbKO/Crush|AbKO/Crush<bKO/Crush<BbKO/Crush,μbKO/Crush,ΣbKO/Crush

where

AbKO/Crush=,,minΩγ+bγKO/Crush,minΩτ+bτKO/Crush
BbKO/Crush=minΩα1+bα1KO/Crush,minΩα2+bα2KO/Crush,,,.

As before, we assume half-t priors on all standard deviation parameters.

All models were fit using MCMC via rjags (version 4–13).

2.6. Simulation Study

We limit simulation to model 2 (Section 2.4), except we incorporate cell-level data in the model hierarchy. We simulate data under six scenarios, primarily considering changes for effects on τ at the group level. Denoting the two grouping variables as either condition or side, the assumed effects in each scenario are shown in Table 1.

Table 1.

Effects for each simulation scenario. We only consider effects on τ as it’s the most relevant parameter for the purposes of this article.

Scenario Parameter Effect
Condition Side Interaction
1 α 1 0.00 0.00 0.00
α 2 0.00 0.00 0.00
γ 0.00 0.00 0.00
τ 0.00 0.00 0.00
2 α 1 0.00 0.00 0.00
α 2 0.00 0.00 0.00
γ 0.00 0.00 0.00
τ 0.50 0.00 0.00
3 α 1 0.00 0.00 0.00
α 2 0.00 0.00 0.00
γ 0.00 0.00 0.00
τ 0.00 −0.25 0.00
4 α 1 0.00 0.00 0.00
α 2 0.00 0.00 0.00
γ 0.00 0.00 0.00
τ 0.50 −0.25 0.50
5 α 1 0.00 0.00 0.00
α 2 0.00 0.00 0.00
γ 0.00 0.00 0.00
τ 0.50 −0.25 0.50
6 α 1 0.00 0.00 0.00
α 2 0.00 0.00 0.00
γ 0.00 0.00 0.00
τ 0.50 −0.25 0.50

Unless otherwise indicated, all simulation parameters are identical to the baseline scenario. At baseline, we simulate data using 5 animals per group and 10 cells per animal. For scenario 5, we double the cells per animal assumed at baseline. The baseline group-level variance parameters are set as σα12, σα22=0.0000252, σγ2=0.52, and στ2=0.0252, while baseline variance parameters for all other levels are set as σα12, σα22=0.00012, σγ2=1, and στ2=0.052. For scenario 6, we set στ2=0.25 at the animal-level. Population level parameters are initialized as µ = (−0.002, −0.002, 30, 2) for each scenario.

To benchmark the proposed method, we first define the posterior probability that some effect b is less than 0 for simulation run i as Pi(b < 0). Now define

p^<0=i=150IP^ib<0>0.9550, (2.2)

which is the proportion of simulation runs where the estimated posterior probability of some effect b having a negative sign is greater than 0.95. We estimate P^ib<0 as the proportion of MCMC samples for parameter b that fall below 0. We can similarly define Pi(b > 0) and

p^>0=i=150IP^ib>0>0.9550. (2.3)

Across simulation runs, we expect p^<0 (or p^>0) to approach 1 as the relative strength of a negative (or positive) effect increases. Similarly, if there is no true effect, we expect both p^<0 and p^>0 to be approximately 0. Similar to the estimated power and FPR in frequentist simulations, p^<0 and p^>0 can be interpreted as the proportion of simulation runs where our decision criteria is met. Thus, we can add p^<0 and p^>0 to measure the probability of a false discovery when there is no true effect.

3. Results/Application

3.1. Ungrouped Mouse Dataset

Investigators were interested in being able to assay changes in microglial morphology. To investigate this, sections of mouse cortical tissue were generated and underwent histology for a microglia-specific marker. Images of microglia in the primary visual cortex were collected, and Sholl analysis was performed to assay the number of microglial processes at regular distance intervals from the cell soma. These data were plotted as Sholl curves to represent the overall morphological profile of individual microglia. Original analysis detected a range of Sholl curve profiles at the level of individual cells which were used to generate animal level aggregate Sholl curves.

Figure 5 shows the fitted curves at each level of the model hierarchy. In this example, we are primarily interested in the model’s ability to capture the possible range of Sholl curves at any level of the hierarchy. This desired flexibility is particularly apparent at the cell level, where Sholl curves can vary greatly within an animal. For example, we see the model has no issues capturing the curve with abnormally large branch maximum associated with Gazer. There is not much variation between images within an animal, which isn’t surprising because images are taken of adjacent areas in the same brain region. The model is able to capture an overall animal level curve quite well, while also allowing for natural variations between animals.

Fig. 5.

Fig. 5.

Fitted curves at each level of the model hierarchy, obtained with model 1 via MCMC. A: Cell-level fitted curves for each animal, where color indicates the cell. B: Image-level fitted curves for each animal, where color indicated image. C: Animal-level fitted curves. D: All cell-level fitted curves displayed in panel A, superimposed to show the cell-level variation. E: All image-level fitted curves displayed in panel B, superimposed to show the image-level variation. F: All animal-level fitted curves displayed in panel C, superimposed to show the animal-level variation.

3.2. MD/ND Dataset

The MD/ND dataset is one part of the data supporting findings from a study interested in the role of microglia in experience-dependent synaptic plasticity (Sipe and others, 2016). These data were used to demonstrate that ocular dominance plasticity induces hyper-ramification of microglia and that this effect is limited to the cortical area undergoing plasticity, which is the contralateral binocular visual cortex.

To examine whether microglia play a role in the process of experience-dependent synaptic plasticity, investigators assessed microglial response by assaying changes in microglial morphology after inducing ocular dominance plasticity. Tissue sections were generated from wildtype mice that had been monocularly deprived via eyelid suturing for 12 hours. Sections underwent histology for a microglia-specific marker and images of the binocular primary visual cortex were generated in both brain hemispheres to include visual areas both contralateral and ipsilateral to the deprived eye. Sholl analysis was performed on individual microglia. Analysis of these data were performed by constructing animal level aggregate Sholl curves, and fitting an ANOVA at each radius of the aggregate curves, which were used to test differences in process crossings between experimental conditions in both cortical hemispheres.

Though these data originally did contain multiple images and cells per animal, we re-analyze the truncated data using the proposed method. This allows both an example of how our method can be used when only animal level data is available, along with easier comparison with the original analysis. These data contain two grouping variables: condition and side. Condition is either monocular deprivation (MD) or no deprivation (ND), and side is either ipsilateral (I) or contralateral (C).

The fitted curves are displayed in Figure 6, which, as seen in panel A, do well at capturing the Sholl curves. In panel B we see the curve for group MD/C is quite large relative to other groups, indicating potential hyper-ramification of cells in this group. We show 95% credible intervals for group and interaction effects in Figure 7. These are superimposed over the approximate posterior density obtained via MCMC. Most parameters have posterior mass roughly centered at 0, with the exception of interaction effects on τ and γ. Clearly most of the posterior mass for both these effects falls above 0, which indicates a positive interaction effect associated with these parameters. To perform formal inference, we define a cutoff of 0.95, and check if an effect has at least 95% of its posterior mass either above or below 0. Table 2 shows the estimated posterior probability each effect is less than 0. We say an effect exists in the positive direction for a parameter if this estimate is less than 0.05. Conversely, an effect exists in the negative direction if this estimate is more than 0.95. With respect to this cutoff, we can say a positive interaction effect exists for both τ and γ, while no other effects succeed in meeting this criteria. Recall the branch maximum and critical value are given by eτ and γ in our model, respectively. This suggests microglia hyper-ramification is indeed limited to the contraleteral binocular visual cortex, which agrees with the original analysis of these data.

Fig. 6.

Fig. 6.

Group-level fitted curves obtained by fitting model 2 to the MD/ND dataset. A: Fitted curves faceted by group, superimposed over animal level Sholl curves. B: All four facets from panel A, superimposed to better show hyper-ramification of the MD/Contra group.

Fig. 7.

Fig. 7.

95% credible intervals for each effect in model 2, fitted to the MD/ND dataset. Credible intervals are computed as the highest density posterior interval. Credible intervals are superimposed over the approximate posterior distributions obtained via MCMC. Estimated posterior means are represented by black dots with point estimates displayed above. The dotted red line is fixed at 0.

Table 2.

Estimated posterior probability of a negative effect for each parameter in the MD/ND model. Quantities are estimated as the proportion of MCMC samples that fall below 0.

Parameter P^ (Effect < 0)
Condition Side Interaction
α 1 0.41 0.39 0.33
α 2 0.49 0.46 0.32
γ 0.60 0.85 0.02
τ 0.68 0.87 0.00

3.3. GPNMB Knockout Dataset

Investigators were interested in the effect of the loss of transmembrane glycoprotein NMB (GP-NMB) on the microglial response to an optic nerve crush (ONC) injury. GPNMB can work to reduce inflammation and is highly expressed in microglia, so the presence or absence of GPNMB may influence the role of microglia in the retina following ONC injury. An ONC injury was performed on a pilot cohort of 9 mice. Mice had either wildtype expression of GPNMB or a genetic knockout. For each animal, crush was performed on one eye and the contralateral eye underwent a sham injury which served as an inter-animal control. Retinas were collected 7 days after injury. Retinas were stained for microglia-specific markers and the ganglion cell layer/inner plexiform layer was imaged using confocal microscopy. Sholl analysis was performed on individual microglia and, similar to above, analysis was performed by constructing animal level aggregate Sholl curves. An ANOVA with repeated measures was conducted on both the branch maximum and critical value to test the differences between genotype, condition, and interaction. Results of this analysis are shown in Table 3.

Table 3.

Two-way ANOVA with repeated measures fit to the branch maximum and critical value of the truncated GPNMB knockout data

Response Effect nDF dDF F p-value
Branch Maximum Genotype 1 5 14.05 0.01
Condition 1 5 34.62 0.00
Interaction 1 5 10.89 0.02
Critical Value Genotype 1 5 2.66 0.16
Condition 1 5 14.12 0.01
Interaction 1 5 0.23 0.65

Cell-level fitted curves, separated by animal are displayed in Figure 8. Figure 9 shows 95% credible intervals for effects on genotype, condition, and interaction, superimposed over approximate posterior distributions. As with the MD/ND example, we report the estimated posterior probability each effect is less than 0 in Table 4. Using an 0.95 cutoff as before, we see the proposed method and two-way ANOVA detected similar effects on the branch maximum, while the proposed method also detects genotype and interaction effects on the critical value. Additionally, our method offers increased granularity when differences between curves are not obvious. Unlike the MD/ND example, visual differences between fitted curves in Figure 8 are not limited to these two summaries. Using our method, we are able to quantify these differences by leveraging α1 and α2, rather than only relying on the curve maximum. Specifically, we detect a negative condition effect on α1, meaning crush curves have steeper growth states than control curves. Though we only report effects here, we also have the option to investigate parameters, associated variance terms, and combinations of parameters (such as the y-intercept) at each level of the model hierarchy, providing a rich toolbox for investigating subtle curve differences.

Fig. 8.

Fig. 8.

Cell-level fitted curves faceted by animal obtained by fitting model 3 to the GPNMB knockout dataset. An animal is either wild-type (WT), or has gene GPNMB knocked out (KO). Cells are associated with either an eye subject to optical nerve crush injury, or control. Each animal has both a crush eye and a control eye.

Fig. 9.

Fig. 9.

95% credible intervals for each effect in model 3, fitted to the GPNMB knockout dataset. Credible intervals are computed as the highest density posterior interval. Credible intervals are superimposed over the approximate posterior distributions obtained via MCMC. Estimated posterior means are represented by black dots with point estimates displayed above. The dotted red line is fixed at 0.

Table 4.

Estimated posterior probability of a negative effect for each parameter in the GPNMB knockout model. Quantities are estimated as the proportion of MCMC samples that fall below 0.

Parameter P^ (Effect < 0)
Condition Genotype Interaction
α 1 1.00 0.02 0.44
α 2 0.89 0.32 0.40
γ 1.00 0.00 1.00
τ 0.93 0.01 1.00

4. Simulation Study

We compare the proposed method to the existing ANOVA based method discussed in Section 2.1 via simulation study. We narrow the scope of simulation to model 2 (Section 2.4), i.e. the simplest model with effects, but we include an additional level of hierarchy for cell-level data. The simulated data is truncated at the animal level in order to apply ANOVA, while the full data is used in the proposed model.

We simulate data under the assumed hierarchical structure of the proposed model. We only consider effects on τ since the critical value is both a popular summary metric and the most relevant parameter to the examples we discussed in Section 3. Data are simulated under six scenarios: 1) baseline scenario with no effects, 2) moderate positive marginal effect, 3) small negative marginal effect, 4) both effects in the previous two scenarios with moderate positive interaction effect, 5) identical to scenario 4 except twice as many cells per animal, 6) identical to scenario 4 except with large animal-level variance.

50 datasets are simulated for each scenario, and both models are fit to each dataset. Details regarding the MCMC sampling procedure and diagnostics are included in the Supplementary Materials. In Table 5, we report the frequentist power and FPR estimates for the ANOVA at the 0.05 level. Also reported in Table 5 are p^<0 and p^>0 for the proposed method.

Table 5.

Estimated type-I error rate (FPR) and power for ANOVA, compared with p^<0 and p^>0 for the proposed model under each simulation scenario. Power and FPR for the ANOVA model are estimated at the 0.05 level of significance. p^<0 and p^>0 for the proposed model are computed via Equations 2.2 and 2.3. Dashes fill cells where there is no relevant quantity.

Method
Proposed
ANOVA
Scenario Parameter Condition
Side
Interaction
Condition
Side
Interaction
p^<0 p^>0 p^<0 p^>0 p^<0 p^>0 Power FPR Power FPR Power FPR
1 α 1 0.04 0.00 0.00 0.02 0.00 0.00 –– –– –– –– –– ––
α 2 0.02 0.02 0.06 0.02 0.00 0.00 –– –– –– –– –– ––
γ 0.04 0.08 0.02 0.02 0.04 0.00 –– 0.06 –– 0.06 –– 0.06
τ 0.10 0.02 0.08 0.06 0.04 0.14 –– 0.12 –– 0.12 –– 0.16
2 α 1 0.00 0.02 0.00 0.00 0.00 0.00 –– –– –– –– –– ––
α 2 0.02 0.02 0.02 0.00 0.00 0.00 –– –– –– –– –– ––
γ 0.04 0.02 0.02 0.00 0.00 0.00 –– 0.06 –– 0.08 –– 0.06
τ 0.00 1.00 0.04 0.08 0.08 0.06 1.00 –– –– 0.18 –– 0.14
3 α 1 0.02 0.00 0.00 0.02 0.00 0.00 –– –– –– –– –– ––
α 2 0.02 0.02 0.00 0.00 0.00 0.00 –– –– –– –– –– ––
γ 0.02 0.08 0.00 0.04 0.00 0.02 –– 0.04 –– 0.10 –– 0.04
τ 0.04 0.18 0.92 0.00 0.10 0.06 –– 0.22 0.94 –– –– 0.18
4 α 1 0.00 0.02 0.00 0.00 0.00 0.02 –– –– –– –– –– ––
α 2 0.02 0.00 0.00 0.00 0.00 0.00 –– –– –– –– –– ––
γ 0.00 0.02 0.00 0.02 0.02 0.02 –– 0.02 –– 0.08 –– 0.00
τ 0.00 1.00 0.80 0.00 0.00 1.00 1.00 –– 0.56 –– 0.98 ––
5 α 1 0.02 0.00 0.00 0.00 0.00 0.00 –– –– –– –– –– ––
α 2 0.02 0.00 0.00 0.02 0.00 0.00 –– –– –– –– –– ––
γ 0.02 0.02 0.00 0.08 0.00 0.02 –– 0.06 –– 0.02 –– 0.12
τ 0.00 1.00 0.94 0.00 0.00 1.00 1.00 –– 0.34 –– 0.94 ––
6 α 1 0.00 0.00 0.00 0.00 0.00 0.00 –– –– –– –– –– ––
α 2 0.00 0.04 0.02 0.02 0.00 0.00 –– –– –– –– –– ––
γ 0.02 0.08 0.00 0.08 0.04 0.02 –– 0.06 –– 0.02 –– 0.12
τ 0.00 0.96 0.38 0.00 0.00 0.72 1.00 –– 0.14 –– 0.44 ––

In scenario 1, when there is no true effect, both methods perform comparably. For the proposed method, when the larger true effect exists for condition and/or interaction, p^>0 is almost always 1. For the smaller effect on side, we see slightly smaller values for p^<0, which are approximately 0.92 and 0.80 in scenarios 3 and 4, respectively. In scenario 5, when cells per animal is increased, we see p^<0 for side increase to 0.94. Our method seems to struggle when variance terms are large relative to the effect size. Specifically, in scenario 6, we see p^<0 for side and p^>0 for interaction dip to 0.38 and 0.72, respectively. In contrast, the ANOVA based method, while fully powered in some scenarios, struggles when more effects and data are introduced. This is apparent in scenario 4, where ANOVA struggles to detect the side effect in the presence of both condition and interaction effects. Additionally, when the cells per animal is increased in scenario 5, we actually see a decrease in power to detect the side effect relative to scenario 4. In scenario 6, ANOVA reports a power of 0.14 for detecting the side effect, which is not much larger than the FPR of 0.12 when no effect is present. Overall, the proposed method performs favorably across scenarios when true effects are present, while, at worse, performing comparably to ANOVA at controlling the false discovery rate.

5. Discussion

Sholl analysis is still the gold standard for morphological analysis in the microglia community. We propose a model for directly modeling Sholl curves, filling a long existing gap in the morphological inference pipeline. We generalize this model to a hierarchical Bayesian framework which naturally captures the nested structure of microglia imaging datasets. We apply our model in three real data examples and compare the proposed model to the analysis method previously applied to these data via simulation study.

Our applied examples showcase the flexibility of our method in capturing the myriad of shapes Sholl curves can take. We also demonstrate our model’s ability to capture relevant effects, potentially existing at multiple levels of the hierarchy. In our simulation study, we show the proposed method performs well when true effects are present, while being comparable to the competing method at controlling false discovery. In comparison, the ANOVA based method can be fully powered when a large enough effect exists but can become problematic as more data below the level of truncation is made available, in the presence of many true effects, or when the effect size is too small.

Our method can have some trouble sampling α1 and associate effects. Often we see low effective sample size relative to other parameters, along with difficulty getting chains to converge. That latter is reflected in both the Rhat and the approximate posterior for α1 effects in Figure 9. This could be alleviated by re-parameterizing the model. Instead of modeling the growth curve with α1, we can instead model the y-intercept directly. This may even be the preferred parameterization if estimating the number of processes originating from the soma is of interest. Our simulation study was also limited to effects on τ , leaving the door open for more rigorous study of other model parameters. Work can be done to relax assumptions on variance terms in the model, i.e. allowing for more than one shared variance parameter at each level of the hierarchy. Additionally, there are two primary ways this model can be further generalized: allowing for a negative binomial random component and including nonlinear parameters κ1 and κ2 in the mean model via

logμi=α1γxiκ1+τ,forxi<γα2xiγκ2+τ,else

for κ1, κ2 > 1. The former relaxes the mean-variance relationship of the Poisson model, while the latter allows more flexible characterization of the growth and decay states.

In summary, we believe Sholl based morphological analyses can greatly benefit from model-based methods which utilize all available data. Though the applied examples in this paper are limited to microglia, Sholl analysis is also a common method for quantifying the morphology of other cells, particularly neurons. We predict that our method is flexible enough to adequately capture the Sholl curve of other cell types, though modifications should be made to the specific model hierarchy to match the experimental design. We developed this method as a step toward more rigorous morphological analysis when Sholl analysis is the preferred method to quantify cell morphology. We anticipate that the proposed methodology will lead to improved analysis of microglial images by uncovering the changes in morphology that are most predictive of alterations in microglial function.

Supplementary Material

Supplement 1

Acknowledgments

We would like to thank Richard Libby along with the Libby lab for their data contributions.

Funding

The project described in this publication was supported by the University of Rochester CTSA award number UL1TR002001 from the National Center for Advancing Translational Sciences of the National Institutes of Health. The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Institutes of Health.

The data described in this publication was gathered by investigators supported by the National Institutes of Health (R01 NS114480, RO1 AA027111, T32 NS115705) and the SPIN foundation.

Footnotes

6.

Supplementary Materials

The reader is referred to the online Supplementary Materials for technical appendices and annotated R code.

References

  1. Bogie Jeroen F J, Stinissen Piet and Hendriks Jerome J A. (2014, June). Macrophage subsets and microglia in multiple sclerosis. Acta Neuropathol 128(2), 191–213. [DOI] [PubMed] [Google Scholar]
  2. Colombo Gloria, Cubero Ryan John A, Kanari Lida, Venturino Alessandro, Schulz Rouven, Scolamiero Martina, Agerberg Jens, Mathys Hansruedi, Tsai Li-Huei, Chachólski Wojciech, Hess Kathryn and others. (2022, September). A tool for mapping microglial morphology, morphOMICs, reveals brain-region and sex-dependent phenotypes. Nat Neurosci 25(10), 1379–1393. [DOI] [PMC free article] [PubMed] [Google Scholar]
  3. Franco Rafael and Fernández-Suárez Diana. (2015, June). Alternatively activated microglia and macrophages in the central nervous system. Prog Neurobiol 131, 65–86. [DOI] [PubMed] [Google Scholar]
  4. Gelman Andrew. (2006). Prior distributions for variance parameters in hierarchical models (comment on article by browne and draper). Bayesian analysis 1(3), 515–534. [Google Scholar]
  5. Gomez-Nicola Diego and Perry V Hugh. (2014, April). Microglial dynamics and role in the healthy and diseased brain: a paradigm of functional plasticity. Neuroscientist 21(2), 169–184. [DOI] [PMC free article] [PubMed] [Google Scholar]
  6. Hambardzumyan Dolores, Gutmann David H and Kettenmann Helmut. (2016, January). The role of microglia and macrophages in glioma maintenance and progression. Nat Neurosci 19(1), 20–27. [DOI] [PMC free article] [PubMed] [Google Scholar]
  7. Heindl Steffanie, Gesierich Benno, Benakis Corinne, Llovera Gemma, Duering Marco and Liesz Arthur. (2018, April). Automated morphological analysis of microglia after stroke. Front Cell Neurosci 12, 106. [DOI] [PMC free article] [PubMed] [Google Scholar]
  8. Hemonnot Anne-Laure, Hua Jennifer, Ulmann Lauriane and Hirbec HÉLÉNE. (2019, August). Microglia in alzheimer disease: Well-Known targets and new opportunities. Front Aging Neurosci 11, 233. [DOI] [PMC free article] [PubMed] [Google Scholar]
  9. Johnson Rodney W. (2014, October). Feeding the beast: can microglia in the senescent brain be regulated by diet? Brain Behav Immun 43, 1–8. [DOI] [PMC free article] [PubMed] [Google Scholar]
  10. Long-Smith Caitríona M, Sullivan Aideen M and Nolan Yvonne M. (2009, August). The influence of microglia on the pathogenesis of parkinson’s disease. Prog Neurobiol 89(3), 277–287. [DOI] [PubMed] [Google Scholar]
  11. Marshall S Alex, McClain Justin A, Kelso Matthew L, Hopkins Deann M, Pauly James R and Nixon Kimberly. (2013, January). Microglial activation is not equivalent to neuroinflammation in alcohol-induced neurodegeneration: The importance of microglia phenotype. Neurobiol Dis 54, 239–251. [DOI] [PMC free article] [PubMed] [Google Scholar]
  12. Milosević Nebojsa T and Ristanović Dusan. (2006, September). The sholl analysis of neuronal cell images: semi-log or log-log method? J Theor Biol 245(1), 130–140. [DOI] [PubMed] [Google Scholar]
  13. Monji Akira, Kato Takahiro and Kanba Shigenobu. (2009, June). Cytokines and schizophrenia: Microglia hypothesis of schizophrenia. Psychiatry Clin Neurosci 63(3), 257–265. [DOI] [PubMed] [Google Scholar]
  14. Paolicelli Rosa C, Sierra Amanda, Stevens Beth, Tremblay Marie-Eve, Aguzzi Adriano, Ajami Bahareh, Amit Ido, Audinat Etienne, Bechmann Ingo, Bennett Mariko, Bennett Frederick, Bessis Alain, Biber Knut, Bilbo Staci, Blurton-Jones Mathew, Boddeke Erik, Brites Dora, Brône Bert, Brown Guy C, Butovsky Oleg, Carson Monica J, Castellano Bernardo, Colonna Marco, Cowley Sally A, Cunningham Colm, Davalos Dimitrios, De Jager Philip L, de Strooper Bart, Denes Adam, Eggen Bart J L, Eyo Ukpong, Galea Elena, Garel Sonia, Ginhoux Florent, Glass Christopher K, Gokce Ozgun, Gomez-Nicola Diego, González Berta, Gordon Siamon, Graeber Manuel B, Green-halgh Andrew D, Gressens Pierre, Greter Melanie, Gutmann David H, Haass Christian, Heneka Michael T, Heppner Frank L, Hong Soyon, Hume David A, Jung Steffen, Kettenmann Helmut, Kipnis Jonathan, Koyama Ryuta, Lemke Greg, Lynch Marina, Majewska Ania, Malcangio Marzia, Malm Tarja, Mancuso Renzo, Masuda Takahiro, Matteoli Michela, McColl Barry W, Miron Veronique E, Molofsky Anna Victoria, Monje Michelle, Mracsko Eva, Nadjar Agnes, Neher Jonas J, Neniskyte Urte, Neumann Harald, Noda Mami, Peng Bo, Peri Francesca, Perry V Hugh, Popovich Phillip G, Pridans Clare, Priller Josef, Prinz Marco, Ragozzino Davide, Ransohoff Richard M, Salter Michael W, Schaefer Anne, Schafer Dorothy P, Schwartz Michal, Simons Mikael, Smith Cody J, Streit Wolfgang J, Tay Tuan Leng, Tsai Li-Huei, Verkhratsky Alexei, von Bernhardi Rommy, Wake Hiroaki, Wittamer Valérie, Wolf Susanne A, Wu Long-Jun and others. (2022, November). Microglia states and nomenclature: A field at its crossroads. Neuron 110(21), 3458–3483. [DOI] [PMC free article] [PubMed] [Google Scholar]
  15. Patel Anita R, Ritzel Rodney, McCullough Louise D and Liu Fudong. (2013, May). Microglia and ischemic stroke: a double-edged sword. Int J Physiol Pathophysiol Pharmacol 5(2), 73–90. [PMC free article] [PubMed] [Google Scholar]
  16. Prinz Marco, Jung Steffen and Priller Josef. (2019, October). Microglia biology: One century of evolving concepts. Cell 179(2), 292–311. [DOI] [PubMed] [Google Scholar]
  17. Sholl D A. (1953, October). Dendritic organization in the neurons of the visual and motor cortices of the cat. J Anat 87(4), 387–406. [PMC free article] [PubMed] [Google Scholar]
  18. Sierra Amanda, Paolicelli Rosa C and Kettenmann Helmut. (2019, October). Cien años de microglía: Milestones in a century of microglial research. Trends Neurosci 42(11), 778–792. [DOI] [PubMed] [Google Scholar]
  19. Sipe GOea, Lowery RL, Tremblay M-è, Kelly EA, Lamantia CE and Majewska AK. (2016). Microglial p2y12 is necessary for synaptic plasticity in mouse visual cortex. Nature communications 7(1), 1–15. [DOI] [PMC free article] [PubMed] [Google Scholar]
  20. Takano Tomoyuki. (2015, May). Role of microglia in autism: Recent advances. Dev Neurosci 37(3), 195–202. [DOI] [PubMed] [Google Scholar]
  21. Tang Yu and Le Weidong. (2015, January). Differential roles of M1 and M2 microglia in neurodegenerative diseases. Mol Neurobiol 53(2), 1181–1194. [DOI] [PubMed] [Google Scholar]
  22. Tynan Ross J, Naicker Sundresan, Hinwood Madeleine, Nalivaiko Eugene, Buller Kathryn M, Pow David V, Day Trevor A and Walker Frederick R. (2010, February). Chronic stress alters the density and morphology of microglia in a subset of stress-responsive brain regions. Brain Behav Immun 24(7), 1058–1068. [DOI] [PubMed] [Google Scholar]

Associated Data

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

Supplementary Materials

Supplement 1

Articles from bioRxiv are provided here courtesy of Cold Spring Harbor Laboratory Preprints

RESOURCES