Skip to main content

A simple plugin to enable easy interaction with multi-channel surfaces

Project description

napari-multi-channel-surface

License MIT PyPI Python Version tests

napari hub npe2 Copier

A napari plugin to enable easy interaction with multi-channel surfaces


Overview

The goal of this plugin is to provide a means for reading, writing, and interacting with surfaces containing multiple color channels in napari. When reading, color channel data is imported into the napari.layers.Surface metadata dictionary under the key 'point_data'. Different channels can be used to color the surface in napari using the Channel Select widget supplied with this plugin. Multi-channel surfaces are saved using the point_data metadata key to save each named channel.

Visualization of single channel vertex data is made possible in napari through the vertex_values Surface Layer property, while the vertex_colors property enables RGB and RGBA representations. Surface file formats such as '.vtu' provide the option of storing a variable number of features recorded at each vertex, and napari-multi-channel-surface provides functionality to utilise data in these formats.

Installation

In napari

This plugin was developed for use in the napari app. To install the plugin, go to

Plugins > Install/Uninstall Plugins...

Type napari-multi-channel-surface in the search box and click install next to the entry napari-multi-channel-surface in the search results.

With pip

You can install napari-multi-channel-surface via pip:

pip install napari-multi-channel-surface

If napari is not already installed, you can install napari-multi-channel-surface with napari and Qt via:

pip install "napari-multi-channel-surface[all]"

To install latest development version :

pip install git+https://github.com/judithlutton/napari-multi-channel-surface.git

Usage

Reading and writing

Reading and writing mesh files can be performed in napari using the read and save functions in the File menu.

File formats

napari-multi-channel-surface uses meshio to read and write mesh files, and supports files with the following extensions:

['.ply', '.vtk', '.vtu', '.xdmf', '.xmf', '.h5m', '.avs', '.e', '.exo', '.ex2', '.hmf', '.med', '.dat', '.tec']

This subset of file types supported by meshio can store color channel data.

Channel Select Widget

You can use the Channel Select widget with any data loaded with napari-multi-channel-surface. Simply load the surface(s) and open the widget with

Plugins > Channel Select (Multi Channel Surface)

The widget allows you to select the surface you wish to interact with, (Surface dropdown) and and which channel you wish to view (Channel dropdown).

Helpful hints for using the widget:

  • If your channels have widely varying ranges, set auto-contrast to continuous
  • Popular choices of colormaps include viridis, plasma, and turbo.

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, "napari-multi-channel-surface" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.


This napari plugin was generated with copier using the napari-plugin-template.

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

napari_multi_channel_surface-0.0.3.tar.gz (580.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

napari_multi_channel_surface-0.0.3-py3-none-any.whl (307.6 kB view details)

Uploaded Python 3

File details

Details for the file napari_multi_channel_surface-0.0.3.tar.gz.

File metadata

File hashes

Hashes for napari_multi_channel_surface-0.0.3.tar.gz
Algorithm Hash digest
SHA256 e81a0a6c9a3c4e115f18a59f118e97bb8ad0546b296b87cea0bf6b49d070c617
MD5 12a2e81baed6b2a5a6769378ceb2f297
BLAKE2b-256 cee9a734bfc7ccdeb365483dbd6c7d299964fb92162018a643383c3e88deba82

See more details on using hashes here.

Provenance

The following attestation bundles were made for napari_multi_channel_surface-0.0.3.tar.gz:

Publisher: test_and_deploy.yml on judithlutton/napari-multi-channel-surface

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file napari_multi_channel_surface-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for napari_multi_channel_surface-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 76bbae166b22c7b6698c79bea32cb8ec44d6c3b8b31aeccf59fb9e5e72ff6a03
MD5 31e499ac89ccd48a413324d5f455d9af
BLAKE2b-256 9cbb6f159675485f61f8248665910a0ed2b60fbc3600d87abcf18bfc11f8a1ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for napari_multi_channel_surface-0.0.3-py3-none-any.whl:

Publisher: test_and_deploy.yml on judithlutton/napari-multi-channel-surface

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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