With BrainGlobe and napari
Run
To check whether this worked:
Adapted from https://github.com/HealthBioscienceIDEAS/microscopy-novice/ (under CC BY 4.0 license)
File > Open Files(s)
, then navigate to calcium imaging folder
and open translation1_00001_ce.tif
Try moving around the image with the following commands:
Pan - Click and drag
Zoom - Scroll in/out
The viewer buttons (the row of buttons at the bottom left of Napari) control various aspects of the Napari viewer:
Console
2D/3D /
Roll dimensions
Transpose dimensions
Grid
Home
This area shows controls only for the currently selected layer (i.e. the one that is highlighted in blue in the layer list).
Create and remove.
Points
Shapes
Labels
Remove layer
Note that there are some layer types that can’t be added via clicking buttons in the user interface, like
These require calling python commands in Napari’s console or an external python script.
Image
, Point
, Label
File > Open Files(s)
, then navigate to calcium imaging folder
and open translation1_00001_ce.tif
The type determines what kind of values can be stored in the array, for example:
The bit depth determines the range of values that can be stored e.g. only values between 0 and \(2^{16}-1\).
NumPy supports a very wide range of data types, but there are a few that are most common for image data:
NumPy datatype | Full name | Range of values |
---|---|---|
uint8 |
Unsigned integer 8-bit | 0…255 |
uint16 |
Unsigned integer 16-bit | 0…65535 |
float32 |
Float 32-bit | \(-3.4 \times 10^{38}...+3.4 \times 10^{38}\) |
float64 |
Float 64-bit | \(-1.7 \times 10^{308}...+1.7 \times 10^{308}\) |
uint8
and uint16
are most common for images from light microscopes. float32
and float64
are common during image processing (as we will see in later episodes).
y
is the first coordinatez
is the first coordinateshape
and dtype
Now we understand what an image is, and how to look at it in napari, we can start measuring things! But we need to find (“segment”) “things” first!
Example of “semantic” segmentation
Example of “instance” segmentation
Established 2020 with three aims:
Initial observation - lots of similar communities working independently
Atlas Name | Resolution | Ages | Reference Images |
---|---|---|---|
Allen Mouse Brain Atlas | 10, 25, 50, and 100 micron | P56 | STPT |
Allen Human Brain Atlas | 100 micron | Adult | MRI |
Max Planck Zebrafish Brain Atlas | 1 micron | 6-dpf | FISH |
Enhanced and Unified Mouse Brain Atlas | 10, 25, 50, and 100 micron | P56 | STPT |
Smoothed version of the Kim et al. mouse reference atlas | 10, 25, 50 and 100 micron | P56 | STPT |
Gubra’s LSFM mouse brain atlas | 20 micron | 8 to 10 weeks post natal | LSFM |
3D version of the Allen mouse spinal cord atlas | 20 x 10 x 10 micron | Adult | Nissl |
AZBA: A 3D Adult Zebrafish Brain Atlas | 4 micron | 15-16 weeks post natal | LSFM |
Waxholm Space atlas of the Sprague Dawley rat brain | 39 micron | P80 | MRI |
3D Edge-Aware Refined Atlases Derived from the Allen Developing Mouse Brain Atlases | 16, 16.75, and 25 micron | E13, E15, E18, P4, P14, P28 & P56 | Nissl |
Princeton Mouse Brain Atlas | 20 micron | >P56 (older animals included) | LSFM |
Kim Lab Developmental CCF | 10 micron | P56 | STP, LSFM (iDISCO) and MRI (a0, adc, dwo, fa, MTR, T2) |
Blind Mexican Cavefish Brain Atlas | 2 micron | 1 year | IHC |
BlueBrain Barrel Cortex Atlas | 10 and 25 micron | P56 | STPT |
UNAM Axolotl Brain Atlas | 40 micron | ~ 3 months post hatching | MRI |
from brainglobe_atlasapi.bg_atlas import BrainGlobeAtlas
atlas = BrainGlobeAtlas("allen_mouse_25um")
reference_image = atlas.reference
print(reference_image.shape)
# (528, 320, 456)
annotation_image = atlas.annotation
print(annotation_image.shape)
# (528, 320, 456)
from pprint import pprint
VISp = atlas.structures["VISp"]
pprint(VISp)
# {'acronym': 'VISp',
# 'id': 385,
# 'mesh': None,
# 'mesh_filename': PosixPath('/home/user/.brainglobe/allen_mouse_25um_v0.3/meshes/385.obj'),
# 'name': 'Primary visual area',
# 'rgb_triplet': [8, 133, 140],
# 'structure_id_path': [997, 8, 567, 688, 695, 315, 669, 385]}
Serial section two-photon tomography
Fluorescence micro-optical sectioning tomography
Light sheet fluorescence microscopy
brainreg
cellfinder
cellfinder
cellfinder
cellfinder
brainglobe-segmentation
brainglobe-segmentation
brainglobe-segmentation
brainrender
brainrender
Expanding access
You are welcome to contribute to BrainGlobe - get in touch anytime and we will support you!