This MATLAB-based function is to create a UIFigure viewer for hdf5 files, including Neurodata Without Border (NWB) files.
Tested in MATLAB R2022a (2024-Jan-17).
Inspired by the online hdf5 viewer: https://myhdf5.hdfgroup.org/
Example
Get an example hdf5 file 469801136_ephys.nwb
from the Allen Brain Institute Cell Types Database (http://api.brain-map.org/api/v2/well_known_file_download/491200026) and run the following code:
hdf5fn = '469801136_ephys.nwb';
hdf5viewer(hdf5fn)
For more example hdf5 files,
- Allen Brain Institute Cell Types Database (https://dandiarchive.org/dandiset/000020/)
- https://github.com/jupyterlab/jupyterlab-hdf5/tree/master/example
If you use this code in your work, please cite it via the citation widget in the sidebar of this repository, or
X. Ma, hdf5viewer_matlab, (2024), GitHub repository, https://github.com/XinyueMa-neuro/hdf5viewer_matlab.
Author: Xinyue Ma
Email: [email protected]
PhD student, Integrated Program in Neuroscience
McGill University
Montreal, QC, H3A 1A1
Canada