A visual pipeline to process images with Tapenade in Napari
Project description
:herb: napari-tapenade-processing
A collection of methods to process images of deep 3D/3D+time tissues in Napari.
napari-tapenade-processing
is a napari plugin that is part of the Tapenade project. Tapenade is a tool for the analysis of dense 3D tissues acquired with deep imaging microscopy. It is designed to be user-friendly and to provide a comprehensive analysis of the data.
If you use this plugin for your research, please cite us.
Overview
While working with large and dense 3D and 3D+time gastruloid datasets, we found that being able to visualise and interact with the data dynamically greatly helped processing it. During the pre-processing stage, dynamical exploration and interaction led to faster tuning of the parameters by allowing direct visual feedback, and gave key biophysical insight during the analysis stage.
From a given set of raw images, segmented object instances, and object mask, the plugin allows the user to quickly run all pre-processing functions from our main pipeline with custom parameters while being able to see and interact with the result of each step. For large datasets that are cumbersome to manipulate or cannot be loaded in Napari, the plugin provides a macro recording feature: the users can experiment and design their own pipeline on a smaller subset of the dataset, then run it on the full dataset without having to load it in Napari.
Installation
The plugin obviously requires napari to run. If you don't have it yet, follow the instructions here.
The simplest way to install napari-tapenade-processing
is via the napari plugin manager. Open Napari, go to Plugins > Install/Uninstall Packages...
and search for napari-tapenade-processing
. Click on the install button and you are ready to go!
You can also install napari-tapenade-processing
via pip:
pip install napari-tapenade-processing
To install latest development version :
pip install git+https://github.com/jules-vanaret/napari-tapenade-processing.git
Usage
General overview of the plugin within Napari
To start a pre-processing pipeline, follow these steps:
- First, load your images in Napari. You can drag and drop them from your file explorer to the Napari viewer, or open them using the
File > Open files...
menu. - Click on the
Plugins > Tapenade Processing
menu to open the plugin. - The image you have loaded will be displayed as individual layers in the Layer List. They can be clicked-on to reveal a set of visual parameters (see 4) that can be adjusted. By double-clicking on a layer name, you can change it. Right-clicking a layer will give you several options. The little eye icon next to the layer name can be clicked to hide the layer.
- You can adjust visual parameters for each layer, like the contrast limits, the colormap, the opacity, the blending mode, etc.
- If you want to switch between 2D and 3D views, click on the
Toggle 2D/3D view
button (it resembles a square when in 2D mode, or a cube when in 3D mode). - You can toggle the grid view (as shown in the example image) by clicking on the
Toggle grid mode
button. By right-clicking the button, you can parametrize the grid view (e.g number of columns, number of rows, etc). - The plugin is composed of three tabs. The first tab is dedicated to pre-processing functions, the second tab is dedicated to the macro recording feature, and the third tab is dedicated to advanced parameters.
Tab 1: The pre-processing functions
The pre-processing tab is composed of the following elements:
- A combo box to select the pre-processing function to apply from a list.
- A set of comboxes that allow you to select the layers to apply the function on. If a function does not require a specific layer, the combo box will be greyed out.
Image
layers correspond to integer or float data,Labels
layers correspond to integer data and represent segmented object instances,Mask
layers correspond to boolean data and usually represent the sample's large scale mask (inside/outside). All layers must have data of the same shape (same number of dimensions and same dimensions). Layers can be 3D or 3D+time, respectively with the ZYX or TZYX order. (2') If a layer does not appear in a combo box, but is present in the Layer List, you can click on theRefresh
button to update the list of layers. - A set of parameters that you can tune to adjust the function's behaviour. The parameters are specific to each function. In case of doubt, you can hover over the parameter name/widget to get a tooltip with a description.
- A
Run function
button to apply the function with the current parameters to the previously selected layers.
Tab 2: The macro recording feature
In progress...
Tab 3: Advanced parameters
The advanced parameters tab is composed of the following elements:
- A checkbox
New layers overwrite previous ones
: whether the output of the pre-processing functions should be saved as new layers or overwrite the previous ones that were used as input. This can be useful to save memory when you don't need to compare the input and output of a function. - A checkbox
Results are cropped using mask
: whether the output of functions are systematically cropped using the mask layer (if it is provided). This can be useful to save memory when you don't need to process the whole image. - A slider
# parallel jobs
: the number of parallel jobs to use when running a function on a 3D+time input (each frame is processed in parallel). This can be useful to speed up the processing.
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-tapenade-processing" 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 Cookiecutter using @napari's cookiecutter-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
Built Distribution
Hashes for napari_tapenade_processing-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4870fb04e23f02d0c77b3fe1f16c3036c08c3c863d1229de3243a20c0184b43 |
|
MD5 | 0abab29b6bce82e4c8622edc50d0db97 |
|
BLAKE2b-256 | dfa089dd95c5157a4cc816824acf864eca89f4e90c4d4dd6cd86f4e241db13e6 |
Hashes for napari_tapenade_processing-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a2499d7656f1717381e78ed8b806e534cb00e09f1e3fc21b009e2884a02ef0d |
|
MD5 | 8d5c67e96bef1171bedfa21119983ced |
|
BLAKE2b-256 | 6a64d77a3e0ea9c507ca091212128cb1da1f572bb37a88cd483b38d4504081ea |