hugomflavio / actel

Standardised analysis of acoustic telemetry data from fish moving through receiver arrays
https://hugomflavio.github.io/actel-website
26 stars 5 forks source link

Missed event counts/efficiencies #84

Closed jessicas09 closed 1 year ago

jessicas09 commented 1 year ago

I'm receiving a few warnings during the initial Residency analysis that my animals "jumped" through arrays. However, it's not calculating the missed events/efficiencies. There are many recorded events, but there is a '-' for the Known Missed Events and Potentially Missed Events. Many of my receivers are connected which I have specified in the spatial.txt file), but they're not all connected. Given that I'm getting warnings of animals jumping, shouldn't the missed events + efficiencies be calculated? I've read through the vignette but it seems like I should be getting some #'s for those calculations.

(or do I need to render each one of the "jumps" as invalid for it to count?)

hugomflavio commented 1 year ago

Can I see the spatial.txt file and some examples of the jump warnings? You don't need to invalidate the jumps, potentially something else is preventing the efficiency calculation. I need some more info to investigate :)

jessicas09 commented 1 year ago

Oh yes! Let me know if you need anything else :)

Screen Shot 2022-12-07 at 4 17 23 PM

Screen Shot 2022-12-07 at 4 16 20 PM

hugomflavio commented 1 year ago

Any chance you could copy-paste the contents of the spatial.txt here just so I don't have to manually write them down? 😅

edit: Don't worry I got it.

hugomflavio commented 1 year ago

all the connections between the arrays are doubled. If you write both WB6 -- WB7 and WB7 -- WB6, you are telling actel that the two arrays are parallel (which in turn makes efficiency calculations impossible).

Try with this spatial txt instead:

WB6 -- WB7
WB6 -- WB8

WB7 -- WB8
WB7 -- WB13
WB7 -- WB10

WB8 -- WB10
WB8 -- WB13

WB10 -- WB13
WB10 -- WB11

WB11 -- WB13
WB11 -- WB12

You can visualise the difference between the two with these two diagrams:

Your spatial.txt file:

image

The new spatial.txt file:

image

(note: the plotDot function I used to make the two diagrams above is not yet available to the public but I aim to publish it in the future)

Please try again and let me know how it goes :) Efficiency calculations are finicky... but hopefully this will fix it.

jessicas09 commented 1 year ago

That worked - thank you!!! Appreciate you!