Skip to content

About

BrainGlobe installation guide, sample data, and custom scripts

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Overview

BrainGlobe workflow

Workflow

Before BrainGlobe: Obtain high-resolution, volumetric data (e.g., BrainSaw, serial 2P, whole-brain light sheet, etc)

  1. 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.
  2. 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.
  3. 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.
  4. Brainrender: Visualizations. Using custom or sample scripts, generate visualizations (e.g., detected cells in 3D atlas space, implant locations, heatmap gene expression levels, etc).
  5. 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

Installation

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

Open BrainGlobe

conda activate brainglobe
napari

Official documentation

BrainGlobe Documentation

brainreg Documentation
cellfinder Documentation
brainrender Documentation
brainrender Sample scripts (GitHub)

brainmapper (widget) Documentation
brainmapper (command line tool) Documentation

Jupyter Lab (Optional)

conda activate brainglobe
pip install jupyterlab ipykernel
python -m ipykernel install --user --name=brainglobe

About

BrainGlobe installation guide, sample data, and custom scripts

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages