Skip to content
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

Problematic selections #56

Open
gnunezmir opened this issue Feb 13, 2023 · 7 comments
Open

Problematic selections #56

gnunezmir opened this issue Feb 13, 2023 · 7 comments

Comments

@gnunezmir
Copy link

Hello!

I'm trying to measure acoustic parameters for a batch of bat calls. A handful of them are being flagged as problematic and I am not sure what may be wrong with them. Any guidance would be greatly appreciated. I am attaching one of these problematic .wav files.

Thank you so much!

Gabriela
108_Echo.zip

@maRce10
Copy link
Owner

maRce10 commented Feb 13, 2023

Hi

I was able to read the file in R:

warbleR::read_wave("~/Downloads/delete2/108_Echo.wav")
seewave::spectro(warbleR::read_wave("~/Downloads/delete2/108_Echo.wav"))

imagen

Can you elaborate on why is it problematic or what code are you running?

Marcelo

@gnunezmir
Copy link
Author

Hi Marcelo,

Thanks for the prompt response!

As I try to create the selection table (using selection_table), the function flags ~12 wav files out of >1,500 as "problematic." I identified them using check_sels. It doesn't really say anything about what is wrong with them, just that they are "not OK". In context, we can't think of what could be wrong with them either compared to the other 1,500. Hope you could shed some light as to what kind of file will be flagged by check_sels.

Thank you so much!

Gabriela

@maRce10
Copy link
Owner

maRce10 commented Feb 14, 2023

if you run:

cs <- check_sels(X)

the column cs$check.res has the info about what was wrong with each row

@maRce10
Copy link
Owner

maRce10 commented Feb 14, 2023

And please note that check_sels() doesn't flag sound files, it flags selections (rows) in a selection data frame

@gnunezmir
Copy link
Author

Awesome! It appears these files "exceed sound file length." Does that sound reasonable to you given the file I sent you? We can work with that if this is normal behavior for WarbleR and not a bug. Thanks for the help!

@maRce10
Copy link
Owner

maRce10 commented Feb 14, 2023

it means that the selection end (or even start) is higher than the actual duration of the sound file. That doesn't make sense so there is something wrong in your data.

@gnunezmir
Copy link
Author

Ah, I interpreted that incorrectly. Ok, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants