-
Notifications
You must be signed in to change notification settings - Fork 248
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
Spike2IO cannot read smrx recordings #424
Comments
In [1]: from neo.io import Spike2IO In [3]: x=r.read(cascade=True,lazy=False)KeyError Traceback (most recent call last) /usr/lib/python3.6/site-packages/neo/io/baseio.py in read(self, lazy, cascade, **kargs) /usr/lib/python3.6/site-packages/neo/io/spike2io.py in read_segment(self, take_ideal_sampling_rate, lazy, cascade) /usr/lib/python3.6/site-packages/neo/io/spike2io.py in read_header(self, filename) KeyError: 215 |
Yes. Only smr are supported. Do you have small files you could give and specification of the format ? |
I can't share any data from my current project for reasons; best not to use
these at all to be safe. I will see if I can get a short snippet from an
unrelated project.
…On Oct 27, 2017 3:15 AM, "Garcia Samuel" ***@***.***> wrote:
Yes. Only smr are supported.
I don't known how much smr and smrx are different. If it is only some
conversion 32bit to 64bit this should be easy to adapt. But if smrx is a
completely new file format then it is a piece of work.
Do you have small files you could give and specification of the format ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#424 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIfZbk3nXjdsYcfXOT-cPtF7Ksc6AgH9ks5swYL4gaJpZM4QIIcF>
.
|
If not too difficult, this snippet should be as small as possible and should contains all possible objects (signals, spikes, event, epoch..). Thanks. |
Well I am totally unable to work with .smrx files at the moment. Do you
have a sample of such a .smr file that you could upload or send to me? I
could then have a colleague convert it to .smrx.
…On Oct 27, 2017 5:49 AM, "Garcia Samuel" ***@***.***> wrote:
If not too difficult, this snippet should be as small as possible and
should contains all possible objects (signals, spikes, event, epoch..).
Thanks.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#424 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIfZbpP9xHvOmnv9AYlWb_DOAzJ1ZGwyks5swacwgaJpZM4QIIcF>
.
|
Does any of you have a specification of the |
I still do not have theses specifications. |
It would be very useful to be able to read The 64-bit filing system (*.smrx) The new 64-bit filing system was designed to be logically compatible with the 32-bit system; by this we mean that it can hold the same types of data as the original without information loss, though some of these types are extended. It is also likely that we will add further data types, as required, in the future. Features include: 1.Times are stored as 64-bit integers. At a time resolution of 1 ns (nanosecond, 10-9 seconds), the maximum duration is around 256 years. 2.The file size is limited only by the capabilities of the operating system and by the size of a file that you can manage conveniently for archival. As I write this disk drives have a maximum size of a few TB. The file format is designed to make recovery of damaged files relatively straightforward. 3.The files have a built-in data lookup system designed to minimise the number of disk reads required to locate data on any channel. 4.The overhead for severely fragmented waveform data has been reduced to a few bytes per fragment. We have removed many of the limits on things like the number of channels in a file and the length of channels comments and units. Before Spike2 version 8.03 the program enforced the original limits on the length of strings (but treated as Unicode characters). From version 8.03 onwards, a 64-bit smrx file in Spike2 can have 20 Unicode characters of channel title, 10 of channel units and comments can be up to 100 characters. The underlying file format does not impose a fixed limit, but practical considerations make it useful to define them. |
Dear Tim, I agree. This smrx format have to be incorporated in neo. To develop a new format a developer need:
At the moment, I don't have any of theses. Cheers Samuel |
Dear Samuel |
We'd like to offer conversion from smrx to NWB, and I think the best way to offer this would be: I was able to find some code to do this in MATLAB as part of the Brainstorm package here in case that is useful. I found a link for Python code here but the form threw an error. It also says this code only works on Windows, which I know won't work for many NWB users, but at least it's a start. edit: The link is now fixed, and leads to a .exe which I cannot open on OSX Catalina using wine. I'm guessing it's 32-bit |
Hi ben. 2 independent answers:
Cheers |
I agree, fewer steps in the conversion is better. I haven't been able to try out #796 yet, but if that works for this use-case I agree that would be better, particularly since it supports more flexibility and types of data than SpikeInterface. That being said, we also want to use SpikeInterface spike sorting pipelines on SMRX data, so we'd need some path that connects SMRX to SpikeExtractor regardless of if it is our preferred conversion strategy. I've been working on the requirements you mentioned:
|
@samuelgarcia CED just released a pip-installable API: https://pypi.org/project/sonpy/ |
Close by #987 |
I am unable to read recordings in the .smrx format
The text was updated successfully, but these errors were encountered: