TrackPal: Tracking Python AnaLyzer
Project description
TrackPal: Tracking Python AnaLyzer
A modular library for the analysis of object trackings in Python with pandas.
Overview
Main features
- Read Imaris / TrackMate files
- Simulate tracks with different motion types
- Compute track feature descriptors (~50 available features)
- Mean squared displacement curves for single tracks and ensembles
- Velocity autocorrelation curves for single tracks and ensembles
- Visualization utilities
For most computations TrackPal relies on pandas groupby
and apply
mechanism.
TrackPal does not track or link objects. It analyzes already tracked objects. For obtaining object trackings from images or detections see for instance the excellent projects TrackMate, trackpy or ilastik
Examples
Simple simulation and plotting
import trackpal as tp
trj = tp.simulate.brownian_linear(n_tracks=10)
trj.groupby("TrackID").apply(
tp.visu.plot_trj, coords=["Position X", "Position Y"], line_fmt=".-",
)
Output:
Track features
- Simulate different motion types and compute track feautures
Mean squared displacement curves
- Calculate diffusion constant and velocity from different simulated motion types
Installation
Anaconda Python (>=3.6) and a new environment are recommended
- Install Anaconda Python (>=3.6)
conda create --name trackpal_env --python=3.7
conda activate trackpal_env
Dependencies
- numpy
- pandas
- scikit_image
- scikit_learn
- tifffile
- tqdm
- scipy
- statsmodels
- matplotlib
- rdp
- tqdm
From PyPi:
pip install TrackPal
For development
git clone
this repositorycd trackpal
pip install -e .
Documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
TrackPal-1.2.0.tar.gz
(15.1 kB
view details)
Built Distribution
TrackPal-1.2.0-py3-none-any.whl
(16.7 kB
view details)
File details
Details for the file TrackPal-1.2.0.tar.gz
.
File metadata
- Download URL: TrackPal-1.2.0.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f34782bfa3275701af2db600345899ec3ec8bd89a07a2bac171283783c28dfe4 |
|
MD5 | d458ab0a362a2e51ce298811dde1ba49 |
|
BLAKE2b-256 | 30d54405654d0ff2318aface56e26357d601f1e7cb26705d11af8ab112b499ef |
File details
Details for the file TrackPal-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: TrackPal-1.2.0-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e4f527b7aa3a62e6f6eddf03cf1e7cb249cb5a187bb9cd1a69642f5b308fa18 |
|
MD5 | 096f06579eb5142fb01ad376e4c6e6a2 |
|
BLAKE2b-256 | 1cb3ed21fa4c8f4cfef22db71a19c34ebf741c0816a989ffc1449f64b087a920 |