Skip to content

Commit 0c03781

Browse files
committed
update readme
1 parent b8cb066 commit 0c03781

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

README.md

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
**BIDS validator and linter**
2-
3-
[![Build Status](https://travis-ci.com/cpp-lln-lab/CPP_BIDS.svg?branch=master)](https://travis-ci.com/cpp-lln-lab/CPP_BIDS)
4-
51
**Unit tests and coverage**
62

73
[![](https://img.shields.io/badge/Octave-CI-blue?logo=Octave&logoColor=white)](https://github.com/cpp-lln-lab/CPP_BIDS/actions)
84
![](https://github.com/cpp-lln-lab/CPP_BIDS/workflows/CI/badge.svg)
95

106
[![codecov](https://codecov.io/gh/cpp-lln-lab/CPP_BIDS/branch/master/graph/badge.svg)](https://codecov.io/gh/cpp-lln-lab/CPP_BIDS)
117

8+
**BIDS validator and linter**
9+
10+
[![Build Status](https://travis-ci.com/cpp-lln-lab/CPP_BIDS.svg?branch=master)](https://travis-ci.com/cpp-lln-lab/CPP_BIDS)
11+
1212
**Contributors**
1313

1414
[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors-)
@@ -30,6 +30,7 @@
3030
- [saveEventsFile](#saveeventsfile)
3131
- [checkCFG](#checkcfg)
3232
- [CFG content](#cfg-content)
33+
- [createBoldJson](#createboldjson)
3334
- [How to install](#how-to-install)
3435
- [Download with git](#download-with-git)
3536
- [Add as a submodule](#add-as-a-submodule)
@@ -297,6 +298,26 @@ cfg.fileName.datasetDescription
297298
298299
```
299300

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+
300321
## How to install
301322

302323
### Download with git

0 commit comments

Comments
 (0)