Social-Evolution-and-Behavior / anTraX

anTraX: high throughput tracking of color-tagged insects
https://antrax.readthedocs.io/
GNU General Public License v3.0
17 stars 3 forks source link

solve step 1 produce error contains `MATLAB:UndefinedFunction` #37

Closed lizimai closed 2 years ago

lizimai commented 2 years ago

Hi :) I am running the solve step 1 on a SLURM cluster with command antrax solve EXPDIR --step 1 --clist 1 --hpc --hpc-options cpus=3,mem-per-cpu=3000,time=72:00:00, and encountered two types of error in some of the .log files (see below). I have 334 videos, each includes 6 colonies, and 211 of them has at least 1 colony failed in the solve step 1. logs of track step does not show error.

$ cat matlab_solve_m_263_c_1.log
02:57:52 -I- Reading video information from file
02:58:02 -I- Loading trgraph from antrax_20220112/graphs/C1/graph_263_263.mat
02:58:03 -I- Finished loading trgraph with 10 tracklets
02:58:04 -I- Loading ids
02:58:04 -I- Finding single ant nodes
02:58:04 -I- Some preperations
02:58:04 -I- Looking for bottleneck pairs
02:58:04 -I- done distance mat
Undefined function or variable 'pairs'.
Error in trgraph/get_bottleneck_pairs (line 515)

Error in trgraph/solve (line 28)

Error in solve_single_movie (line 54)

Error in antrax_mcr_interface (line 30)
MATLAB:UndefinedFunction

$ cat matlab_solve_m_303_c_1.log
03:01:16 -I- Reading video information from file
03:01:28 -I- Loading trgraph from antrax_20220112/graphs/C1/graph_303_303.mat
Warning: Variable 'trjs' not found.
> In trgraph.load (line 875)
  In trhandles/loaddata (line 609)
  In solve_single_movie (line 52)
  In antrax_mcr_interface (line 30)
Undefined function or variable 'trjs'.
Error in trgraph.load (line 876)

Error in trhandles/loaddata (line 609)

Error in solve_single_movie (line 52)

Error in antrax_mcr_interface (line 30)
MATLAB:UndefinedFunction
asafgal commented 2 years ago

So I get it that the track step for these videos finished successfully? It looks like a problem with degenerated graphs that have none or very few tracklets. It's similar one of the issues we debugged with Jana a while ago. I’ll try looking into it later today.

On 21 Feb 2022, at 10:13, Zimai Li @.***> wrote:

$ cat matlab_solve_m_263_c_1.log 02:57:52 -I- Reading video information from file 02:58:02 -I- Loading trgraph from antrax_20220112/graphs/C1/graph_263_263.mat 02:58:03 -I- Finished loading trgraph with 10 tracklets 02:58:04 -I- Loading ids 02:58:04 -I- Finding single ant nodes 02:58:04 -I- Some preperations 02:58:04 -I- Looking for bottleneck pairs 02:58:04 -I- done distance mat Undefined function or variable 'pairs'. Error in trgraph/get_bottleneck_pairs (line 515)

Error in trgraph/solve (line 28)

Error in solve_single_movie (line 54)

Error in antrax_mcr_interface (line 30) MATLAB:UndefinedFunction

$ cat matlab_solve_m_303_c_1.log 03:01:16 -I- Reading video information from file 03:01:28 -I- Loading trgraph from antrax_20220112/graphs/C1/graph_303_303.mat Warning: Variable 'trjs' not found.

In trgraph.load (line 875) In trhandles/loaddata (line 609) In solve_single_movie (line 52) In antrax_mcr_interface (line 30) Undefined function or variable 'trjs'. Error in trgraph.load (line 876)

Error in trhandles/loaddata (line 609)

Error in solve_single_movie (line 52)

Error in antrax_mcr_interface (line 30) MATLAB:UndefinedFunction — Reply to this email directly, view it on GitHub https://github.com/Social-Evolution-and-Behavior/anTraX/issues/37, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACERP5TKBDBBEKJXUC6UIMLU4HX2JANCNFSM5O52UMXQ. You are receiving this because you are subscribed to this thread.

lizimai commented 2 years ago

The track log does not have error. I just had a look at the graph files, For video 263: seems graph_263_263_trjs.mat has variable 'G' that is empty. And inside graph_263_263_trjs.mat , there is only 10 tracklets and the index of tracklets are NaN.

For video 303: graph_303_303_trjs.mat the variable 'G' is normal, there are 1279 tracklets in graph_303_303_trjs.mat files but the index of tracklets are also NaN.

lizimai commented 2 years ago

I just got an update from the IT department. The anTraX that is installed on our server is from Feb 2021 (I assumed it to be the latest version since the version number is also v1.0.2). Most likely my error is the same as Jana's and the update on fixing Jana's bug is not included. I have asked them to update anTrax and will rerun the track and solve. Sorry for taking your time! If the issue is solved after update, I will close the issue.

janamach commented 2 years ago

@lizimai Why are you asking the IT to do this for you?