Packaging OpenEphys data: "Your data may be transposed" #107
-
|
I'm using an ElectricalSeries to save an OpenEphys stream: But the data structure is a n x 1 ndarray which causes a warning "The second dimension of data does not match the length of electrodes. Your data may be transposed." Is this an acceptable method for repackaging OpenEphys data? Do I need to rebuild the data so that it has the correct 2nd dimension? If so, how would I do that? Simply reshape the ndarray so that it has n x numElectrodes? Recording.get_times(segNum) also returns an n x 1 ndarray. There's also a warning for some of the streams: I there a problem with the OpenEphys data structure? Are there any examples/tutorials for converting multi-stream, multi-segment OpenEphys data? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
|
Hi, what does the data represents? If the data is indeed (samples x 1) because there is only one electrode that should be fine. I suggest that you use the interface of neuroconv which will take care of the multi-segment.Plus, you will get compression and the right chunking by default. We don't have a multi-stream converter yet. |
Beta Was this translation helpful? Give feedback.
-
|
Hello and thanks. The data are from a 384-channel neuropixel probe. The streams are action potentials, LFP, events, and 2 sync streams. When I run the neuroconv OpenEphysRecordingInterface example (modified for my data) I get: So I get the available streams and then for each stream, try to run_conversion() but there are duplicate names:
ValueError: Cannot add <class 'pynwb.ecephys.ElectricalSeries'> 'ElectricalSeries0' at 0x139109841655744 to dict attribute 'acquisition' in <class 'pynwb.file.NWBFile'> 'root'. <class 'pynwb.ecephys.ElectricalSeries'> 'ElectricalSeries0' at 0x139109859644368 already exists in 'acquisition' and has the same name. How do I convert multi-stream, multi-segment OpenEphys data? Thanks again! |
Beta Was this translation helpful? Give feedback.
-
|
Here, let's continue it here: |
Beta Was this translation helpful? Give feedback.
I was able to create an nwb file and then add metadata from mat files and export it. I think everything is where it needs to be.
Thanks for creating the new converter.
JK