Skip to content

Commit

Permalink
examples: plot tracks in binding lifetime example
Browse files Browse the repository at this point in the history
  • Loading branch information
aafkevandenberg committed Dec 9, 2024
1 parent 1ef2d5e commit 3d39888
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/examples/binding_lifetime/binding_lifetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,18 @@ Load the tracks into Pylake::

Use the same approach as above to load the tracks from Lakeview, except that the part :func:`Kymo.crop_by_distance() <lumicks.pylake.kymo.Kymo.crop_by_distance>` has to be removed.

The (loaded) tracks can be plotted on top of the original kymograph to visualize the result of the tracking::

plt.figure()
kymo1_selection.plot("g", aspect = 5, adjustment=lk.ColorAdjustment([0], [5]))
tracks1.plot()

.. image:: tracks1.png

Note that two tracks at t=0 were manually removed, because the starting points of these tracks are not visible. This means that we cannot determine the duration of these tracks.
The length of each track corresponds to the duration of a binding event. As can be seen from the above image, there is a large variation in track lengths.
By collecting all these track durations into a 'binding lifetime distribution', we can analyze the binding lifetime in more detail.

Combine tracks
--------------

Expand Down
3 changes: 3 additions & 0 deletions docs/examples/binding_lifetime/tracks1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3d39888

Please sign in to comment.