In this tutorial we will use a Python software package to track particles. This is a much more efficient and precise method to track particles than the "manual tracking" you did using ImageJ in the first tutorial. The particle tracking software does a lot and contains many many lines of code, but the user interface to the software package uses Jupyter notebook and is fairly straightforward.
To get acquainted with the tracking software, go through the following steps. The figures referenced are all at the bottom of this page.
This tutorial will be due by the end of Thursday 2/7. Turn in the plot of MSD versus time and report the slope as described in step #4. Also turn in the quiver plot as described in step #6. Do not worry if you don't get through all of this (especially steps 5 and 6) by the end of Thursday 1/31. But on 1/31 you should at least get through the first 4 steps.
Figure 1. Finding and downloading the package from the GitHub repository.
Figure 2. This code cell in "Particle Tracking -- DEMONSTRATION, TUTORIAL.ipynb" will need to be edited so that the data_file
and data_directory
variables point to the correct location of the video file "images_2x2bin_40x_128x128_1_Invert_BGSubtract.tif" which you downloaded to your local computer.
Figure 3. You may want to crop your time series of images that you took as part of Tutorial 2. To do so, open the image in ImageJ. Then use the Rectangle tool (that's the tool to the far left of the main ImageJ window). Then run Image -> Crop to crop the image to just the selected rectangle (the keyboard shortcut Ctrl+Shift+X also works). Make sure the save the cropped result.
Figure 4. The mean squared displacement versus time. You should acquire such a plot after analyzing images you took as part of Tutorial 2.
Figure 5. We will see how traction force microscopy can be used to back out the forces a cell, like the one shown, exerts on the substrate on which it crawls.
Figure 6. Tracking the particles in the two frames and subtracting off an estimate of the drift allows us to determine the displacement of many beads.
<----- Back to 381 <--- Back to Week 1 Activities