Standard Workflow

Standard Workflow#

In this notebook, we present the standard workflow, using defaults set in the plugin in terms of data format, segmentation approach etc.

We start here with the standard interface:

Loading data#

The type of data to load can be selected in the first step 1. Select location of data. Here we use the zarr format. Then we select the actual data by clicking on Select data folder:

As can be seen in the second section Select channels to use, when a correctly formated dataset is selected, the plugin reads information about the data to give the choice of channels to use. Note that usually this doesn’t acutally load the data in memory. Here we use the channel 0 for segmentation and keep all channels for analysis. Then we can go to the third step 3. Load and display dataset which will load the data in the viewer. Finally, we need to specify where to save the analyzed data and parameters in 4. Set location to save analysis.

Segmentation#

The next steps is segmentation. Here our default mode is to use the napari-convpaint plugin, which allows to create reasonable segmentations in a few brush strokes. First we need to pick the channel to use for segmentation, here 0. Then we click on Add annotation/predict layers so that we can add annotations. Using the brush in the annotations labels layer, we indicate background regions with index 1 and foreground (cell) with index 2:

Then we can train the pixel classififer so that we can segement the whole movie. Before we segment all images we can have a first look by selecting Predict single frame and correct the annotations if necessary.

If we are satisfied, we can click on Run segmentation which applies the same classifier to all frames. Additionally, in this step, we do some basic tracking of the cell in case multiple objects are segmented. Note that the first time we segment the time-lapse, we are prompted to indicate where to save the classifier (we recommend to leave it in the analysis folder).

Segmentation data get saved automatically in the analysis folder.

Windowing#

Our goal is to track the internal cell dynamics. For that we need to break up the cell in multiple small windows in which we can then integrate the intensity. Windows are created in concentric layers. We can set the desired dimensions of the window and the algorithm computes the optimal number of layers and windows per layer. Here we keep the defaults. Here again, we can run windowing on a single image, as a check. When ready, we can run the windowing for the entire movie.

viewer.layers['prediction'].visible = False
viewer.layers['annotations'].visible = False
#viewer.layers['segmentation'].visible = False
viewer.layers['windows'].opacity = 0.5
nbscreenshot(viewer)

Visualizations#

In the Display Options tab we can visualize intensity per window plots. The horizontal axis represents time, while the vertical one corresponds to a window index. We can select which layer we went to visualize at the top and the channel at the bottom:

In the Morpho tab we can visualize cell morphology plots. For example we can follow the cumulative displacement of the cell contour:

Or we can superpose all contours on the first movie frame:

Finally, in the Correlations tab, we can explore correlations between different channels (do certain signals move in concerted or delayed way?) or between cell contour displacement and signal (is there a correlation between cell movement and presence of a signal?):