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:

../_images/trajectories.png ../_images/density_of_neighbours.png

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#