Read and write files from the BrainGlobe neuroanatomy suite
Project description
napari-brainglobe-io
Visualise cellfinder and brainreg results with napari
Installation
This package is likely already installed
(e.g. with cellfinder, brainreg or another napari plugin), but if you want to
install it again, either use the napari plugin install GUI or you can
install brainglobe-napari-io
via pip:
pip install brainglobe-napari-io
Usage
- Open napari (however you normally do it, but typically just type
napari
into your terminal, or click on your desktop icon)
brainreg
Sample space
Drag your brainreg output directory (the one with the log file) onto the napari window.
Various images should then open, including:
Registered image
- the image used for registration, downsampled to atlas resolutionatlas_name
- e.g.allen_mouse_25um
the atlas labels, warped to your sample brainBoundaries
- the boundaries of the atlas regions
If you downsampled additional channels, these will also be loaded.
Most of these images will not be visible by default. Click the little eye icon to toggle visibility.
N.B. If you use a high resolution atlas (such as allen_mouse_10um
), then the files can take a little while to load.
Atlas space
napari-brainreg
also comes with an additional plugin, for visualising your data
in atlas space.
This is typically only used in other software, but you can enable it yourself:
- Open napari
- Navigate to
Plugins
->Plugin Call Order
- In the
Plugin Sorter
window, selectnapari_get_reader
from theselect hook...
dropdown box - Drag
brainreg_read_dir_atlas_space
(the atlas space viewer plugin) abovebrainreg_read_dir
(the normal plugin) to ensure that the atlas space plugin is used preferentially.
cellfinder
Load cellfinder XML file
- Load your raw data (drag and drop the data directories into napari, one at a time)
- Drag and drop your cellfinder XML file (e.g.
cell_classification.xml
) into napari.
Load cellfinder directory
- Load your raw data (drag and drop the data directories into napari, one at a time)
- Drag and drop your cellfinder output directory into napari.
The plugin will then load your detected cells (in yellow) and the rejected cell candidates (in blue). If you carried out registration, then these results will be overlaid (similarly to the loading brainreg data, but transformed to the coordinate space of your raw data).
Loading raw data
Loading cellfinder results
Contributing
Please see the developers guide.
License
Distributed under the terms of the MIT license, "brainglobe-napari-io" is free and open source software
Issues
If you encounter any problems, please file an issue along with a detailed description.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file brainglobe-napari-io-0.3.0.tar.gz
.
File metadata
- Download URL: brainglobe-napari-io-0.3.0.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c418cd7179a1e38545fb47b43916a6bb0a683c4af9b63bcac944ca9d3d94757 |
|
MD5 | 653b7aef9256e35b22d87f3c5ab038b6 |
|
BLAKE2b-256 | 9c3cb1a788484daa7469f3d1f4a10faec3ab0eaeb3ed1f202e0633d636027eaa |
File details
Details for the file brainglobe_napari_io-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: brainglobe_napari_io-0.3.0-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21523a1f2c3b04216cac6298a770feae6944548a7eb6be8a4375bdb272cd4647 |
|
MD5 | 708b142c864446331982da8c90fc16ff |
|
BLAKE2b-256 | afa461f33513723b56b4b48d31a80a66fc9949bb1039a285a53c4b8dd4d57056 |