-
Notifications
You must be signed in to change notification settings - Fork 250
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
Spikeglx: parse tcat input #1511
Comments
@alejoe91 can you handle this ? |
@tabedzki just following up on this. The solution implemented in #1608 by @h-mayorquin should work here because files are parsed based on the original file name in the meta file. Can you test it on your end? |
Thanks for your patience. Unfortunately, this does not address the underlying issue. >>> import neo.rawio
>>> reader = neo.rawio.SpikeGLXRawIO(dirname='./jk44_08092024_g0')
>>> reader.parse_header()
Traceback (most recent call last):
File "<python-input-2>", line 1, in <module>
reader.parse_header()
~~~~~~~~~~~~~~~~~~~^^
File "/Users/ct5868/.venv/lib/python3.13/site-packages/neo/rawio/baserawio.py", line 211, in parse_header
self._parse_header()
~~~~~~~~~~~~~~~~~~^^
File "/Users/ct5868/.venv/lib/python3.13/site-packages/neo/rawio/spikeglxrawio.py", line 157, in _parse_header
info = self.signals_info_dict[0, stream_name]
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
KeyError: (0, 'imec0.ap')
>>> neo.__version__
'0.14.0'
|
Can you print what is inside signals_info_dict? We definitely need a more informative error there. |
Thanks guys for looking into this more. Please find attached the dict requested |
OK, I understand the bug. Can you share the data with us so I can create a stub for this and add it to the tests? The problem is that you combine a tcat signal with one that is not. The tcat is always the segment 0 but the other signal (ap) is assigned segment one. The the line that is trigger the error is assuming that there is always a segment 0 for every stream. The @samuelgarcia @alejoe91 how common is to tcat lf but not ap? It is not clear to me how we should handle this. |
I'd have to check with the researcher if I can share his data, though the data itself is large (95GB). What would be the recommended way to do that if I am granted permission? |
Well, if you don't have acesss to an s3 bucket, dropbox, google drive, mega, etc with that capability then I have a script for stubing spikeglx data here: https://gist.github.com/h-mayorquin/b5abe6ae8e8484976c2d27e0bb04e2a2 We will have to fine-tune for your case, we can do it in a 15 minutes short meeting. It is important for us to know why is tcat only applied to the lp band and not to ap. Moreover, why is the gating mechanism (g0) preserved on the naming even after tcat. In short, a summary description of the dataset for provenance on our test data. |
I seem to be facing a similar issue Folder structure: SNA-137704_mstim_20112024_S1_1_g0 Code to reproduce
No matter which stream_id I define, the error remains the same:
Interestingly, I am able to load the catGT filtered data when I run:
Hopefully this is the right location for this issue. As I see g0 mentioned in the comment above I also removed the catgt folder's affix of '_g0' but this did not alter anything. I am also willing to share any necessary additional information or data. |
Hi h-mayorquin, |
Describe the bug
I am unable to read in my
lf
files when using SpikeGLXRawIO. The file structure is currently as below. When I had all thelf
files bet0
instead oftcat
it worked flawlessly.To Reproduce
Environment:
Related to #1501 #1390
I am happy to provide access to the
meta
files. The SpikeGLX data is rather large so if having access to that would be necessary, I'd have to ask IT how to best distribute that data.The text was updated successfully, but these errors were encountered: