-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble importing BORIS annotations #390
Comments
Thanks for reporting @GKNM995! To troubleshoot, would you mind sharing the BORIS file, and I can see if I can replicate ? Also, which version of SimBA are you using ( |
PS. If you could also share the SimBA project_config.ini at the same time that would help too |
Hi, Thank you for getting back to me so quickly. Here's the info you requested: Version: 1.95.7 I have attached the BORIS csv. Couldn't attach the config file for some reason, so I have pasted the contents here: [General settings] [SML settings] [threshold_settings] [Minimum_bout_lengths] [Frame settings] [Line plot settings] [Path plot settings] [ROI settings] [Directionality settings] [process movements] [create ensemble settings] [Multi animal IDs] [Outlier settings] |
Hi @GKNM995 - yes, I can see what is happening. Your BORIS file is a little different from what SimBA expects. See THIS file as an example for what SimBA expects. The difference seems to be that in your file, every behavior START and STOP is represented by a single row (which I haven't seen before, but it is great, easy to read, and ensures that every behavior has a start and stop event). However, the BORIS file I link to above (which SimBA expects) has a row for every behavior START event, and a row for every behavior STOP event. When SimBA finds no There are two possible ways of solving it: either (i) is it possible to go back to BORIS and easily save the data in the format that SimBA expects? Or, (ii) if that is not possible, we can write a bit of code that transforms the BORIS filetype you have into the BORIS filestype SimBA expects before feeding it into SimBA? |
I see. That's helpful. I will get the data in the desired format from BORIS and let you know how it goes (Will report back on Tuesday). Thank you! |
Hi, I tried the format you suggested but I get the same error message as before. BORIS csvs attached. |
Hi! I saw your comments on the related issue. Gonna try out those fixes. Thank you! |
Thanks for reporting @GKNM995! Let me take a look at this - which version of SimBA are you running when that error happens? |
I can see one potential issue with the BORIS file: When SimBA reads in the BORIS annotations in Inside |
And a second issue: I find several I have seen them missing before in the other thread, but that was events that the annotator had forgot to annotate as |
Those were missing because I forgot to stop a behavior when I started another which I designated as mutually exclusive. I revised the observations in BORIS, and have selected a single FPS for the video. I am using Simba 2.1.7. I updated like you said to do in the other thread |
Ah and if you try to import that BORIS data into SimBA, does it still fail? |
Nope. The new file works! |
Hi,
I am trying to import BORIS annotations for a single video with two animals, but I keep getting the error below:
Any idea how I can fix this?
I can send you the csv with the behavior annotations if seeing it would be helpful.
Thank you!
The text was updated successfully, but these errors were encountered: