|
1 | | -**BIDS validator and linter** |
2 | | - |
3 | | -[](https://travis-ci.com/cpp-lln-lab/CPP_BIDS) |
4 | | - |
5 | 1 | **Unit tests and coverage** |
6 | 2 |
|
7 | 3 | [](https://github.com/cpp-lln-lab/CPP_BIDS/actions) |
8 | 4 |  |
9 | 5 |
|
10 | 6 | [](https://codecov.io/gh/cpp-lln-lab/CPP_BIDS) |
11 | 7 |
|
| 8 | +**BIDS validator and linter** |
| 9 | + |
| 10 | +[](https://travis-ci.com/cpp-lln-lab/CPP_BIDS) |
| 11 | + |
12 | 12 | **Contributors** |
13 | 13 |
|
14 | 14 | [](#contributors-) |
|
30 | 30 | - [saveEventsFile](#saveeventsfile) |
31 | 31 | - [checkCFG](#checkcfg) |
32 | 32 | - [CFG content](#cfg-content) |
| 33 | + - [createBoldJson](#createboldjson) |
33 | 34 | - [How to install](#how-to-install) |
34 | 35 | - [Download with git](#download-with-git) |
35 | 36 | - [Add as a submodule](#add-as-a-submodule) |
@@ -297,6 +298,26 @@ cfg.fileName.datasetDescription |
297 | 298 |
|
298 | 299 | ``` |
299 | 300 |
|
| 301 | +### createBoldJson |
| 302 | + |
| 303 | +``` |
| 304 | +createBoldJson(cfg) |
| 305 | +``` |
| 306 | + |
| 307 | +This function creates a very light-weight version of the side-car JSON file for a BOLD functional run. |
| 308 | + |
| 309 | +This will only contain the minimum BIDS requirement and will likely be less complete than the info you could from DICOM conversion. |
| 310 | + |
| 311 | +If you put the following line at the end of your experiment script, it will dump the content of the `extraInfo` structure in the json file. |
| 312 | + |
| 313 | +``` |
| 314 | +createBoldJson(cfg, extraInfo) |
| 315 | +``` |
| 316 | + |
| 317 | +This allows to add all the parameters that you used to run your experiment in a human readable format: so that when you write your methods sections 2 years later ("the reviewer asked me for the size of my fixation cross... FML"), the info you used WHEN you ran the experiment is saved in an easily accessible text format. For the love of the flying spaghetti monster do not save all your parameters in a `.mat` file: think of the case when you won't have matlab or octave installed on a computer (plus not everyone uses those). |
| 318 | + |
| 319 | +Also to reading your experiment parameters, you won't have to read it from the `setParameters.m` file and wonder if those might have been modified when running the experiment and you did not commit and tagged that change with git. |
| 320 | + |
300 | 321 | ## How to install |
301 | 322 |
|
302 | 323 | ### Download with git |
|
0 commit comments