sgoldenlab / simba

SimBA (Simple Behavioral Analysis), a pipeline and GUI for developing supervised behavioral classifiers
https://simba-uw-tf-dev.readthedocs.io/
GNU General Public License v3.0
273 stars 137 forks source link

no ROI_features_summary csv file created #290

Closed filos93 closed 9 months ago

filos93 commented 9 months ago

Describe the bug Hey, thanks so much for the fantastic software and all the hard work, I have a problem with the creation of the ROI_features_summary CSV file. After I analyze roi aggregates, extract features, and then append roi data to features, I cannot get any ROI_features_summary CSV file. I do not get any error message back, I just do not get the file. As I am using the latest version of SimBA (version 1.73.3), I would like to know if you do not get such file anymore in the latest version or if I have to run some additional steps. Please, let me know. Thanks in advance.

To Reproduce Steps to reproduce the behavior:

  1. Draw a rectangle roi
  2. Analyze roi data aggregates
  3. append roi data to features (once extracted)
  4. no error, but no ROI summary csv file generated

Expected behavior I would expect to get a ROI_featuressummary####.csv file as mentioned in https://github.com/sgoldenlab/simba/blob/master/docs/ROI_tutorial.md#part-3-generating-features-from-roi-data

Screenshots n/a.

Desktop (please complete the following information):

Additional context I would like to use the info from the ROI summary csv file especially for ROI directionality analysis (I used similar bp labelling that include nose, left ear, and right ear tracking as specified by you), in particular the sum of time (in seconds) that each animal spent directed towards the ROI in my video

sronilsson commented 9 months ago

Hi @filos93 - thank you for reporting this and good catch! Looking at the code, it looks like this file output was lost in translation, probably when we introduced the user option to include ROI features based on body-parts and/or ROI features based on animals, I will insert it again and let you know.

sronilsson commented 9 months ago

@filos93 if you upgrade to simba 1.73.5 with pip install simba-uw-tf-dev --upgrade, how does it look on your end?

Thanks Simon

filos93 commented 9 months ago

@sronilsson I upgraded to the latest version (v. 1.73.5) and it worked perfectly, the ROI_features_summary CSV file was created also including directionality info (I attached screenshots for others) Screenshot (803) Screenshot (804) Thank you so much for all the support