Skip to content

Mass-sensitive particle tracking analysis routine

License

Notifications You must be signed in to change notification settings

zhuzhangZZ/MSPT-toolkit

 
 

Repository files navigation

MSPT: Mass-Sensitive Particle Tracking

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

Workflow diagram
Data analysis workflow. Reprinted from Steiert et al., J. Vis. Exp. (2022).

A detailed protocol describing the experimental and data analysis workflow can be found here:

The MSPT-toolkit was used for data analysis in:

Installation remarks

If you are new to Python, installing the Anaconda Distribution is highly recommended.

Required packages

    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.

Usage

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.

❗ Important note

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.

About

Mass-sensitive particle tracking analysis routine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 78.1%
  • Jupyter Notebook 21.9%