Movement and signal

Movement and signal#

In this notebook, we show an example of how the plugin can be used to find interesting correlations between cell displacement and intensity variations. For this we use a dataset from the Pertz Lab at the University of Bern in which a protein is recruited to the cell membrane by photoactivation, leading then the cell to move in the direction of that signal.

We first load the data as usual:

Here the first channel tracks the cytoskeleton (actin), the second one highly shows photoactivation, while the last one shows the protein recruited by photoactivation. As we can see below, a few frames later the cell has moved towards the top and our goal is to capture that correlation.

Segmentation#

To show an alternative to convpaint, we perform segmentation with cellpose here. We have in particular to specify the cell size:

Now we can proceed with windowing. We keep the default window sizes here:

Photoactivation#

We can first verify that we do have accumulation of the protein on the cell edge by looking at the time evolution of the intensity in the outermost series of windows:

We clearly see that consequence of activation in this plot. In particular we see the the change of the activation location at time ~60 and ~120.

We can also check that the cell does move when activated by looking at the cumulative displacement plot:

We clearly see that the windows 20-30 are extending up to frame 60 while then it is another region around 35-45 that moves until the next light pulse.

What about the correlation between the movement and the activation? Does the cell move as soon as activation happens or is there a delay. We can study this via the correlation plot:

/Users/gw18g940/GoogleDrive/BernMIC/Projects/MorphoDynamics/morphodynamics/plots/show_plots.py:108: UserWarning: The figure layout has changed to tight
  fig.tight_layout()

We see that for the affected regions ~20-50 there is a significant correlation between displacement and signal. Also the correlation occurs with a time lag of approximately 15 frames as seen in the shift of the red region to the left.