Hi! Sorry for the limited documentation. This is the text about the data files (I will answer your other question in a separate reply):
You will find four output files in the same folder as the video: Two of them are .mat files, to be loaded into Matlab. The other two are .txt files to import the data into any other software. Both .mat and .txt files contain identical information, which is the following:
- X AND Y COORDINATES OF EACH INDIVIDUAL IN EACH FRAME
For .mat files: This information is contained in the variable 'trajectories', which is a three-dimensional matrix. The first dimension runs along frames of the video, the second dimension runs along the different individuals, and the third dimension corresponds to the x and y coordinates. So for example, the element trajectories(1742,3,1) is the x coordinate of individual 3 in frame 1742.
In the .txt files: Each row corresponds to one frame of the video. Columns 1 and 2 are the x and y coordinates of individual 1, respectively. Columns 4 and 5 are the x and y coordinates of individual 2, and so on. NOTE that columns 3, 6, 9 etc. are not coordinates (see below).
-PROBABILITY OF CORRECT ASSIGNMENT
This is an estimation of the probability of correct assignment for each frame. It is usually conservative, see Supplementary Figure 3 of the paper [1].
In the .mat files: The probability is contained in the variable probtrajectories, which is a two-dimensional matrix. The first dimension runs along frames, and the second dimension runs along individuals.
In the .txt files: The probabilities for individual 1 are in column 3, for individual 2 in column 6, and so on.
DIFFERENCE BETWEEN trajectories AND trajectories_nogaps
The files called 'trajectories' contain only the position of each individual when it is not occluded.
The files called 'trajectories_nogaps' contain the position of each individual also when occluded. The probability of correct identity contains a negative number when the position comes from an estimation. -1 means that the animal was occluded, but a centroid was found after resegmentation of the image. -2 means that the image could not be resegmented, so the position of the centroid is not very accurate. See the paper [1] for more information. There may be small differences between 'trajectories' and 'trajectories_nogaps' even in the non-occluded frames, due to a correction algorithm during the estimation of occluded centroids.
[1] Pérez-Escudero, Vicente-Page, Hinz, Arganda, de Polavieja. idTracker: Tracking individuals in a group by automatic identification of unmarked animals. Nature Methods 11(7):743-748 (2014)