TRAIT2D (available as trait2d
) is a cross-platform Python software package with compilable graphical user interfaces (GUIs) to support Single Particle Tracking experiments. The software can be divided, in three main sections: the tracker, the simulator and the data analyzer.
The documentation is available at GitHub Pages.
Further information on the tool, together with more extensive theoretical foundations, is available on the related F1000Research Article.
Reina F, Wigg JMA, Dmitrieva M et al. TRAIT2D: a Software for Quantitative Analysis of Single Particle Diffusion Data [version 1; peer review: 1 approved, 1 approved with reservations]. F1000Research 2021, 10:838 (https://doi.org/10.12688/f1000research.54788.1)
Guidelines for contributing to the project can be found here.
Installation methods have been tested on Linux and Windows.
Prerequisites:
Installation:
pip install trait2d
Prerequisites:
Installation:
clone the GitHub repository
git clone https://github.com/Eggeling-Lab-Microscope-Software/TRAIT2D
OR
.zip
file anywhere on your computerchange to the directory that was just created (should contain a setup.py
file)
run pip install -e .
There are GUIs available for simple simulation, tracking and analysis tasks.
To start using them follow these steps:
conda activate trait2d
)trait2d_analysis_gui
, trait2d_simulator_gui
or trait2d_tracker_gui
and hit enterTo use the trait2d
modules, you can import them in your Python scripts or notebooks.
The simulator module is available as trait2d.simulators
and the analysis module as trait2d.analysis
.
For more information, check the documentation on the simulation and analysis libraries.
Examples are available in the gallery.
You can find more information and GUI descriptions in the documentation on the analysis, simulator, and tracker GUIs.
Anaconda Prompt
on Windows)conda activate trait2d
)trait2d_tracker_gui
Use “Preview” button to evaluate performance of the detector. It shows detections for the current frame.
Parameters:
Proposed workflow:
1) choose timelapse tiff sequence and run pre-processing step if necessary 2) choose between dark or light spots 3) tune detection parameters to detect all the particles. It is recommended to test the results for a few different frames using "Preview" button 4) set resolution and frame rate (optional) 5) set linking parameters 6) run linking by pressing "Run tracking" button. It will run linking algorithm and offer to save tiff file with plotted trajectories. Check the trajectories and change the linking parameters if needed. Use minimum track length parameter to eliminate short tracks 7) when the tracks provided by the tracker is good enough - save csv file with the particle trajectories (button “Save data”)
Anaconda Prompt
on Windows)conda activate iscat
python scripts/simulate_iscat_movie.py /path/to/track.csv /path/to/output.tif --psf /path/to/psf.tif --gaussian_noise --poisson_noise
tracks.csv
is a file containing the tracks to reconstructpsf.tif
file is a 3D PSF stack were the middle slice is in focus.python scripts/simulate_iscat_movie.py --help
Anaconda Prompt
on Windows)conda activate trait2d
)trait2d_simulator_gui
Generate/load trajectory first, then generate the image sequence and save it
Simulated track and iscat movie example. (Left) Raw image, (Right) convolved with a synthetic PSF.