For any questions, or if you encounter problems configuring the environment to run the app/tool, please email: [email protected].
This repository (https://github.com/bingxinghuo/brainatlascomparison/) contains the Matlab tool for the paper "Establishing neuroanatomical correspondences across mouse and marmoset brain structures." (Mezias et al. bioRxiv) There are two versions of the tool:
- A standalone Matlab App for users without Matlab license. (Installing Matlab Runtime is necessary, though.)
- A command line tool within the Matlab interface for Matlab users to maximize accessibility of the code.
Compatibility warning: The tool was developed in Matlab R2022a on macOS Monterey, and tested in Matlab R2023a, R2023b, R2024a, on macOS Monterey, Ventura, and Sonoma. The standalone Matlab App must be run with the compatible MatLab Runtime (see below). For any other compatibility issues with newer versions of Matlab, macOS, and other platforms including Windows and Linux environments, please refer to the System Requirements information provided by MathWorks.
(We thank the Anonymous Reviewer for contributing to the compatibility testing.)
1. Matlab App for visualizing atlas hierarchy and homologous correspondences in marmoset and mouse brains
The tool provides a graphical interface to visualize the corresponding brain regions in mouse and marmoset, and their respective positions in the atlas hierarchy.
-
Download the zip file of marmoset_mouse_region_compare_app_v2024.zip
-
Download and install Matlab Runtime, which does not require a Matlab license, using the links below. It also contains instruction for alternative approaches when Matlab Runtime installation fails.
Note: Please only install the exact Matlab Runtime version as given by the following links:
MATLAB Runtime R2022a (9.12) for Mac
MATLAB Runtime R2022a (9.12) for Windows
MATLAB Runtime R2022a (9.12) for Linux
Note: During installation, it asks you to choose a directory. (example screenshot below in mac)
Then it shows the installation folder. Please keep this information. (example screenshot below in mac)
-
To launch the App, in Terminal/command line tool, go to the directory of unzipped marmoset_mouse_region_compare_app_v2024 folder, run
./run_marmoset_mouse_region_compare_app.sh /Applications/MATLAB/MATLAB_Runtime/v912
Note: This will help you set the environment variables automatically.
- Once launched, you should see "Select region" under either "Mouse" or "Marmoset". You may open up the list, or type in region acronym according to the nomenclature in respective atlases (Allen Mouse Brain Atlas and Paxinos Marmoset Brain Atlas).
- The "Status" indicator on upper right corner turns yellow when the App is running and green when the results are displayed.
Note: Images of mouse and marmoset brains are not to scale. They are purely for demonstration purposes to visualize the location of brain regions.
2. Matlab interface tool for visualizing atlas hierarchy and homologous correspondences in marmoset and mouse brains
This tool works in the Matlab environment which requires you to have an active Matlab license.
- Pull this repository to your local Matlab path. Necessary folders and file:"data", "viewbrains", "viewhierarchy", "utilities", and "marmoset_mouse_region_compare.m"
- In the local directory, run "marmoset_mouse_region_compare.m" in the Matlab command interface.
There will be text prompts in the command line that requests text inputs. After each input, press enter/return.
- The user will be asked to specify a species: mouse (1) or marmoset (2).
- The user is asked to enter "a brain region (ID, acronym, or partial region name)." Here "ID" is the exact numeric identification number given in the atlas; "acronym" is the exact acronym used in the atlas. "Partial region name" provides an ambiguous option, where one can enter the text that is only a part of the full name of the brain region.
Note: The mouse brain atlas is Allen Mouse Brain Atlas. The hierarchy with region names are available at Mouse Connectivity Home -- Brain Architecture Project.
The marmoset brain atlas is Paxinos Marmoset Brain Atlas. The hierarchy with region names are available at The Marmoset Brain Architecture. - When there are multiple brain regions associated with the input text, a list of brain regions will show up. The user will be asked to specify which region they are querying by entering the index number as shown in the first column of the list.
- Pop-up windows will appear showing:
- 3D view comparisons of the brain region and subregions in the two reference atlases
- Coronal view comparisons of the brain region and subregions
- Hierarchical structures of the region's parent regions and all children branches.