Skip to main content

napari-zelda

License PyPI Python Version tests codecov

ZELDA: a 3D Image Segmentation and Parent-Child relation plugin for microscopy image analysis in napari

Authors: Rocco D'Antuono, Giuseppina Pisignano

Article: Front. Comput. Sci., 04 January 2022 | https://doi.org/10.3389/fcomp.2021.796117
Examples of 2D and 3D data sets: https://doi.org/10.5281/zenodo.5651284

What you can do with ZELDA plugin for napari

The plugin can be used to analyze 2D/3D image data sets.
Multidimensional images (each channel corresponding to a napari layer) can be used to:

  1. Segment objects such as cells and organelles in 2D/3D.

  2. Segment two populations in 2D/3D (e.g. cells and organelles, nuclei and nuclear spots, tissue structures and cells) establishing the "Parent-Child" relation: count how many mitochondria are contained in each cell, how many spots localize in every nucleus, how many cells are within a tissue compartment.

Example: cell cytoplasms (parent objects) and mitochondria (child objects)


Actin

Mitochondria

Merge

Parent cell cytoplasms

Children mitochondria

Children labelled by Parents

The images shown above are available in the docs folder of this repository and were segmented using ZELDA with the following parameters:

Parent objects GB: sigma=2.0-> Th_parents=60.0-> DistMap-> Maxima: min_dist=10
Children objects GB: sigma=0.3-> Th_children=450.0 -> DistMap-> Maxima: min_dist=2

For small monitors it may be convenient to float the protocol panel


Float a panel in napari
  1. Plot results within napari interface.


    Histogram

    Scatterplot
  2. Customize an image analysis workflow in graphical mode (no scripting knowledge required).


    Custom image analysis workflow
  3. Import and Export Protocols (image analysis workflows) in graphical mode (share with the community!).


    Import and Export of ZELDA Protocols

Installation

Option A. The easiest option is to use the napari interface to install ZELDA (make sure napari!=0.4.11):

  1. Plugins / Install/Uninstall Package(s)

  1. Choose ZELDA

  2. ZELDA is installed

  3. Launch ZELDA

Option B. You can install napari-zelda also via pip. For the best experience, create a conda environment and use napari!=0.4.11, using the following instructions:

conda create -y -n napari-env python=3.8  
conda activate napari-env
conda install napari pyqt  
pip install napari-zelda  

Option C. Alternatively, clone the repository and install locally via pip:

pip install -e .

Option D. Get the latest code with git and pip:

conda create -y -n napari-env python=3.8 git
conda activate napari-env
conda install napari pyqt
pip install git+https://github.com/RoccoDAnt/napari-zelda.git

Specifications

This napari plugin was generated with Cookiecutter using with @napari's cookiecutter-napari-plugin template.

The GUI has been developed using magicgui widgets, while the image analysis and processing include functions from scikit-image, SciPy, and NumPy. Results are handled with pandas and datatable. Plots are obtained with matplotlib.

Contributing

Contributions are welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

Users can add new protocol steps to their local installation using magicgui widgets. Code can be added at the end of napari_zelda.py file:

###Add here new functionalities for ZELDA ###

###@magicgui(layout="vertical")

###def new_functionality_widget(viewer: 'napari.Viewer'):

###...

###End###

License

Distributed under the terms of the BSD-3 license, "napari-zelda" is free and open source software

Issues

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

Metadata

Release files for napari-zelda 0.1.12

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

Source distribution (sdist)

Source distribution for napari-zelda 0.1.12
File Size Uploaded Provenance Actions
napari-zelda-0.1.12.tar.gz 1.0 MB Without provenance Details for napari-zelda-0.1.12.tar.gz

Release files / napari-zelda-0.1.12.tar.gz

Download URL napari-zelda-0.1.12.tar.gz
Size 1.0 MB
Tags Source
SHA-256 checksum
How to use checksums
be4382e135556bc588f54a78c0a382e5498bb06a7cf0a16fd3ec9b0fb7c64689
BLAKE2b-256 checksum
How to use checksums
2dadceb7c4a17dd6f3318e9b855930f31397645f062a452f9f73c2dbddb7359a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Security for napari-zelda 0.1.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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