Skip to main content

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

Project description

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.

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-zelda-0.1.12.tar.gz (1.0 MB view hashes)

Uploaded Source

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