Skip to main content

napari-brainglobe-io

License Python Version PyPI Anaconda version Napari hub PyPI Downloads tests codecov image.sc forum Bluesky Mastodon

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 resolution
  • atlas_name - e.g. allen_mouse_25um the atlas labels, warped to your sample brain
  • Boundaries - 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.

sample_space

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, select napari_get_reader from the select hook... dropdown box
  • Drag brainreg_read_dir_atlas_space (the atlas space viewer plugin) above brainreg_read_dir (the normal plugin) to ensure that the atlas space plugin is used preferentially.

cellfinder

Load cellfinder XML/YAML file

  • Load your raw data (drag and drop the data directories into napari, one at a time)
  • Drag and drop your cellfinder XML/YAML 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).

load_data Loading raw data

load_data Loading cellfinder results

Seeking help or contributing

We are always happy to help users of our tools, and welcome any contributions. If you would like to get in contact with us for any reason, please see the contact page of our website.

Metadata

Release files for brainglobe-napari-io 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for brainglobe-napari-io 0.5.0
File Size Uploaded
brainglobe_napari_io-0.5.0.tar.gz 18.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for brainglobe-napari-io 0.5.0
File Interpreter ABI Platform
brainglobe_napari_io-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 37.8 kB

Release files / brainglobe_napari_io-0.5.0.tar.gz

Download URL brainglobe_napari_io-0.5.0.tar.gz
Size 18.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6bcb97a7c53aa13cae5f13903deaf0f84bfdc578d3d36b83d503958a2d92a466
BLAKE2b-256 checksum
How to use checksums
b87318f20ebfeae7a54ec889a2192839e9b61e6134e885284e77e7250a855ee4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / brainglobe_napari_io-0.5.0-py3-none-any.whl

Download URL brainglobe_napari_io-0.5.0-py3-none-any.whl
Size 19.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b9e856471bbdd0ac3a895db54d120d3f46b0e194675dd8cbde4d76102adb6b49
BLAKE2b-256 checksum
How to use checksums
aac93057d0ffd254598219e763fa85cc4eca1a202a807d6a11e7629d816f7182
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page