A simple plugin to enable easy interaction with multi-channel surfaces
Project description
napari-multi-channel-surface
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, andturbo.
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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file napari_multi_channel_surface-0.0.2.tar.gz.
File metadata
- Download URL: napari_multi_channel_surface-0.0.2.tar.gz
- Upload date:
- Size: 318.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f85e148710e33694e0fca9572ff0a4e733a9b10c519ad031157adc7477059705
|
|
| MD5 |
bf01637ca83130cf2d5783c34a9d0fcb
|
|
| BLAKE2b-256 |
bf540343ccec7964db723b019116042990706521c84115056c8265b93b173410
|
Provenance
The following attestation bundles were made for napari_multi_channel_surface-0.0.2.tar.gz:
Publisher:
test_and_deploy.yml on judithlutton/napari-multi-channel-surface
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
napari_multi_channel_surface-0.0.2.tar.gz -
Subject digest:
f85e148710e33694e0fca9572ff0a4e733a9b10c519ad031157adc7477059705 - Sigstore transparency entry: 696094316
- Sigstore integration time:
-
Permalink:
judithlutton/napari-multi-channel-surface@aaeba193cf761ffe5c19fde243590b7df03b5445 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/judithlutton
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test_and_deploy.yml@aaeba193cf761ffe5c19fde243590b7df03b5445 -
Trigger Event:
push
-
Statement type:
File details
Details for the file napari_multi_channel_surface-0.0.2-py3-none-any.whl.
File metadata
- Download URL: napari_multi_channel_surface-0.0.2-py3-none-any.whl
- Upload date:
- Size: 307.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1872d51a9deea0e7916c2f75a5dc4b4304b4450e3a03d1ad0d69352c46a057db
|
|
| MD5 |
9e1225e6b4c4a3c1af37557e29266673
|
|
| BLAKE2b-256 |
cf3a6206ac1eb40b50b6e4212bb4556697b4ee18c2abe68cc3a6f9a0cfdac2ad
|
Provenance
The following attestation bundles were made for napari_multi_channel_surface-0.0.2-py3-none-any.whl:
Publisher:
test_and_deploy.yml on judithlutton/napari-multi-channel-surface
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
napari_multi_channel_surface-0.0.2-py3-none-any.whl -
Subject digest:
1872d51a9deea0e7916c2f75a5dc4b4304b4450e3a03d1ad0d69352c46a057db - Sigstore transparency entry: 696094318
- Sigstore integration time:
-
Permalink:
judithlutton/napari-multi-channel-surface@aaeba193cf761ffe5c19fde243590b7df03b5445 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/judithlutton
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test_and_deploy.yml@aaeba193cf761ffe5c19fde243590b7df03b5445 -
Trigger Event:
push
-
Statement type: