Skip to main content

Read and write files from the BrainGlobe neuroanatomy suite

Project description

napari-cellfinder

License PyPI Python Version tests codecov

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_standard_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 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).

load_data Loading raw data

load_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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brainglobe-napari-io-0.1.3.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

brainglobe_napari_io-0.1.3-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file brainglobe-napari-io-0.1.3.tar.gz.

File metadata

  • Download URL: brainglobe-napari-io-0.1.3.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for brainglobe-napari-io-0.1.3.tar.gz
Algorithm Hash digest
SHA256 8b9013e9d926beef8c74bb1ea8a4599702409cdb1bd64e74396bd2839a494379
MD5 72ff1959dcd58377c037d48439caa355
BLAKE2b-256 84d83fc85022c8e49f39b8a3da2c1a323d599ee8abaa37eb0325f5e9bddc95c9

See more details on using hashes here.

File details

Details for the file brainglobe_napari_io-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: brainglobe_napari_io-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for brainglobe_napari_io-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b6433c4737e00a13a61290d36cf373df11640bbe60ad0946f6d1ff295c7232db
MD5 9fb2f64d0d8f320c61536e156bfc573a
BLAKE2b-256 eed88b8c898ea1947d3605fbd212d1ab237fba3c3f59c01bdee1b1d88e484e45

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page