This toolkit provides a complete single particle tracking analysis routine for mass photometry movies, including:
- Rolling median-based background removal
- Particle detection and localization
- Linking of localizations into trajectories using
trackpy
- Mean squared displacement and jump distance distribution analysis of the trajectories
- Visualizing the correlation of molecular mass and diffusion coefficient of single particles
- Fast batch-mode processing
Mass-Sensitive Particle Tracking to Characterize Membrane-Associated Macromolecule Dynamics
Journal of Visualized Experiments (2022).
Mass-Sensitive Particle Tracking to Elucidate the Membrane-Associated MinDE Reaction Cycle
Nature Methods (2021).
If you are new to Python, installing the Anaconda Distribution
is highly recommended.
-
trackpy
Trackpy
is used to link particle detections from consecutive frames into trajectories.
For installation instructions, click here
.
fastkde or scikit-learn (for plotting)
To compare the distributions of molecular mass and diffusion coefficient, two-dimensional kernel density estimations are generated using fastKDE
. For installation instructions, click here
. Alternatively, sklearn.neighbors.KernelDensity
could be used.
bottleneck (optional but recommended, included in Anaconda)
The package bottleneck
speeds up the rolling median-based background removal on CPUs more than 10-fold. This option is usually faster than running the background removal on GPU. For installation instructions, click here
.
CUDA version (optional)
To be able to perform image processing on a CUDA-capable
GPU, pytorch
is required. Follow the instructions here
for details regarding installation.
The data analysis workflow is integrated in the Jupyter notebook MSPT analysis.ipynb
which contains descriptions about the expected input and output of each step as well as required parameters. In the complementary notebook Movie visualization.ipynb
, raw or processed movies can be inspected interactively, for example to examine the membrane crowdedness or the effect of different threshold settings on particle detection.
File compression needs to be turned off in the acquisition software before movies are saved to disk. Instructions on how to turn off file compression can be found in the manufacturer's user manual of the acquisition software.
If movie recordings were saved with compression and you want to recover them, please get in touch with Refeyn for a decompression module.