Repository navigation
Open Ephys file format - #433
Palaeocortex wants to merge 3 commits into
Conversation
|
Thank you very much for this PR. Neo is io is moving slowly toward rawio for some format that need chunk acces and speed. Format integrated in neo.rawio have automatically neo.io. tridesclous and ephyviewer are already based on this rawio low level API. I think having openephys in rawio will be important for spike sorting on long datasets. I will have a look on thsi io but after would you mind if I try to port this Io to rawio ? |
|
No problem, port it to whatever you find more appropriate. Happy to contribute. |
|
Pending a rawio-compatible implementation, I think we should merge this. @Palaeocortex could you provide us with a test file? |
|
Hello @Palaeocortex! Thanks for updating the PR.
|
|
I've just uploaded a test data file (2017-05-19_20-25-32 DAT wt 271 testfile.tar.gz |
|
@Palaeocortex: They should be uploaded here at gin gnode See doc. Best. |
|
Hi @Palaeocortex I will do a lot od copy/paste from your code. I will open a separate PR. When the new implementaion will be done could you help me by rewriwing it ? best Samuel |
|
I got your file. |
|
hi @Palaeocortex
Thank you for helping. best |
|
Hi Samuel! Sorry for uploading data in the wrong place, I forgot to correct. The xml files are part of OpenEphys and carry information about GUI settings and channel info. The _2 says that the measurement has been interrupted and restarted. 100_CH1 is the first measuring session, then recording stopped and started again. The second session is called 100_CH1_2, the third 100_CH1_3 and so on. My code checks the timestamps and puts the snips together, adding zeros inbetween, for the duration of the brake. The example file shows one such interruption. I can happen if the experimenter wants to interrupt or when occasionaly the OpenEphys GUI breaks and needs to be restarted. |
|
Hi Cristian, |
|
@Palaeocortex |
|
I'll check the code in #580. Maybe both behaviors should be implemented? In my case, it was desirable to have a single segment because data belongs to a single experiment with important timing. With several neo Segments I'd have to stick them together manually and add zeros. With software crashes you lack any other choice. |
|
Yep. But guleing with zeros could be done outside this IO. It is more tools that could be( or not) in neo but I don't think to add this option specifically to this IO The new way of neo is : load from disk only the necessary chunks to save memory bandwith. |
|
@Palaeocortex For a given segment all channel files do not have the lenght. |
|
superseded by #580 |
|
Hi! Yes, the file length is not consistent and this occurs often, especially when the OpenEphys GUI freezes. I'm still loading the data because just one data point is missing (if I remember correctly), that means an interval of 1/sampling rate. It is not the official behavior of the OpenEphys GUI though, at least from what I understand from the documentation. I made the consistency checks in my code a bit more flexible to deal with this minor events. |
Added support for Open Ephys file format
OpenEphys.py from https://github.com/open-ephys/analysis-tools.git, with minor changes
openephysio.py
Tested with Python 3.5.2 and 2.7