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_standard_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
Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.
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.
The BrainGlobe project is generously supported by the Sainsbury Wellcome Centre and the Institute of Neuroscience, Technical University of Munich, with funding from Wellcome, the Gatsby Charitable Foundation and the Munich Cluster for Systems Neurology - Synergy.
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.1.5rc0.tar.gz
.
File metadata
- Download URL: brainglobe-napari-io-0.1.5rc0.tar.gz
- Upload date:
- Size: 11.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29cfe37dbcc4072a3db8812f5e3070b668acee8b10df67788c80db8162c0f2bf |
|
MD5 | 437f6e627f44ef00699458d8ec26b287 |
|
BLAKE2b-256 | 4ffb69a8bfdce3b3a2e0369dc216aece53f8c7fa9cd0c4ad79232f47df967c76 |
File details
Details for the file brainglobe_napari_io-0.1.5rc0-py3-none-any.whl
.
File metadata
- Download URL: brainglobe_napari_io-0.1.5rc0-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36e9141518d43e60864a28acf671242580b0a990f0ca27f7a9a763446c39c2e8 |
|
MD5 | f366414d836a467361e704325bfd98a5 |
|
BLAKE2b-256 | 52e7886be2765cc36c72719edfef43e3c42cb7756f09f788f34eec646e3e2b20 |