-
Notifications
You must be signed in to change notification settings - Fork 249
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
Add support for Biocam brw v4.x files, closes #1324 #1326
Add support for Biocam brw v4.x files, closes #1324 #1326
Conversation
Thanks Robert! Can you generate and share a very small test file for the new format? |
Hi Alessio, I will upload it and modify the concerning tests as soon as my colleague does new recordings. That should be until mid-October. (Same for SpikeInterface/probeinterface#216) |
Hi @mahlzahn, thanks for the work you have done! My collaborators and I are looking forward to using neo with our data. |
@matbonfanti You can already try it if you checkout the branch (but this means you don't pick up the latest developments from master):
@alejoe91 I created the test file and I am waiting for the next steps to do the upload, see https://gin.g-node.org/NeuralEnsemble/ephy_testing_data/issues/111. Actually, I found there already another test file with a brw4.x file but not with the full raw data and this PR does not include support for such kind of recordings. |
thanks @mahlzahn, I have already tried your version of the code, reading a test recording from my collaborators. I can confirm it works fine (but this recording is too long to be used as test data). |
That's great! If you send me the test files I can make a PR to gin. Let me know if instead you prefer to do it yourself! |
I already prepared all and now I wait for the access rights and then I create the PR myself. |
@mahlzahn you should be able to open a PR now on GIN ;) |
Hi, any ETA on this ? I was trying to make my own version locally before finding this, great to see it being supported ! |
This should be ready for final review since @mahlzahn affed the test files too! |
Just noticed that, I also had a sample uploaded to the GIN a few months back. Any reason not to calculate the gain with the bit depth as it is for brw v3.x ? I just get it with I'll test with HerdingSpikes to see if there's the same scaling issues as with the original unfiltered neo readout. |
Yes, the brw v4.x file format documentation explicitly states how to calculate the analog value on page 7:
I just followed this. |
Opening, filtering and reading .brw v4.x worked just fine for me ! Still getting scaling issues as before : Some OK, some not, might just be saturation, hard to tell without the ability to filter in HerdingSpikes. Will try again with another sorter to see if this is HS-specific. |
The issue seems to persist, even before sorting. I loaded one of my recording, and through SpikeInterface :
Without filtering : Looks like the same 2048 scaling issue. EDIT : Tested on the test file uploaded by @mahlzahn to GIN, similar results : Raw traces : Bandpass filtered : |
Hi Robert. |
missing: proper test file