Awesome
napari-ome-zarr-roi-loader
Loads ROIs stored in OME-Zarr tables
Installation
To install latest development version :
pip install git+https://github.com/jluethi/napari-ome-zarr-roi-loader.git
Usage
This plugin is designed to load regions of interest from OME-Zarr files, as produced by Fractal.
Using the plugin
- Zarr URL: Select an OME-Zarr file. If it's a HCS plate, select an image in a well, i.e.
/path/to/plate.ome.zarr/B/03/0
- ROI Table: Select which ROI table to use to load the regions of interest. Only Fractal ROI tables are valid choices
- ROI: Select the region of interest you want to load from the dropdown
- Channels:: Select which channels should be loaded. You can select multiple channels to load at the same time.
- Image Level: Pick the resolution level at which the image data is loaded. The higher the number, the lower the resolution of the image will be (and the quicker it will load)
- Labels: Pick the label layers to load. They will be loaded at the same resolution as the image layer (or whichever resolution is closest to it) and scaled according to their metadata to fit the image layer.
- Features: Select which feature tables to load and to append to the label layer. It loads the features for the OME-Zarr image and appends the features for the labels that are present in the label image selected to the label_layer.features dataframe. Currently only loading a single feature table is supported and it's always appened to the label layer that is selected. Loading features when multiple label layers are selected is not supported.
- Load ROI: Click to load all the selected channels, labels & features of the selected region of interest. The plugin loads the whole data into memory. Thus, loading large amounts of image data (large ROIs at high resolution or 3D data) on a slow connection can make the napari viewer freeze for a while. Normally, it loads the data eventually.
Exporting ROI image
You can use napari's built-in image export to save an image that was loaded to disk, e.g. as a TIF:
-
Open the region of interest you're looking for (using the instructions above)
-
Select the layer you're interested in.
-
Go to the
File
menu and clickSave selected Layer(s)
-
Choose a location and a name to save the image
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-ome-zarr-roi-loader" is free and open source software
Issues
If you encounter any problems, please file an issue along with a detailed description.