Summary
The precise dissection of anatomically defined brain regions is the basis of many workflows in neurobiology. Traditionally, brain regions of interest are defined by visual inspection of tissue sections, followed by manual dissection. Recently, laser capture microscopes have been employed for more accurate dissection, but region identification is still challenging. This paper presents an open-source software pipeline DART (Dissecting Atlas-Registered Tissue) that aligns histological brain sections to three-dimensional reference atlases and exports the resulting region-of-interest (ROI) contours for dissection by Leica Laser Microdissection (LMD) instruments. By integrating well-established image-processing libraries with a user-friendly graphical user interface, the software automates the traditionally time-consuming workflow of defining the boundaries of brain regions for dissection. With this pipeline, researchers can streamline tissue sampling for molecular analyses, while ensuring reproducibility and precision in ROI selection.
Statement of Need
There is a growing demand for precise, automated methods to identify and dissect regions of interest (ROIs) in histological brain sections. The brain is a highly heterogeneous organ with distinct molecular and connectomic profiles across constituent regions, making accurate region dissection critical for meaningful biological interpretation. For example, proteomic analysis of brain regions and bulk RNA sequencing approaches rely on the dissection of histologically defined brain regions1,2. Similarly, MAPseq and other barcoded connectomics techniques depend on the precise dissection of dozens to hundreds of brain regions to analyze how individual neurons project to these regions3–6. Laser microdissection (LMD) enables such precise dissection by cutting cell-stained tissue with an ultraviolet laser that can be controlled with high accuracy. However, current approaches using LMD generally rely on manual delineation of brain regions. This manual selection is error-prone and time consuming, especially when many samples need to be dissected. Moreover, the lack of a standardized region selection makes it difficult to ensure consistent, reproducible sampling across experiments and laboratories. There are many existing open-source tools that can align an image of a histological brain section to a reference brain atlas to identify and segment the brain regions (e.g. STalign, QuickNII, VisuAlign) 7,8. However, no tools exist that integrate atlas alignment of brain section images and brain region selection with Leica LMD software to enable the seamless and precise dissection of those regions.
Our open-source DART pipeline addresses this gap by providing:
Automated or semi-automated alignment of 2D brain sections to a 3D reference brain atlas (e.g., the Allen Brain Atlas CCFv3 20179) and atlas-based segmentation.
Seamless integration with Leica LMD software for laser dissection.
Clear documentation and an accessible, modular codebase, facilitating further development and customization by the community.
Additionally, DART facilitates high-throughput processing of brain sections by minimizing user engagement time. The majority of the existing user engagement time is spent estimating and manually adjusting the atlas-to-brain section transform, which is facilitated by DART’s intuitive controls. The remaining steps require minimal input, allowing the user to attend to other tasks.
Software Overview
Key Features
- Brain Section Preprocessing
- Automatic or user-assisted cropping and background intensity correction for raw histological images.
- ROI Definition and Export
- User-guided selection of atlas-defined regions in the aligned sections.
- Conversion of these regions into outlines, polygons, or shape files suitable for use by a Leica LMD (xml files).
- Ability to store metadata (e.g., atlas region names) along with the exported ROI shapes.
- GUI Control
- A GUI for real-time quality control and manual correction of section alignment.
- Modularity and Extensibility
- Written primarily in Python, making use of libraries such as scikit-image, NumPy, and PyTorch for image processing and transformations.
- Open-source architecture allowing advanced users to plug in new registration algorithms, customize region-detection heuristics, or adapt to different species and atlases.
- High-throughput Multi-Sample Processing
- Slide segmentation tools allow users to upload images of whole slides with multiple sections and export the ROI outlines.
- Integration with LMD
- Simple shape import process using Leica’s .xml template.
- Flexibility in selecting the magnification at which laser dissection of ROIs is performed, with the ability to switch between magnifications as needed without requiring redrawing of shapes.
Implementation and Architecture
-
Programming Languages and Dependencies
The core modules are implemented in Python, leveraging libraries such as Tkinter, NumPy, Matplotlib, STalign, Shapely, NiBabel, and Pynrrd.
- Overall Workflow (Figure 1):
- Input: The user provides high-resolution cell stained (e.g. DAPI or Nissl stained) images of the slide containing the brain section(s) (commonly in TIFF or PNG) and selects the corresponding section level in the 3D atlas.
- Section Definition: In the case that multiple sections are contained in a single image, the user delineates the bounding boxes for each section.
- Run STalign: A semi-automatic alignment between the atlas and the section(s) is performed using STalign.
- VisuAlign Adjustment: The user can visualize the atlas defined region boundaries on the cytoarchitecture to confirm alignment accuracy and, if necessary, manually adjust the alignment using VisuAlign.
- ROI Selection: The user selects ROIs (e.g., hippocampal subregions, cortical layers) to be exported. DART currently exploits the hierarchical region organization of the Allen Mouse Brain Reference Atlas to enable ROI definition of both coarse regions (e.g. primary motor area) and finer regions (e.g. layer 1 of primary motor cortex).
- ROI Export: These ROIs are then saved in an XML format that Leica LMD software can import, allowing precise laser dissections.
- Software Architecture:
- DART follows an object-oriented framework (Figure 2)
Figure 1. The DART workflow.
The 3D renderings of the Allen atlas were produced using brainrender9,10.
Figure 2. Class diagram of the object-oriented layout of DART.
Application
To demonstrate its utility, we applied DART to dissect the primary and secondary somatomotor areas and the anterior commissure from a coronal section of an adult mouse brain (Figure 3). Starting with a Nissl-stained section, we used DART to align the section to a DAPI-based atlas11 and generated outlines for the target regions. Importing these outlines into the Leica LMD system enabled precise laser cutting.
Figure 3. A DART use case.
A DART application begins with an image of the original section. It then generates a segmentation, selects desired regions, and exports to the LMD for cutting or etching with the laser as desired. Note: Images were restitched using the Stitching plugin in ImageJ12.
Discussion and Limitations
Our open-source workflow greatly simplifies consistent region identification and dissection across multiple brain sections. However, certain limitations remain:
Staining Variability: Significant differences in staining intensity or section thickness can reduce alignment accuracy.
Atlas Mismatch: Anatomical variability between individual subjects and the reference atlas may necessitate manual adjustment, especially in samples from disease models.
Tissue Damage: Significant deformation to sections from holes or tears in the tissue can reduce alignment accuracy.
ROI Complexity: Highly intricate or irregular regions might require manual editing of automatically generated ROIs.
Future improvements of DART may include support for alternative alignment algorithms, expanded atlas selection covering additional species and organ systems, and expanded compatibility with additional microscope systems beyond Leica LMD.
Conclusions
Here we present an open-source pipeline that aligns histological brain sections to 3D reference atlases and seamlessly exports brain-region defined ROIs for Leica Laser Microdissection. By automating key steps in the tissue sampling process, researchers can reduce manual labor, improve reproducibility, and accelerate downstream molecular assays. The modular, documented codebase invites community contributions and adaptation to new species, atlases, and laboratory workflows.
Supplementary Material
Acknowledgments
We would like to thank the open-source community for providing foundational libraries such as VisuAlign, STalign, and Tkinter. This work was supported by SFARI grant 875575 and NIH grants DP1DA056668 and RF1AG078378 to JMK and a Kavli NDI Distinguished predoctoral fellowship to MA.
Footnotes
Installation:
DART is distributed as a pre-compiled Windows binary in a standalone folder that includes all necessary dependencies. To use the software, download and extract the entire folder from the Google Drive link, then run the main.exe file inside—no installation or separate Python environment is required. See the tutorial for instructions on usage.
Data Collection
All mouse procedures were conducted in accordance with the Johns Hopkins University Animal Care and Use Committee (ACUC) protocols MO20M376 and MO23M346. Mice were maintained on a 12-hour light/dark cycle with ad libitum access to food and water. Brain sections for LMD were prepared as previously described13.
Conflicts of interest
The authors declare no conflicts of interest.
Code Availability:
DART is hosted on Github: https://github.com/rk324/Dissecting-Atlas-Registered-Tissue
References
- 1.Webb A. et al. RNA sequencing of transcriptomes in human brain regions: protein-coding and non-coding RNAs, isoforms and alleles. BMC Genomics 16, 990 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Goto-Silva L. & Junqueira M. Single-cell proteomics: A treasure trove in neurobiology. Biochimica et Biophysica Acta (BBA) - Proteins and Proteomics 1869, 140658 (2021). [DOI] [PubMed] [Google Scholar]
- 3.Huang L. et al. BRICseq Bridges Brain-wide Interregional Connectivity to Neural Activity and Gene Expression in Single Animals. Cell 182, 177–188.e27 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Kim H., Qi H., Washington C., Liang X. & Kebschull J. M. MAPseq2: a sensitive and cost-effective barcoded connectomics method. bioRxiv 2025.06.23.661165 (2025) doi: 10.1101/2025.06.23.661165. [DOI] [Google Scholar]
- 5.Kebschull J. M. et al. High-Throughput Mapping of Single-Neuron Projections by Sequencing of Barcoded RNA. Neuron 91, (2016). [Google Scholar]
- 6.Chen X. et al. High-Throughput Mapping of Long-Range Neuronal Projection Using In Situ Sequencing. Cell 179, 772–786.e19 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Puchades M. A., Csucs G., Ledergerber D., Leergaard T. B. & Bjaalie J. G. Spatial registration of serial microscopic brain images to three-dimensional reference atlases with the QuickNII tool. PLoS One 14, (2019). [Google Scholar]
- 8.Clifton K. et al. STalign: Alignment of spatial transcriptomics data using diffeomorphic metric mapping. Nat Commun 14, (2023). [Google Scholar]
- 9.Wang Q. et al. The Allen Mouse Brain Common Coordinate Framework: A 3D Reference Atlas. Cell 181, (2020). [Google Scholar]
- 10.Claudi F. et al. Visualizing anatomically registered data with brainrender. Elife 10, (2021). [Google Scholar]
- 11.Stæger F. F. et al. A three-dimensional, population-based average of the C57BL/6 mouse brain from DAPI-stained coronal slices. Sci Data 7, (2020). [Google Scholar]
- 12.Preibisch S., Saalfeld S. & Tomancak P. Globally optimal stitching of tiled 3D microscopic image acquisitions. Bioinformatics 25, 1463–1465 (2009). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13.Kim H., Xu C., Washington C., Lowmann M. & Kebschull J. M. Mapping the projectional architecture of the mouse midbrain dopaminergic system using cell type-specific barcoding. bioRxiv 2025.06.25.661405 (2025) doi: 10.1101/2025.06.25.661405. [DOI] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.



