Closed INF-Rene closed 4 years ago
@nicain can you respond to this issue?
Thanks for the report, @INF-Rene! Can you please give more detail about the external NWB reader that works successfully? I am guessing that this is a NWB 1.x vs 2.0 issue, but I want to find the best way to route this information so that it can be addressed. CC @sgratiy @dyf
Thanks @nicain ! I'm sorry to say I was completely wrong about the external viewer. I mixed up with another file. I used HDFview 3.0.0, but the viewer said the file format is unsupported.
When I open the file in notepad I can see the file version in between the jibberish, which is NWB-1.0.5.
Hope this helps. If you want to try on the file you can download the file using the code in my opening post, but if you prefer I can upload it.
I just tried to open an NWB 2.0 file from the Allen institute and it gave me no problems. Is there any method to bulk convert NWB 1.x to 2.0 ?
@INF-Rene Not that I'm aware of.
@JFPerkins is working on some tooling to handle this for AIBS Brain Observatory files. Will that cover your needs? CC @sgratiy
That would be perfect! Thank you and let me know if there is anything I can do to help
@INF-Rene I am facing the same issue, please could you tell me how did you solve it? Thank you.
Hi @sarmishta Just to be clear, which file from the Allen Institute are you having trouble loading? If this is an intracellular recording stored in NWB 1.0, you can use the resources below:
This tutorial may be useful for reading the NWB 1.0 data: https://smackesey.github.io/nwb_tutorial/assets/tutorial.html
There is also documentation about the NWB 1.0 format at: https://github.com/NeurodataWithoutBorders/specification_nwbn_1_0_x/tree/master/version_1.0.6 And at: http://neurodatawithoutborders.github.io/api-python/build/html/index.html
Hi @sarmishta
Unfortunately NWB files generated by allen institute or by their acquisition software (see https://github.com/AllenInstitute/MIES) are NWB v1 and as far as I know still not working in either pynwb or matnwb.
It's really a pity since me and many electrophysiologists around me are switching to MIES for acquisition.
Currently I am recovering the data using my own scripts in MATLAB, which is just using the hdf5read
function which comes built-in with MATLAB. Python has a similar package.
Of course this is far from ideal, but for me it was the only viable solution for working with NWB v1 files at the moment.
Good luck!
@INF-Rene We are already working on the NWBv2 support. Feel free to subscribe to https://github.com/AllenInstitute/MIES/issues/22 to get notified when its done.
@INF-Rene,@rly Thank you so much for the reply. We were looking at the Allen cell Type Database(https://celltypes.brain-map.org/experiment/electrophysiology/528706755 ) , to extract spike features from the AllenSDK using CellTypesCache Class. We noticed that the threshold_t spike feature does not match the cell response X-Aixis I.e time in seconds. Our guess is that, the start time of the stimulus and response for all the cells were modified by an offset for them to converge at the same time. Do you have any idea on what is the offset value? Thank you!
I'm closing this issue as read support for NWBv1 files is not planned to be part of pynwb.
Feel free to reopen if someone wants to work on that.
1) Bug
When downloading NWB files through the AllenSDK I can't seem to read the files using the io.read() command after creating an NWBHDF5IO object. When I open the file with an external NWB reader there is no problem.
Steps to Reproduce
I have obtained the nwb file using this code:
Then I navigate to the specimen folder where ephys.nwb is located and run the following code:
Giving me the following error:
Environment
Please describe your environment according to the following bullet points.
Edit: updated from 0.4.1 to 0.5.1, same result