Skip to main content

Doc Open Source License: GPL v3 PyPI

Track Analyzer

Track Analyzer visualizes and quantifies objects that have already been tracked through time. It does not perform tracking: it starts with a table of trajectories and, optionally, the corresponding movie.

Explore motion through trajectory plots, velocity and acceleration measurements, mean squared displacement (MSD), diffusion estimates, and 2D Voronoi analysis. Grid-based maps summarize quantities such as velocity, divergence, and curl. Spatial and temporal filtering makes it possible to analyze or compare subsets and to investigate where selected objects came from and where they go.

The analysis pipeline

  1. Prepare the inputs. Provide a CSV or TXT table containing track IDs, frame numbers, X and Y coordinates, and optionally Z coordinates and other measurements. Supply metadata such as spatial and time scales. An optional TIFF image can be used as a background. For TrackMate, export the spots table. A preprocessed data_base.p can be reused.
  2. Select trajectories. Filter by spatial ranges, time windows, and track length. Depending on the interface, select individual IDs or tracks passing through a region at a given time.
  3. Analyze trajectories. Plot tracks and motion parameters, compute MSD and model fits, or estimate local area and density with 2D Voronoi tessellation.
  4. Create maps and compare results. Analyze measurements on a regular 2D grid and compare or pool saved trajectory analyses. Compared datasets must use matching length and time units.
  5. Inspect outputs. Depending on the selected analyses, results include tables, plots, TIFF stacks, and configuration files.

See the pipeline overview and outputs guide for details.

Choose an interface

The interfaces use the same underlying pipeline, but do not all expose the same settings or interactive features.

Interface Best suited for Guide
napari Interactive local analysis, image and track previews, ROI drawing, maps, and synthetic datasets napari plugin
Jupyter notebook A local step-by-step workflow with widgets and access to Python code Notebook
Galaxy Browser-based jobs without a local installation Galaxy
Command line Configuration-file-driven local or remote analysis Command line

Track Analyzer's napari Load data tab

Getting started

Galaxy

Open the Track Analyzer Galaxy tool, upload the tracking table and optional image, configure the job, and retrieve its results from the Galaxy history. See the Galaxy guide for input requirements and instructions.

Local installation

Local workflows require Python 3.11 or newer. To use the napari plugin, install napari 0.10 or newer with a Qt 6 backend. For example, with Miniconda, run the following in a terminal (or Anaconda PowerShell on Windows):

conda create -y -n track-analyzer-napari -c conda-forge python=3.11
conda activate track-analyzer-napari
conda install -c conda-forge "napari>=0.10" pyqt6

Install Track Analyzer and its napari plugin from PyPI in the same environment:

python -m pip install "track-analyzer[napari]"

Activate the environment before starting a local workflow. The PyPI package also provides the command-line tools. The notebook and example datasets are available in the source repository. See the installation guide for details.

napari

Run python -m napari and open Plugins > Track Analyzer. Load and map your table, save metadata and the preprocessed database, then configure filters and run trajectory or map analysis. The separate Plugins > Synthetic Dataset Generator widget creates synthetic tracks and can display them in the viewer.

Opening and enabling a trajectory analysis in napari

See the napari guide for previews, comparison, export settings, and the synthetic dataset generator.

Jupyter notebook

From a source checkout, run jupyter notebook and open run_TA.ipynb. Execute the cells in order to load data, configure filtering, and run analyses. See the notebook guide.

Command line

Prepare a dataset directory with positions.csv and info.txt, then create and edit the default configuration files:

TA_config /path/to/dataset
traj_analysis /path/to/dataset
map_analysis /path/to/dataset

See the command-line guide for input requirements, optional images, parallel TIFF rendering, and synthetic data. Each command also provides --help.

Examples and documentation

The source checkout includes synthetic datasets in example/. The examples guide also describes how to obtain real and synthetic data.

Read the full documentation. Contributors can start with the developer guide. See the release notes for version history. To build the documentation locally from a source checkout:

python -m pip install -r doc/requirements.txt
python -m sphinx -b html doc/source doc/build/html

Open doc/build/html/index.html in a browser. For local installation and napari troubleshooting, see the installation guide.

License

Track Analyzer is distributed under the GNU GPL, version 3 or later. See the license.

Metadata

Release files for track-analyzer 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for track-analyzer 0.6.1
File Size Uploaded Provenance Actions
track_analyzer-0.6.1.tar.gz 17.5 MB Without provenance Details for track_analyzer-0.6.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for track-analyzer 0.6.1
File Interpreter ABI Platform Actions
track_analyzer-0.6.1-py3-none-any.whl Python 3 none any Details for track_analyzer-0.6.1-py3-none-any.whl

Total release size: 17.6 MB

Release files / track_analyzer-0.6.1.tar.gz

Download URL track_analyzer-0.6.1.tar.gz
Size 17.5 MB
Tags Source
SHA-256 checksum
How to use checksums
fa3f80775af6699753681935685f527c58cc02b80cdce6d56cee90f55e475b2a
BLAKE2b-256 checksum
How to use checksums
2574c91ab0a7f26ba9a8307a88d26fc8c46d69acd6c416e67180e71c1f8fc238
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / track_analyzer-0.6.1-py3-none-any.whl

Download URL track_analyzer-0.6.1-py3-none-any.whl
Size 183.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
273f7794bd371e377653307485d0f09fefaeeb02730e83a0652fdc821fe3a252
BLAKE2b-256 checksum
How to use checksums
5cfb8961008535b197a8eace1156f6c297472985d1e8a0de7c3845e02d5002fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Security for track-analyzer 0.6.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page