napari widgets to (batch) process images from start to finish.
Project description
napari-ndev
A collection of widgets intended to serve any person seeking to process microscopy images from start to finish, with no coding necessary. napari-ndev was designed to address the gap between the napari viewer and batch python scripting.
- Accepts diverse image formats, dimensionality, file size, and maintains key metadata.
- Allows advanced, arbitrary image processing workflows to be used by novices.
- User-friendly sparse annotation and batch training of machine learning classifiers.
- Flexible label measurements, parsing of metadata, and summarization for easily readable datasets.
- Designed for ease of use, modification, and reproducibility.
Check out the Docs to learn more!
See the poster presented at BINA 2024 for an overview of the plugins in action
Try out the Virtual I2K 2024 Workshop for an interactive tutorial
Installation
See the full installation guide for more options including uv and Pixi.
napari-ndev is a pure Python package and can be installed with pip:
pip install napari-ndev
The easiest way to get started is to install the opinionated optional dependencies, which includes napari and PyQt6 (the Qt backend) and additional napari plugins:
pip install napari-ndev[all]
After installation, launch napari with the nDev App widget open:
napari-ndev
This is equivalent to running napari -w napari-ndev "nDev App".
Optional Dependencies
napari-ndev provides several optional dependency groups:
[qtpy-backend]- Includesnapari[pyqt6]for the Qt GUI[extras]- Additional napari plugins like napari-assistant for enhanced workflows[all]- Everything above plus sample data and themes (recommended)
Additional Image Format Support
napari-ndev uses ndevio for image I/O, which relies on bioio readers. Basic formats (TIFF, OME-TIFF, OME-Zarr, PNG, etc.) work out of the box.
For additional formats, install the appropriate bioio reader:
# CZI files (GPL-3 licensed)
pip install bioio-czi
# LIF files (GPL-3 licensed)
pip install bioio-lif
# Bio-Formats for many proprietary formats
pip install bioio-bioformats
Note: Some bioio readers are GPL-3 licensed. If you install and use these, you must comply with GPL-3 license terms.
Development
For development, clone the repository and install with the dev dependency group:
git clone https://github.com/ndev-kit/napari-ndev.git
cd napari-ndev
pip install -e . --group dev
This includes pytest, pytest-cov, pytest-qt, ruff, pre-commit, and all optional dependencies.
Run tests:
pytest -v --cov=napari_ndev
Pixi Usage
You may locally clone this repo and use Pixi to create a reproducible environment:
git clone https://github.com/ndev-kit/napari-ndev.git
cd napari-ndev
Then launch napari with the nDev plugin:
pixi run napari-ndev
Or install the package in editable/development mode and activate the local environment:
pixi install # Default environment with qtpy-backend
pixi install -e dev # Development environment with testing tools
pixi shell # Activate the environment
napari # Run napari or any command
To run tests: pixi run -e dev test
The wide breadth of this plugin's scope is only made possible by the amazing libraries and plugins from the python and napari community, especially Robert Haase.
This napari plugin was generated with Cookiecutter using napari's cookiecutter-napari-plugin template.
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 BSD-3 license, "napari-ndev" is free and open source software.
Some optional libraries can be installed to add functionality to napari-ndev, including some that may be more restrictive than this package's BSD-3-Clause.
Issues
If you encounter any problems, please [file an issue] along with a detailed description.
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_ndev-1.0.0a1.tar.gz.
File metadata
- Download URL: napari_ndev-1.0.0a1.tar.gz
- Upload date:
- Size: 7.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93d70d08235a9df534dff94f45f0f9aa3894f837947d219ef6688dd042f6886a
|
|
| MD5 |
9f40469f73bd28a07ec07acbdc6aa6da
|
|
| BLAKE2b-256 |
d2364ba91ddd0c95847f2ae69e7bea69a57431b3a69e6f21f9164b060472aef4
|
Provenance
The following attestation bundles were made for napari_ndev-1.0.0a1.tar.gz:
Publisher:
test_and_deploy.yml on ndev-kit/napari-ndev
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
napari_ndev-1.0.0a1.tar.gz -
Subject digest:
93d70d08235a9df534dff94f45f0f9aa3894f837947d219ef6688dd042f6886a - Sigstore transparency entry: 1570268427
- Sigstore integration time:
-
Permalink:
ndev-kit/napari-ndev@bc76e2719836613c033b0dbd29c9aa865817ad58 -
Branch / Tag:
refs/tags/v1.0.0a1 - Owner: https://github.com/ndev-kit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test_and_deploy.yml@bc76e2719836613c033b0dbd29c9aa865817ad58 -
Trigger Event:
push
-
Statement type:
File details
Details for the file napari_ndev-1.0.0a1-py3-none-any.whl.
File metadata
- Download URL: napari_ndev-1.0.0a1-py3-none-any.whl
- Upload date:
- Size: 51.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f99499546ab838cc4de1cf8aa31ec28175750e38473b99d2547e1bdc9fbc2f3
|
|
| MD5 |
5ac500f1320ad6f64daf7f574e08b0f6
|
|
| BLAKE2b-256 |
f4a17501fa49e93fafd06d3a70da88162830b00ae00ffb40f987e3eb8299f62a
|
Provenance
The following attestation bundles were made for napari_ndev-1.0.0a1-py3-none-any.whl:
Publisher:
test_and_deploy.yml on ndev-kit/napari-ndev
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
napari_ndev-1.0.0a1-py3-none-any.whl -
Subject digest:
0f99499546ab838cc4de1cf8aa31ec28175750e38473b99d2547e1bdc9fbc2f3 - Sigstore transparency entry: 1570268513
- Sigstore integration time:
-
Permalink:
ndev-kit/napari-ndev@bc76e2719836613c033b0dbd29c9aa865817ad58 -
Branch / Tag:
refs/tags/v1.0.0a1 - Owner: https://github.com/ndev-kit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test_and_deploy.yml@bc76e2719836613c033b0dbd29c9aa865817ad58 -
Trigger Event:
push
-
Statement type: