11# JSNIRF Toolbox - A portable MATLAB toolbox for parsing SNIRF (HDF5) and JSNIRF (JSON) files
22
3- * Copyright (C) 2019 Qianqian Fang <q.fang at neu.edu>
3+ * Copyright (C) 2019,2025 Qianqian Fang <q.fang at neu.edu>
44* License: GNU General Public License version 3 (GPL v3) or Apache License 2.0, see License* .txt
5- * Version: 0.4 (code name: Amygdala - alpha)
6- * URL: https://github.com/NeuroJSON/jsnirf/tree/master/lib/matlab
5+ * Version: 0.5 (code name: Amygdala)
6+ * Compatibility: MATLAB R2010b or newer, R2016b or newer saves SNIRF-1.1 compliant files
7+ * URL: https://github.com/NeuroJSON/jsnirfy
78
89## Overview
910
@@ -20,18 +21,18 @@ storage, grouping, compression, integration with heterogeneous scientific data
2021enabled by JData data serialization framework.
2122
2223This toolbox also provides a fast/complete reader/writer for the HDF5-based SNIRF
23- files (along with any HDF5 data) via the EazyH5 toolbox
24- (http://github.com/fangq/eazyh5 ). The toolbox can read/write SNIRF v1.0 data
24+ files (along with any HDF5 data) via the EasyH5 toolbox
25+ (http://github.com/NeuroJSON/easyh5 ). The toolbox can read/write SNIRF v1.0 data
2526files specified by the SNIRF specification http://github.com/fNIRS/snirf .
2627
2728This toolbox is selectively dependent on the below toolboxes
28- - To read/write SNIRF/HDF5 files, one must install the EazyH5 toolbox at
29- http://github.com/fangq/eazyh5 ; this is only supported on MATLAB, not Octave.
29+ - To read/write SNIRF/HDF5 files, one must install the EasyH5 toolbox at
30+ http://github.com/NeuroJSON/easyh5 ; this is only supported on MATLAB, not Octave.
3031- To create/read/write JSNIRF files, one must install the JSONLab toolbox
3132 http://github.com/NeuroJSON/jsonlab ; this is supported on both MATLAB and Octave.
3233- To read/write JSNIRF files with internal data compression, one must install
3334 the JSONLab toolbox http://github.com/NeuroJSON/jsonlab as well as ZMat toolbox
34- http://github.com/fangq /zmat ; this is supported on both MATLAB and Octave.
35+ http://github.com/NeuroJSON /zmat ; this is supported on both MATLAB and Octave.
3536
3637## Why JSNIRF?
3738
@@ -152,12 +153,12 @@ where the `/path/to/jsnirf` should be replaced by the unzipped folder
152153of the toolbox (i.e. the folder containing ` savejsnirf.m/loadjsnirf.m ` ).
153154
154155In order for this toolbox to work, one must install the below dependencies
155- - the ` saveh5/loadh5 ` functions are provided by the EazyH5 toolbox at
156- http://github.com/fangq/eazyh5
156+ - the ` saveh5/loadh5 ` functions are provided by the EasyH5 toolbox at
157+ http://github.com/NeuroJSON/easyh5
157158- the ` savejson ` and ` savebj ` functions are provided by the JSONLab
158159 toolbox at http://github.com/NeuroJSON/jsonlab
159160- if data compression is specified by ` 'compression','zlib' ` param/value
160- pairs, ZMat toolbox will be needed, http://github.com/fangq /zmat
161+ pairs, ZMat toolbox will be needed, http://github.com/NeuroJSON /zmat
161162
162163
163164## Usage
@@ -168,7 +169,7 @@ Example:
168169 data=snirfcreate; % create an empty SNIRF data structure
169170 data=snirfcreate('data',realdata,'aux',realauxdata); % setting the default values to user data
170171 data=jsnirfcreate('format','snirf'); % specify 'snirf' or 'jsnirf' using 'format' option
171- jsn=snirfdecode(loadh5('mydata.snirf')); % load raw HDF5 data and convert to a JSNIRF struct
172+ jsn=snirfdecode(loadh5('mydata.snirf', 'stringarray', 1 )); % load raw HDF5 data and convert to a JSNIRF struct
172173```
173174### ` loadsnirf/loadjsnirf ` - Loading SNIRF/JSNIRF files as in-memory MATLAB data structures
174175Example:
0 commit comments