While’s job ends when the trajectory files are validated. There is an extra tool (not part of but compatible with called trajectorytools.

It is a Python package to perform basic trajectory analysis and it is available at fjhheras/trajectorytools.

You can find some analysis routines from [1] implemented with trajectorytools in the Jupyter Notebook trajectories.ipynb in polavieja_lab/idtrackerai_notebooks. Here we present some of the analysis we get using a 10 juvenile fish video:

Plot of the trajectories of zebrafish tracked with Neighbors density plot of zebrafish tracked with

Smoothed trajectories (left) and density of neighbors around a focal fish (right)


Velocities and accelerations#


Polar distributions of positions, turnings and accelerations#


Inter-individual distance histograms compared with shuffled trajectories#