kristinbranson / JAABA

Janelia Animal Behavior Detector
Other
76 stars 30 forks source link

JAABAPlot scores handling error? #178

Closed arobie closed 11 years ago

arobie commented 11 years ago

Kristin added a warning to check for frames of detected behavior vs frames in trajectories. And I'm getting this warning a lot, but for many more frames than an off by one error.

Warning: More frames of behaviors detected than frames in trajectory by 3392

In JAABAPlot>behavior_barchart_plot at 3600 In JAABAPlot>Plot_Callback at 1860 In gui_mainfcn at 96 In JAABAPlot at 39 In @(hObject,eventdata)JAABAPlot('Plot_Callback',hObject,eventdata,guidata(hObject))

Can we troubleshoot how JAABAPlot handles scores files?

kristinbranson commented 11 years ago

I'm guessing it is a bug in cull_short_trajectories.

To replicate the behavior, use experiment /groups/branson/home/robiea/Projects_data/mushroombody/MBData/GMR_MB113C_Tr pA_Rig2Plate17BowlA_20120112T152407 with the backup classifier /groups/branson/home/robiea/Code_versioned/Jdetect_github/Jdetect/perframe/Backup_AR_v9.mat

behavior_data at this code snippet: if numel(partition_idx) > numel(sexdata{ge}{i}), warning('More frames of behaviors detected than frames in trajectory by %d',numel(partition_idx)-numel(sexdata{ge}{i})); partition_idx = partition_idx(1:numel(sexdata{ge}{i})); end does not match behavior_data when loaded in. Here: K>> [min(behavior_data.allScores.t0s{21}),max(behavior_data.allScores.t0s{21})] ans = 8645 27967 whereas allScores.t0s{21} is empty directly after loading in

On Fri, Apr 5, 2013 at 11:23 AM, arobie notifications@github.com wrote:

Kristin added a warning to check for frames of detected behavior vs frames in trajectories. And I'm getting this warning a lot, but for many more frames than an off by one error.

Warning: More frames of behaviors detected than frames in trajectory by 3392

In JAABAPlot>behavior_barchart_plot at 3600 In JAABAPlot>Plot_Callback at 1860 In gui_mainfcn at 96 In JAABAPlot at 39 In @(hObject,eventdata)JAABAPlot('Plot_Callback',hObject,eventdata,guidata(hObject))

Can we troubleshoot how JAABAPlot handles scores files?

— Reply to this email directly or view it on GitHubhttps://github.com/kristinbranson/JAABA/issues/178 .

bjarthur commented 11 years ago

bingo. fixed in commit 1ca25fc945640d96766d4170fe237f2f5a1b6ab4