Giter Club home page Giter Club logo

mtt_python's Introduction

Multiple target tracing (MTT) for Python

A Python implementation of the multiple-target tracing (MTT) algorithm to localize and track fluorophores in temporal super-resolution microscopy data. Takes Nikon ND2 files (and in the future TIF files) as input and generates localization and tracking data readable by MATLAB and other programs. Requires the https://pypi.org/project/nd2reader/ package.

The algorithm was developed to track diffusing, fluorescently labeled proteins at the cell membrane by Arnauld Sergé, Nicolas Bertaux, Hervé Rigneault, and Didier Marguet in their paper

Sergé et. al. "Dynamic multiple-target tracing to probe spatiotemporal cartography of cell membranes." Nature Methods 5, 687-694 (2008).

It has since been adapted for various biological tracking experiments. The algorithm sequentially performs the following steps:

  1. Detect particles.
  2. Localize particles with subpixel accuracy.
  3. Start trajectories out of localizations from the first frame.
  4. Iterate through the rest of the frames, reconnecting existing trajectories with new localizations according to a maximum-likelihood method ("tracking").
  5. Save data to a MAT file, which is readable by MATLAB or Python's scipy.io.loadmat function.

Run the program on an ND2 file or directory with ND2 files by using

	python mtt.py nd2_file_or_directory
		[-o OUTPUT_MAT_FILE]
		[-e LOG_ERROR_RATE_FOR_LOCALIZATION]
		[-p PIXEL_SIZE_IN_UM]
		[-f FRAME_INTERVAL_IN_SECONDS]
		[-w WAVELENGTH_IN_UM]
		[-D DMAX_IN_UM^2_S^-1]
		[-n NUMERICAL_APERTURE]
		[-s SEARCH_RADIUS_MODIFIER]
		[-b MAXIMUM_TOLERATED_BLINKING_FRAMES]

Tracking implementation

In the present implementation, the tracking step is performed by generating a semigraph between existing trajectories and new localizations in each frame - that is, a matrix with x-indices corresponding to individual trajectories and y-indices corresponding to individual localizations. A given element is nonzero if the corresponding localization lies within the maximum search radius of the corresponding trajectory. The goal of tracking is to permute the semigraph until the assignment of trajectories to localizations maximizes a likelihood function.

To reduce the complexity of the problem, semigraphs for each frame-frame comparison are split into independent sets of connected components. Arrows in the semigraph of each connected component are then weighted according to a probabilistic model of diffusion that incorporates that past history of each particle, and the semigraph is permuted until the matrix trace is maximized. Assignment of trajectory indices and localization indices along the diagonal gives the maximum-likelihood reconnection between trajectories and localizations.

mtt_python's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.