Using napari layers as data source

Using napari layers as data source#

In certain cases, the solutions offered by the plugin to read data is not fitting your use case, e.g. because the format is not recognized or because the dimensions of the imported data is not correct (e.g. channels not recognized). It is not our plan to support all possible formats. However for such cases, we offer the possibility to use layers of the napari viewer as data sources. In such a case, you import the data as usual, by drag and dropping or via the menu, reshape the data if necessary, and then specify the layers to use.

In this example we want to open a multi-dimensional tiff file not supported by the plugin.

Importing the data#

We drag and drop the file in the viewer and obtain:

The first problem is that the file was misinterpreted as a labels image. We can fix this by right-clicking on the layer and selecting Convert to image:

Now our data are visible as an image, but multiple channels appear as a regular dimensions instead of layers. So we now right-click again on the layer and select Split stack:

Selecting layers as input#

Now in 1. Select location of data we can select layers and then click on Select data folder:

The layers now appear in the 2. Select channels to use options. We can select as usual which channel to use for segmentation and which for signal processing.

Once done we also click on Load. This prompts the user to point to a place where to save the data. The selected layers are then saved as a zarr file and loaded as regular dataset. From there you can proceed as usual.