Skip to content

Commit 75d4713

Browse files
committed
[doc] update documentation for v0.9
1 parent df12a6c commit 75d4713

13 files changed

+40
-39
lines changed

AUTHORS.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
JSNIRF Toolbox is written by Qianqian Fang as part of the NeuroJData/OpenJData project.
1+
JSNIRFY Toolbox is written by Qianqian Fang as part of the NeuroJSON project.
22

3-
Qianqian is currently an Assistant Professor in the
3+
Qianqian is currently an Associate Professor in the
44
Department of Bioengineering at Northeastern University.
55

66
Address: Dept. of Bioengineering
@@ -9,5 +9,4 @@ Address: Dept. of Bioengineering
99
URL: http://fanglab.org
1010
Email: <q.fang at neu.edu>
1111

12-
OpenJData Website : http://openjdata.org
13-
12+
NeuroJSON Website : https://neurojson.org

ChangeLog.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Major updates are marked with a "*"
44

5-
== JSNIRFY Toolbox v0.5 (Amygdala), FangQ <q.fang (a) neu.edu> ==
5+
== JSNIRFY Toolbox v0.9 (Amygdala - final), FangQ <q.fang (a) neu.edu> ==
66

77
2025-03-15 [672e388] [bug] support pre-R2016b matlab, although output snirf is not compliant
88
2025-03-14 [f0caf85]*[bug] saving detectorLabels and sourceLabels as strings, fNIRS/snirf-samples#13

LICENSE_GPLv3.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
===============================================================================
2-
= Monte Carlo eXtreme (MCX) -- CUDA =
2+
= JSNIRFY - A compact MATLAB/Octave toolbox to read/write SNIRF files =
33
===============================================================================
44

5-
Copyright (c) 2010-2019 Qianqian Fang <q.fang at neu.edu>
5+
Copyright (c) 2019-2025 Qianqian Fang <q.fang at neu.edu>
66

77
-------------------------------------------------------------------------------
88

README.md

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# JSNIRF Toolbox - A portable MATLAB toolbox for parsing SNIRF (HDF5) and JSNIRF (JSON) files
1+
# JSNIRFY - A MATLAB/Octave toolbox for parsing SNIRF (HDF5) and JSNIRF (JSON) files
22

3-
* Copyright (C) 2019,2025 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.5 (code name: Amygdala)
6-
* Compatibility: MATLAB R2010b or newer, R2016b or newer saves SNIRF-1.1 compliant files
5+
* Version: 0.9 (code name: Amygdala - final)
6+
* Compatibility: MATLAB R2010b or newer, R2016b or newer to save SNIRF-1.1 compliant files, or Octave 5.0 and newer
77
* URL: https://github.com/NeuroJSON/jsnirfy
88

99
## Overview
@@ -12,7 +12,7 @@ JSNIRF is a portable format for storage, interchange and processing data generat
1212
from functional near-infrared spectroscopy, or fNIRS - an emerging functional neuroimaging
1313
technique. Built upon the JData and SNIRF specifications, a JSNIRF file has both a
1414
text-based interface using the JavaScript Object Notation (JSON) [RFC4627] format
15-
and a binary interface using the Universal Binary JSON (UBJSON, http://ubjson.org) derived
15+
and a binary interface using the University Binary JSON (UBJSON, https://ubjson.org) derived
1616
Binary JData ([BJData](https://github.com/NeuroJSON/bjdata)) serialization format.
1717
It contains a compatibility layer to provide a 1-to-1 mapping to the existing
1818
HDF5 based SNIRF files. A JSNIRF file can be directly parsed by most existing
@@ -22,17 +22,19 @@ enabled by JData data serialization framework.
2222

2323
This toolbox also provides a fast/complete reader/writer for the HDF5-based SNIRF
2424
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
26-
files specified by the SNIRF specification http://github.com/fNIRS/snirf .
25+
(https://github.com/NeuroJSON/easyh5). The toolbox can read/write SNIRF v1.0 data
26+
files specified by the SNIRF specification https://github.com/fNIRS/snirf .
2727

2828
This toolbox is selectively dependent on the below toolboxes
2929
- 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.
30+
https://github.com/NeuroJSON/easyh5
31+
- To read/write SNIRF/HDF5 files in GNU Octave, one must install the oct-hdf5 using
32+
`pkg install https://github.com/fangq/oct-hdf5/archive/refs/heads/main.zip`
3133
- To create/read/write JSNIRF files, one must install the JSONLab toolbox
32-
http://github.com/NeuroJSON/jsonlab ; this is supported on both MATLAB and Octave.
34+
https://github.com/NeuroJSON/jsonlab; this is supported on both MATLAB and Octave.
3335
- To read/write JSNIRF files with internal data compression, one must install
34-
the JSONLab toolbox http://github.com/NeuroJSON/jsonlab as well as ZMat toolbox
35-
http://github.com/NeuroJSON/zmat ; this is supported on both MATLAB and Octave.
36+
the JSONLab toolbox https://github.com/NeuroJSON/jsonlab as well as ZMat toolbox
37+
https://github.com/NeuroJSON/zmat ; this is supported on both MATLAB and Octave.
3638

3739
## Why JSNIRF?
3840

@@ -59,7 +61,7 @@ JSNIRF file is a plain JSON file, and has various advantages
5961

6062
The binary JSNIRF format uses a binary JSON format (BJData) which is also
6163
- quasi-human readable despite it is binary
62-
- free parsers available for [MATLAB](http://github.com/NeuroJSON/jsonlab),
64+
- free parsers available for [MATLAB](https://github.com/NeuroJSON/jsonlab),
6365
[Python](https://pypi.org/project/bjdata/), [C++](https://github.com/NeuroJSON/json),
6466
and [C](https://github.com/NeuroJSON/ubj)
6567
- easy to write your own parser because of the simplicity
@@ -145,20 +147,20 @@ is converted to the below JSON/JSNIRF data structure
145147

146148
## Installation
147149

148-
The JSNIRF toolbox can be installed using a single command
150+
The JSNIRFY toolbox can be installed using a single command
149151
```
150-
addpath('/path/to/jsnirf');
152+
addpath('/path/to/jsnirf');
151153
```
152154
where the `/path/to/jsnirf` should be replaced by the unzipped folder
153155
of the toolbox (i.e. the folder containing `savejsnirf.m/loadjsnirf.m`).
154156

155157
In order for this toolbox to work, one must install the below dependencies
156158
- the `saveh5/loadh5` functions are provided by the EasyH5 toolbox at
157-
http://github.com/NeuroJSON/easyh5
159+
https://github.com/NeuroJSON/easyh5
158160
- the `savejson` and `savebj` functions are provided by the JSONLab
159-
toolbox at http://github.com/NeuroJSON/jsonlab
161+
toolbox at https://github.com/NeuroJSON/jsonlab
160162
- if data compression is specified by `'compression','zlib'` param/value
161-
pairs, ZMat toolbox will be needed, http://github.com/NeuroJSON/zmat
163+
pairs, ZMat toolbox will be needed, https://github.com/NeuroJSON/zmat
162164

163165

164166
## Usage
@@ -193,7 +195,7 @@ Example:
193195

194196
Please submit your bug reports, feature requests and questions to the Github Issues page at
195197

196-
https://github.com/NeuroJSON/jsnirf/issues
198+
https://github.com/NeuroJSON/jsnirfy/issues
197199

198200
Please feel free to fork our software, making changes, and submit your revision back
199-
to us via "Pull Requests". JSNIRF toolbox is open-source and we welcome your contributions!
201+
to us via "Pull Requests". JSNIRFY toolbox is open-source and we welcome your contributions!

aos2soa.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
%
2121
% this file is part of JSNIRF specification: https://github.com/NeuroJSON/jsnirf
2222
%
23-
% License: GPLv3 or Apache 2.0, see https://github.com/NeuroJSON/jsnirf for details
23+
% License: GPLv3 or Apache 2.0, see https://github.com/NeuroJSON/jsnirfy for details
2424
%
2525

2626
if (nargin < 1 || ~isstruct(starray))

jsnirfcreate.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
%
88
% Create an empty JSNIRF data structure defined in the JSNIRF
99
% specification: https://github.com/NeuroJSON/jsnirf or a SNIRF data structure
10-
% based on https://github.com/fNIRS/snirf
10+
% based on the SNIRF specification at https://github.com/fNIRS/snirf
1111
%
1212
% author: Qianqian Fang (q.fang <at> neu.edu)
1313
%
@@ -27,7 +27,7 @@
2727
%
2828
% this file is part of JSNIRF specification: https://github.com/NeuroJSON/jsnirf
2929
%
30-
% License: GPLv3 or Apache 2.0, see https://github.com/NeuroJSON/jsnirf for details
30+
% License: GPLv3 or Apache 2.0, see https://github.com/NeuroJSON/jsnirfy for details
3131
%
3232

3333
% define empty SNIRF data structure with all required fields

loadjsnirf.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
%
77
% Load a text (.jnirs or .json) or binary (.bnirs) based JSNIRF
88
% file defined in the JSNIRF specification:
9-
% https://github.com/NeuroJSON/jsnirf or a .snirf/.h5 SNIRF data defined in
9+
% https://github.com/NeuroJSON/jsnirfy or a .snirf/.h5 SNIRF data defined in
1010
% the SNIRF specification https://github.com/fNIRS/snirf
1111
%
1212
% author: Qianqian Fang (q.fang <at> neu.edu)
@@ -32,7 +32,7 @@
3232
%
3333
% this file is part of JSNIRF specification: https://github.com/NeuroJSON/jsnirf
3434
%
35-
% License: GPLv3 or Apache 2.0, see https://github.com/NeuroJSON/jsnirf for details
35+
% License: GPLv3 or Apache 2.0, see https://github.com/NeuroJSON/jsnirfy for details
3636
%
3737

3838
if (nargin < 1)

loadsnirf.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
%
77
% Load an HDF5 based SNIRF file, and optionally convert it to a JSON
88
% file based on the JSNIRF specification:
9-
% https://github.com/NeuroJSON/jsnirf
9+
% https://github.com/NeuroJSON/jsnirfy
1010
%
1111
% author: Qianqian Fang (q.fang <at> neu.edu)
1212
%
@@ -29,7 +29,7 @@
2929
%
3030
% this file is part of JSNIRF specification: https://github.com/NeuroJSON/jsnirf
3131
%
32-
% License: GPLv3 or Apache 2.0, see https://github.com/NeuroJSON/jsnirf for details
32+
% License: GPLv3 or Apache 2.0, see https://github.com/NeuroJSON/jsnirfy for details
3333
%
3434

3535
if (nargin == 0 || ~ischar(fname))

savejsnirf.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
%
4040
% this file is part of JSNIRF specification: https://github.com/NeuroJSON/jsnirf
4141
%
42-
% License: GPLv3 or Apache 2.0, see https://github.com/NeuroJSON/jsnirf for details
42+
% License: GPLv3 or Apache 2.0, see https://github.com/NeuroJSON/jsnirfy for details
4343
%
4444

4545
if (nargin < 2)

savesnirf.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function savesnirf(data, outfile, varargin)
66
%
77
% Load an HDF5 based SNIRF file, and optionally convert it to a JSON
88
% file based on the JSNIRF specification:
9-
% https://github.com/NeuroJSON/jsnirf
9+
% https://github.com/NeuroJSON/jsnirfy
1010
%
1111
% author: Qianqian Fang (q.fang <at> neu.edu)
1212
%
@@ -24,7 +24,7 @@ function savesnirf(data, outfile, varargin)
2424
%
2525
% this file is part of JSNIRF specification: https://github.com/NeuroJSON/jsnirf
2626
%
27-
% License: GPLv3 or Apache 2.0, see https://github.com/NeuroJSON/jsnirf for details
27+
% License: GPLv3 or Apache 2.0, see https://github.com/NeuroJSON/jsnirfy for details
2828
%
2929

3030
if (nargin < 2 || ~ischar(outfile))

snirfcreate.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
%
2727
% this file is part of JSNIRFY toolbox: https://github.com/NeuroJSON/jsnirfy
2828
%
29-
% License: GPLv3 or Apache 2.0, see https://github.com/NeuroJSON/jsnirf for details
29+
% License: GPLv3 or Apache 2.0, see https://github.com/NeuroJSON/jsnirfy for details
3030
%
3131

3232
if (nargin == 1)

snirfdecode.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
%
2828
% this file is part of JSNIRF specification: https://github.com/NeuroJSON/jsnirf
2929
%
30-
% License: Apache 2.0, see https://github.com/NeuroJSON/jsnirf for details
30+
% License: Apache 2.0, see https://github.com/NeuroJSON/jsnirfy for details
3131
%
3232

3333
if (nargin < 1)

soa2aos.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
%
2020
% this file is part of JSNIRF specification: https://github.com/NeuroJSON/jsnirf
2121
%
22-
% License: GPLv3 or Apache 2.0, see https://github.com/NeuroJSON/jsnirf for details
22+
% License: GPLv3 or Apache 2.0, see https://github.com/NeuroJSON/jsnirfy for details
2323
%
2424

2525
if (nargin < 1 || ~isstruct(starray))

0 commit comments

Comments
 (0)