Introduction

Evaluating brain structure is a critical confirmatory step for much of systems neuroscience. These evaluations make it possible to determine the presence, location and extent of lesions and to confirm the location of electrodes implanted for physiological recordings. Analyses of brain structure often rely on histological sectioning and light-microscopic analysis. Although such a technique provides a high-resolution view of brain structures, it is time-consuming, difficult to scale for high-throughput analyses, and, perhaps most problematic, it destroys the three-dimensional structure of the brain. Additionally, histological processing is often accompanied by descriptive analyses and not quantitative evaluation. Newer tissue clearing methods1,2 maintain the three-dimensional structure of the brain for high resolution imaging, but remain expensive, labor intensive, and not well suited to evaluate lesions or electrode localization, mainstays of systems neuroscientific inquiry. Micro-CT presents an excellent middle ground for evaluating large-scale three-dimensional brain anatomy while maintaining the original structure3,4,5,6,7,8,9, providing an excellent substrate for subsequent quantitative analyses10,11,12,13,14,15.

The majority of studies that visualize neuroanatomy using micro-CT have not evaluated the technique for quantifying brain lesions and electrode placement, instead focusing on tumors4,5,16, cavernous malformations10,17, disease pathology15,18,19,20 and cellular and subcellular visualization11,12,13,21,22. A recent protocol was developed for micro-CT imaging of lesions and electrode placement8 providing an elegant proof of principle of the use of micro-CT for systems neuroscience. However, that protocol, although clear and well described, contains many involved steps, some of which require expensive and hazardous elements, including osmium. It also removed the skull prior to imaging, leaving out valuable information and removing a structural support for neural hardware. Furthermore, in using osmium, it becomes far more challenging to process the brain for subsequent standard histologic techniques, requiring a decision to be made between either imaging the full three-dimensional volume, or using standard histologic processing.

Phase contrast micro-CT has proven capable of solving all of the above-mentioned problems. Utilizing phase contrast techniques to process micro-CT images generates sufficient contrast in the brain3,6,7,9,15,23 without heavy metals or complex protocols. In addition, brain structures can be resolved with the overlying skull intact9, histology can be performed on the same samples following the CT5,11,14,15,16,20,21,24, and laborious embedding of the tissue is not necessary5. Furthermore, leaving the skull intact provides structural support for implanted electronic hardware, enabling electrodes to be imaged with minimal disruption to their location during recordings. However, phase contrast processing, to the best of our knowledge, has not been applied to brains with recording electrodes in place, nor has it been used to evaluate brains lesioned for behavioral studies. Moreover, quantitative approaches to electrode localization or lesion quantification using phase contrast processing have not been presented.

Here we present a scalable and inexpensive protocol utilizing monochromatic X-rays and propagation phase contrast to image and quantify brain lesions and electrode locations within the brain. We adapt decalcification techniques25,26 to image the brain with critical parts of the skull intact. Furthermore, we avoid any dehydration or embedding of the tissue, and enhance contrast to the post-mortem brain using eosin as an additional contrast agent27,28. The resulting protocol allows for evaluation of brain structure relative to the coordinates determined by skull sutures and permits further processing with standard histologic techniques.

Results

Brain structure with intact skull

We sought to develop a protocol that does not require osmication, dehydration of the tissue, nor embedding in resin or paraffin, but could still provide sufficient contrast to image brain structures in the presence of electrodes or lesions. We wanted to avoid osmication and other heavy metals as they can add laborious steps to the processing of the brain and can often add significant expense. We wanted to avoid dehydration of the tissue and embedding in resin or paraffin as these techniques often lead to substantial shrinkage of tissue29,30. We therefore adapted protocols using eosin27,28 to provide enhanced contrast within the brain, and imaged the brain using monochromatic X-rays at the Advanced Light Source (ALS) at Lawrence Berkeley National Lab.

Typically, the skull is removed to image the brain, as it provides a barrier for X-ray transmission. However, the skull provides the reference frame for the stereotactic coordinates utilized to target specific brain structures while the animal is alive. Removing the dorsal skull therefore discards a piece of information critical for evaluating and refining anatomical targeting. Furthermore, the skull also provides a rigid structure to prevent alterations to the brain dimensions due to histological processing. Therefore, in addition to processing the brain with eosin, we adapted decalcification techniques to leave most of the skull in place but allow for more transmitted X-rays to better resolve brain anatomy. Leaving the skull intact also allowed for a direct confirmation that the brain maintained its integrity through the processing and imaging (see Anderson and Maga31 for a counterexample showing brain shrinkage relative to the skull).

With our method we are able to image the whole rat brain with the overlying skull (Fig. 1 & Vid 1). The eosin combined with phase contrast processing provides sufficient contrast to the brain to allow for the visualization of many different brain regions. Given that the imaging provides a three-dimensional volume, we can virtually section the brain to any given region of interest along any plane of interest (Fig. 1b). Having the skull intact allows for setting the frame of reference of the brain as one would in surgery by leveling bregma and lambda.

Figure 1
figure 1

Micro-CT image of the intact brain with overlying skull. (a) Three-dimensional representation of the overlying skull. (b) The same brain and skull from (a), virtually sliced along the sagittal plane (top), horizontal plane (bottom right) and coronal plane (bottom left). The increased signal in the parts of the skull, seen most clearly in the sagittal section, is most likely due to variable amounts of decalcification.

An advantage of using eosin as a contrast agent is that eosin is a commonly used stain for histology, and therefore still allows for classic histologic imaging following the micro-CT. Therefore, using the same brain, following the micro-CT, we sectioned the brain and stained it with Cresyl Violet to demonstrate the Nissl substance in the neurons. Nissl-stained brain sections exhibited well preserved morphology and can be used as anatomic reference to corresponding micro-CT virtual slices (Fig. 2). The Nissl-stained brains also confirmed the preservation of relevant brain structure through the preparation and imaging steps.

Figure 2
figure 2

Comparison of virtual slices to standard histological sections following Nissl (Cresyl Violet) stain. The same brain was utilized for both imaging modalities. (ae) show different coronal slices along the anterior–posterior axis. Within each slice, sample brain regions and anatomic landmarks that can be visualized both in the CT and Nissl stain are indicated using the brain atlas by Paxinos and Watson53. Scale bar in (a) reflects scaling for all panels.

Lesion visualization and quantification

Lesioning a given brain region allows for the determination of the necessity of that brain region for specific behaviors and guides the interpretation of physiological data recorded from that brain region. Previously, micro-CT has been shown to be useful to evaluate brain lesions8. To validate the usefulness of our method for lesions we imaged the presence of bilateral hippocampal lesions and bilateral dorsomedial striatal (DMS) lesions.

The bilateral hippocampal lesions were clearly visible in the micro-CT image (Fig. 3a). Lesioning the hippocampus effectively created a hole in the brain at the location of the hippocampus. Lesioning the DMS created a far more subtle change to the brain, and that change could still be identified with our methodology (Fig. 3b,c). For the DMS lesion, the ventricles enlarged, which would mask the full size of the lesion.

Figure 3
figure 3

Visualization of hippocampal and DMS lesions. (a) Virtual coronal slice through brains that underwent control surgery (left) and hippocampal lesion surgery (right). (b) Virtual coronal slice through brains that underwent control surgery (left) and DMS lesion surgery (right). Brains in panels (a) and (b) were from different animals. (c) Zoomed in visualization of the bilateral DMS lesion from the brain in (b), as demarcated by the blue rectangle. Arrowheads point to the location of the DMS lesions, shown in both the virtual slice of the CT (left) and the corresponding histology image of the same brain (right).

Quantification of the extent of the lesion could be done by image segmentation, as was done with previous micro-CT processing8; however, image segmentation is laborious and prone to subjectivity. Therefore, given the stark difference caused by the hippocampal lesions, we sought a more automatable and objective approach for quantifying the presence and extent of hippocampal lesions.

We processed and collected micro-CT images of 25 rat brains—12 rats underwent control surgery and 13 rats underwent hippocampal lesion surgery (see Methods). We aligned all brains to a common reference and created a mask to extract the three-dimensional region of the hippocampal formation across all brains (Fig. 4a). We calculated the similarity of all pairs of brains from each virtual slice using SSIM (Fig. 4b), a similarity metric designed to capture the perceptual similarity between images32,33. We clustered the brains using hierarchical clustering based on the average pairwise similarity matrix across the bilateral dorsal hippocampal formation and bilateral dorsal-most portion of the intermediate hippocampal formation (the portion of the hippocampal formation that was lesioned (Table 1)). The lesion and control brains separate into different groups by the clustering (Fig. 4c).

Figure 4
figure 4

Quantification of hippocampal lesions. (a) Example virtual slices from a control surgery (top) and hippocampal lesion surgery (bottom) following aligning all brains and selecting the region of the slice that contains the hippocampal formation. Dorsal hippocampus is shown along the anterior–posterior axis and intermediate hippocampus is shown along the dorsal–ventral axis. Jagged edges seen in the dorsal–ventral slices reflect the fact that the mask was created and interpolated along the anterior–posterior axis. Scale bar applies to all images within this panel. (b) Pairwise structural similarity metric (SSIM) between all pairs of brains. Each pixel represents the value of the SSIM averaged across all virtual slices bilaterally throughout the dorsal hippocampal formation and the most dorsal part of the intermediate hippocampal formation. Matrix is ordered based on the hierarchical cluster from panel (c) as indicated by the group labels at top. Dotted blue lines demarcate the major groups from panel (c). Left axis shows which are the control and lesion brains. (c) Dendrogram showing the results of the hierarchical clustering of the similarity matrix from panel (b). The hierarchical clustering is used to determine the appropriateness of separating lesion from control brains based upon the structure of the similarities between the brains, as show in panel (b). Brains labeled as either control (C, black lines) or lesion (L, green lines). (d) Median (± interquartile range) similarity of control (black) and lesion (green) brains to nearest control brain as a function of anatomical location. This metric indicates the most similar a given brain is to a control brain. Top left and right plots show the similarity metric calculated along anterior–posterior axis of the right and left dorsal hippocampus. Bottom left and right plots show the similarity metric calculated along the dorsal–ventral axis of the right and left intermediate/ventral hippocampus, respectively. As the hippocampus is curved, we analyzed the different parts of the hippocampus (dorsal vs. intermediate/ventral) separately. Additionally, left and right sides of the brain were kept separate to evaluate the extent of the lesion across both hemispheres of the brain.

Table 1 Stereotaxic coordinates of NMDA infusions to produce lesions within the hippocampal formation.

To visualize the extent of the lesion, for all brains and virtual slices we found the most similar control brain and then plotted those values for the group of control and lesion brains across the dorsal and intermediate/ventral hippocampus for both the left and right sides of the brain (Fig. 4d). Across the entire extent of the dorsal hippocampus, and the initial part of the intermediate hippocampus the two groups of animals were clearly separate. Towards the later part of the intermediate hippocampus and into ventral hippocampus the brains were indistinguishable, both being similar to control brains. This is consistent with the intended location of the lesions, since far intermediate and ventral hippocampus were not targeted (Table 1).

Finally, we also verified that the area of the lesion found on the virtual slices of the CT is in close agreement with the area of the lesion found on histological sectioning (Fig S3). The ability to carry out that comparison is a key advantage of our method.

Electrode localization

To be able to interpret the physiological data recorded from implanted electrodes, it is critical to determine the anatomical location from which that electrode was recording. Although new methods have been developed to localize electrode in vivo while the animals is alive34, it remains most practical to evaluate electrode location postmortem. Beyond just providing potentially useful landmarks, the skull also provides a stable structure to support a microelectrode drive, thereby enabling minimal disruption of electrodes during processing and scanning. Therefore, we evaluated if we could image functional electrodes implanted in the brain and assess their location relative to brain structures. Independently moveable tetrodes were implanted above dorsal and intermediate hippocampus and recordings were taken as animals explored a spatial environment. Subsequently the animal was sacrificed, and the skull and brain prepared for imaging with the microdrive remaining on the skull to minimally disrupt the electrodes. The brain, with skull and microdrive intact, underwent imaging with micro-CT.

The electrodes were easily visualized, and the resolution was sufficiently fine to distinguish the four individual electrodes that comprised each tetrode wire (Fig S4a). Although the hardware used to stabilize the microdrive on the skull degraded the imaging quality somewhat, there remained sufficient signal to resolve the pyramidal cell layer of the hippocampus (Fig. 5a). All that was required to identify individual electrodes was a visual comparison of the layout of the canula of the drive and the arrangement of the electrodes from the micro-CT (Fig. 5b).

Figure 5
figure 5

Visualization and quantification of electrode localization. (a) Virtual coronal slice through a brain with 22 tetrodes implanted, two of which can be visualized in the slice. (b) Virtual horizontal slice through the tetrodes (left). This image was processed to highlight the tetrodes (see Table 2 for parameters). Image of the bottom of the canula of the drive implanted into the brain (right) with the locations of the different tetrodes numbered. Xs indicate locations that did not have tetrodes. (c) Two-dimension coordinate system defined by the most anterior part of the hippocampal cell layer (Fig S4b) and the lateral part of hippocampal cell layer at the point of intermediate hippocampal fusion (Fig S4b). Left-most gray lines show the locations of the medial part of dentate gyrus cell layer for 12 different brains. Rightmost gray lines show the locations of the lateral part of the hippocampal cell layer. Diamonds demarcate the same points for the electrode implanted brain. Circles represent the location of the electrode implanted into the brain (one tetrode was utilized as reference and was therefore not included in this plot). Colors within the circles show the mean phase offset of the theta rhythm in the local field potential relative to the electrode denoted by the white circle. (d) Example local field potential recordings from electrodes from 4 different tetrodes with traces colored by the phase offset. Black, top, trace is the comparison electrode (white circle in (c)). Vertical dotted lines indicate the peak of the theta rhythm in the comparison (top) trace.

As with the lesions, here, with the electrodes, the goal is not just to visualize, but to also extract relevant quantitative information. Again, it would be possible to perform image segmentation for the hippocampal cell layer, but that would be quite laborious and subjective at the most critical parts due to the large signal produced by the electrodes. Instead we sought to extract coordinates that could form the basis of a systematic two-dimensional space on which we could place the locations of the electrodes. For this analysis, we were most interested in a two-dimensional space for the anterior–posterior and medial–lateral axis, since the electrodes were moved over the course of the recording, thereby making the dorsal–ventral coordinates of the CT not representative of the recording location.

We took advantage of the control brains that we scanned for the lesion cohort (n = 12) and utilized those brains to define a consistent two-dimensional coordinate system. As the origin of the space we utilize the center of most anterior portion of the hippocampal CA1 cell layer (Fig S2b). And then as point 1,1 we utilized the lateral extent of the hippocampal (CA1/2/3) cell layer at the point where the dorsal and ventral portions of the hippocampus fuse to form intermediate hippocampus (Fig S2b). We chose these points as they were easily visible in all brains and would be likely visible in an electrode implanted brain as well. Within this space, we then plotted, for each brain, sample locations of the lateral aspect of the hippocampal cell layer and the medial aspect of the dentate gyrus cell layer from anterior to posterior (Fig. 5c & S4b). Across all brains the locations were very similar.

We then aligned the brain with the implanted electrodes to the same reference brain as the lesion cohort and normalized the space by locating the equivalent points. In this normalized space, the lateral aspect the hippocampal cell layer and the medial aspect of the dentate gyrus cell layer fell within the range of the control brains, confirming the uniformity of the space. This then allows for the placement of the anterior–posterior and medial–lateral location of the electrodes (Fig. 5c).

As the goal of localizing the electrodes is to inform the physiology recorded on those electrodes, we took advantage of the finding of theta phase offset in the local field potential as the hippocampus evolves along its septo-temporal axis35,36. Within this two-dimensional space we confirmed a phase offset of the theta rhythm as the hippocampus progresses from dorsal to intermediate (Fig. 5c,d) (see Methods). Furthermore, this technique provides a straightforward reference to measure and discover further axes along which such things could vary.

Discussion

We have presented a cost-effective and scalable protocol for utilizing micro-CT to image postmortem brain structure with the overlying skull (Fig. 1 & Vid 1). The protocol allows for the visualization (Fig. 3) and quantification of lesions (Fig. 4), and localization of electrodes (Fig. 5) within the brain. As contrast for the micro-CT is provided by eosin and phase contrast processing, the processing for the presented protocol does not preclude further histological sectioning and imaging of the brain (Fig. 2).

This work builds upon a prior protocol, developed for systems neuroscientific questions. That protocol uses osmium as the contrast agent for micro-CT8, which allows for use with commercially available micro-CT machines. Our protocol offers three key advantages over that previous protocol for systems neuroscience. First, our protocol does not require multiple hazardous processing steps such as osmication, dehydration and resin embedding—as described in Masís et al.8—replacing it with a single step of 5% eosin in water. Second, it allows for brain imaging with a partially intact skull, permitting the direct measurement of skull landmarks relative to brain structures, and if necessary, subsequent micro-CT of the eosin-stained brain without a skull (Fig S2b). Third, our protocol greatly simplifies the subsequent processing for histology as the eosin-stained tissue can be sectioned and imaged immediately after micro-CT as well as post-stained with a range of histological dyes, such as Cresyl Violet. Our microscopic analysis confirmed well-preserved neural morphology after incubation in 5% eosin (Fig. 2). Our protocol does, however, benefit from access to a synchrotron source to take full advantage of phase contrast processing. Although, there are a limited number of synchrotrons, they are available to all. Recent work has shown that phase contrast processing could be possible on commercially available micro-CTs13, allowing for future studies to potentially relax the need for a synchrotron source.

In developing the presented method, we sought to keep the protocol simple. Given the rapid advancement of micro-CT technology and processing, it is entirely possible that even further simplifications to the protocol could occur. Our goal was to use the method as a means towards neuroanatomic evaluation for systems neuroscience experiments. Given our ability to evaluate lesions and electrode placement, this method has achieved that goal. As such we have not compared our method to other plausible options, such as those using different staining techniques. Further studies can explore such comparisons.

Our protocol, while applied to the rat brain with a focus on the hippocampus, is compatible with other species and other brain regions. With the expansion of organisms used for genetic manipulations, neural recordings, and behavior this protocol can be very useful for all stages of the process. Our protocol also presents an excellent way to quickly generate a stereotactic atlas for guiding further experimentation. We note however, that micro-CT has limitations on the maximal field of view available, making this methodology less appropriate for larger brains.

There have been tremendous advances in recording technology to extract precise quantitative physiological information from many regions and cells throughout the brain37,38,39. However, the way in which we evaluate the precise locations at which those devices recorded often rests on descriptive and qualitative metrics. Given the ever-expanding corpus of precise anatomical information, there is a need to improve the precision and quantitation of electrode locations, and our protocol provides such an approach. It also allows for rapid and more objective quantification of lesion extent and other features that one might wish to compare across brains.

Methods

Animals

All experiments were conducted in accordance with US National Institutes of Health and University of California, San Francisco Institutional Animal Care and Use Committee (IACUC) guidelines. The experiments were approved by IACUC under protocol number AN174991. Datasets were collected from male Long-Evans rats that were fed standard rat chow (LabDiet 5001). Long-Evans rats used for the lesioning were either of a wild-type genotype or of a Fmr1 KO genotype40 and were bred at Medical College of Wisconsin, the remaining rats were purchased from Charles River. At the level at which we analyzed the brains, we did not observe any differences between genotypes, i.e. there was no significant grouping of WT or Fmr1 KO brains as a result of the hierarchical clustering of similarity of hippocampal regions (data not shown); therefore, we combined all brains for the analysis of the lesions. This lack of difference in gross anatomical features is consistent with prior report in the mouse41, but future studies using this method could explore finer level differences in the brains due to genotype, as has been found in deep cerebellar nuclei in the mouse42.

A total of 31 rat brains were used for analyses in this study. 1 WT male rat was used for the whole brain analysis and comparison to histology (Figs. 1, 2). 1 WT male rat was used to evaluate not using eosin and 1 WT male rat was used for comparison (Fig S2b). 1 WT male rat was used for evaluating electrode localization (Fig. 5). A total of 25 male rats were used for hippocampal lesion quantification (Figs. 3, 4). 12 of those rats (6 WT and Fmr1 KO) underwent control surgery, and 13 of those rats (7 WT and 6 Fmr1 KO) underwent hippocampal lesion surgery. 2 WT male rats were used for DMS lesion visualization. 1 of those rats underwent DMS lesion surgery and 1 underwent control surgery.

Surgery

Anesthesia was induced using ketamine, xylazine, atropine, and isoflurane. For the animals that underwent surgery, they were either implanted with a multielectrode microdrive, or underwent lesioning of the dorsal and intermediate hippocampus or the DMS. For the microdrive implant, craniotomies and accompanying durotomies were localized relative to bregma, the location of the of the anterior skull plates, and relative to bregma, were placed at + 2.6 along the mediolateral (ML) dimension and − 4.0 along the anteroposterior (AP) dimension for the dorsal hippocampal canula and + 4.7 ML and − 5.7 AP for the intermediate hippocampal canula. Screws were imbedded into the skull to support the acrylic casing that secured the microdrive onto the skull of the rat. For the hippocampal lesion rats, craniotomies were drilled bilaterally to allow for access to all 24 injection sites (Table 1) and the injection needle (33 gauge) was inserted through the dura. For each lesion site, the needle was lowered 0.1 mm below the target coordinates and then raised back to the target prior to injection. 120 nl of N-methyl-d-aspartic acid (NMDA) (10 mg/ml) was injected at each site at a rate of 0.1 µl/min. The needle was left at the site for 2 min after finishing the injection. The injection sites for the DMS lesion were: + 1.4 AP, ± 1.8 ML, − 5.0 DV and + 0.1 AP, ± 2.2 ML, − 4.8 DV. For the DMS lesion, 400 nl of NMDA (20 mg/ml) was injected at each of the 4 injection sites at a rate of 0.1 µl/min. The needle was left at the site for 2 min after finishing the injection. For the rats that underwent control surgeries, everything was the same as the lesion rats, except no NMDA was injected, and the needle did not dwell at the hypothetical injection site. The animals that underwent the lesion surgery (either with or without injection of the NMDA) received Diazepam 10 mg/kg intraperitoneally post-operatively.

Electrophysiological recording

Tetrodes were individually moved toward the hippocampus daily. Physiological data, digitized at 30 kHz, and was recorded using the SpikeGadgets data acquisition system and the Trodes software package (SpikeGadgets).

Processing for micro-CT

Prior to perfusion, animals were anesthetized with isoflurane, and then euthanized with pentobarbital. Animals were perfused intracardially with 100 mL of phosphate buffer solution (PBS), followed by 250 mL of chilled 4% paraformaldehyde in PBS. The skull was dissected out with the brain intact, with most of the facial bones trimmed off, and all soft tissues removed. A 5-mm-wide opening was made using a rongeur on the ventral side along the midline (optional), for improved diffusion of fixative. The sample was then placed in 50 mL of the same fixative for 48 h at 4 °C.

Subsequently, the sample was rinsed in PBS with 0.05% sodium azide (PBS-azide) and decalcified by placing it in a container with 250 mL of 8% ethylenediaminetetraacetic acid (EDTA) (Sigma-Aldrich) pH 7.5 containing 50 mM Tris and 0.05% sodium azide (Sigma-Aldrich) in water for 6–7 days at room temperature on an orbital shaker. We chose EDTA for decalcification as it has been shown to be minimally disruptive to cellular processes43,44. Furthermore, EDTA has been used successfully to evaluate precise electrode localization within the brain45. The solution was replaced once midway through the decalcification.

After rinsing again in PBS-azide, the decalcified skull was further trimmed to a final size on both anterior and posterior sides using a razor blade. Care was taken to avoid compressing or otherwise distorting the brain. The trimmed sample was placed in 50 mL of 5% Eosin Y (Sigma-Aldrich) in water for 6–7 days at 4 °C on an orbital shaker. The solution was replaced once after 48 h. The sample was then rinsed in PBS and stored in 50 mL PBS-azide at 4 °C prior to micro-CT scanning.

For histological imaging and staining, the brains (with skull removed) were either cut using a Vibratome 3000 (Leica Biosystems) or were incubated for 5 days in 30% sucrose for cryoprotection and sectioned frozen using a cryostat (Microm, Thermo Fisher Scientific). 50–80 um thick coronal sections were collected into a 24-well dish with PBS-azide and stored at 4 °C. Sections to image Nissl substance were mounted on adhesive slides, air-dried, and stained using a traditional cresyl violet staining protocol. Unmounted sections were imaged directly from wells in PBS.

Micro-CT scanning and image reconstruction

Scanning was done at beamline 8.3.2 (hard X-ray micro-tomography) at the Advanced Light Source (ALS) at Lawrence Berkeley National Laboratory (Fig S1). All scans were carried out at room temperature.

For the brain with the implanted microdrive, the brain anterior and posterior to the hippocampus were removed to decrease the width of the brain to minimize the field of view for the imaging. Furthermore, as many as possible of the skull screws were removed to minimize interference. As the microdrive was still attached to the skull via acrylic and remaining skull screws, it provided the support for the brain. Consistent with a previous protocol5 the brain was out of solution for the scanning. X-rays passed through the sample along the A–P/M–L axes as the sample rotated.

For the rest of the brains, the sample was placed snuggly in a conical tube and was not in solution (Fig S1), consistent with a prior protocol5. The DMS lesion brains (Fig. 3b) were in solutions during the scanning and we did not observe any gross differences in the quality of the scans. X-rays passed through the sample along the M–L/D–V axes as the sample rotated. This is the narrowest dimension of the brain, thereby allowing for the minimal field of view and finest pixel size (see Table 2), as limited by the number of pixels on the available detector at the beamline that can accommodate the full field of view of the brain.

Table 2 Scanning parameters and reconstruction parameters for TomoPy for all of the brains.

Monochromatic X-rays were generated using a multilayer mirror monochromator. Energy of 25 keV was used. The flux is approximately ~ 105 hν/sec/μm2. The source size is ~ 220 × 30 μm full width at half maximum, and the maximum beam size at the sample is ~ 40 mm × 4.6 mm. The sample was placed 54 cm from the scintillator (Fig S1) to enable the maximal usage of propagation phase contrast imaging available at the beamline (because of its small hutch, this is the maximal sample to scintillator distance for this beamline). For each scan, a total of 1313 projection angles with an exposure time of 100–125 ms each were used (Table 2). Detection was accomplished with a 0.5 mm thick YAG:Ce scintillator, a Nikon zoom lens, and a PCO.Edge sCMOS detector. The zoom was set to resolve 7 µm lines and spaces (14 µm period) on a test pattern in 2 dimensions. We did not measure precisely the 3-dimensional resolution as it was not necessary for the conclusions of this study, but our results are consistent with an approximately 14 µm isotropic resolution. Radiation dose was not calculated for this study as we did not detect any detrimental effects of the scanning at the resolution used. Brains scanned multiple times maintained their image quality and did not show any degradation from the radiation doses used (Fig S2a).

The images were reconstructed using TomoPy46 using a script designed at the ALS (https://bitbucket.org/berkeleylab/als-microct-python/src/master/tomopy832/tomopy832.py). See Table 2 for the parameters used for the reconstruction of the various brains. Multiple tiles were manually stitched together to create the final imaged volume (Table 2). It is the stitching together of the multiple tiles that causes the striped patterning see in (Fig. 1 & Vid 1). Phase retrieval was accomplished using the standard Paganin method47, as implemented in TomoPy.

We confirmed the benefits of the eosin staining by processing and imaging a brain without eosin and found that the eosin provided substantial improvements in contrast (Fig S2b).

Image visualization and analysis

Fiji48,49,50 was used to visualize virtual slices of the brain and to create a mask of the hippocampal region for the lesion analysis using the Segmentation Editor tools. Imaris (Oxford Instruments) was used for three-dimensional reconstruction of the brain. Slicer-3D 4.10.2 (https://www.slicer.org/)51,52 was used to register and align the brains (http://hdl.handle.net/1926/1291) by finding the linear transformation (rotation and translation) to place the entirety of the imaged brains into a shared coordinate system. The alignment of the brains was not restricted to align any specific region of the brain (such as just the hippocampus) and rather worked to best align the whole brain and skull.

For the lesion analysis we were interested in understanding the similarity of the hippocampal formation between brains as that was the target of the lesioning. Therefore, we created a mask for the left and right hippocampal region. The mask was intentionally generous to ensure that the entire hippocampal formation was included for all brains. For each virtual slice we calculated the similarity between all pairs of brains using the structural similarity metric (SSIM)32,33. For SSIM we used a gaussian smoothing filter for the images with a sigma of 50 pixels. This allowed for better comparison between the brains due to inherent differences in the exact positioning of the brain structures. A dendrogram that grouped lesioned and control brains was calculated using single-linkage hierarchical clustering over the average SSIM for all pairs of brains. The similarity matrix was subtracted from 1 to create a dissimilarity matrix as the input to the hierarchical clustering.

Theta phase offset calculation

We also calculated the phase of the endogenous ~ 8 Hz theta rhythm at each electrode so that differences in phase across electrodes could be related to electrode locations. The local field potential (LFP) was defined as the voltage from each tetrode after being low-pass filtered below 400 Hz and down-sampled to 1.5 kHz. To extract theta oscillations, the LFP data were band-pass filtered with a Parks-McClellan optimal equiripple FIR filter (pass band between 4 and 10 Hz, stop bands below 3 Hz and above 11 Hz) applied in both the forward and reverse directions to prevent phase distortion35. Instantaneous theta phase was calculated as the angle of the Hilbert-transformed theta oscillation.

Analysis of theta phase was limited to time periods when the rat was running, which was defined as a body speed greater than 10 cm/s35. Instantaneous phase differences between pairs of tetrodes were measured as the angle between the complex phase vectors for each tetrode. For each running period, the average pairwise phase difference was calculated as the circular mean over time of the angle between phase vectors, and the average phase offset over the entire behavior session was calculated as the circular mean of individual average phase differences for each running period.