Before BrainGlobe: Obtain high-resolution, volumetric data (e.g., BrainSaw, serial 2P, whole-brain light sheet, etc)
Brainreg: Atlas registration. Select an appropriate atlas, at an appropriate age, at an appropriate resolution (e.g., Allen Adult Mouse Brain Atlas 25µm) for automatic transformation. Main output are deformation matrices which instruct how the template brain and sample brain spaces should transform to match each other. Optimize by changing parameters and re-running.Cellfinder: Cell detection. Load both raw 3D volumes of the signal and background channels for automatic cell detection. Main output are 3D coordinates of detected and rejected cells. Optimize by manual labelling cells, re-training the cell detection classifier, and re-running.- Combination of the two with
brainmapper: These two output (transformation and cell coordinates) are combined together, so cell coordinates will also be transformed to the sample brain space. Main output is an .npy file. Brainrender: Visualizations. Using custom or sample scripts, generate visualizations (e.g., detected cells in 3D atlas space, implant locations, heatmap gene expression levels, etc).- Custom scripts: This is entirely up to how the individual. Some sample scripts are included in this repo.
- Workflow:
brainreg→cellfinder→brainmapper(widget) →brainrender→ custom scripts
- Alternatively, if you want to batch process multiple brains with the same parameters and leave it running, you can run:
brainmapper(one-line command line tool) →brainrender
conda create -c conda-forge --name brainglobe python=3.12
conda activate brainglobe
conda install -c conda-forge niftyreg #mac users
pip install brainglobe "napari[pyqt6]"
pip install imageio-ffmpeg # optional
pip install brainglobe --upgrade # when time comes
conda activate brainglobe
napari
BrainGlobe Documentation
brainreg Documentation
cellfinder Documentation
brainrender Documentation
brainrender Sample scripts (GitHub)
brainmapper (widget) Documentation
brainmapper (command line tool) Documentation
conda activate brainglobe
pip install jupyterlab ipykernel
python -m ipykernel install --user --name=brainglobe