Skip to content

Commit eb0b688

Browse files
authored
Merge pull request #111 from Remi-Gau/remi-update_badges
add zenodo DOI badge
2 parents d332562 + 87af7f9 commit eb0b688

File tree

2,217 files changed

+239563
-104
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,217 files changed

+239563
-104
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ before_install:
3333
- travis_retry sudo apt-get -y install nodejs
3434
- travis_retry sudo apt-get -y install npm
3535
# Install BIDS-Validator
36-
- sudo npm install -g bids-validator
36+
- sudo npm install -g bids-validator@1.5.4
3737

3838
install:
3939
# make octave file the JSONio submodule
@@ -56,4 +56,7 @@ jobs:
5656
before_script:
5757
- npm install `cat npm-requirements.txt`
5858
script:
59-
- remark . --frail
59+
- remark README.md --frail
60+
- remark ./notebooks/ --frail
61+
- remark ./tests/ --frail
62+
- remark ./docs/ --frail

README.md

Lines changed: 36 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1+
<!-- lint disable -->
2+
13
**Try it**
24

35
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/cpp-lln-lab/CPP_BIDS/master?filepath=notebooks%2Fbasic_usage.ipynb)
46

7+
**Cite it**
8+
9+
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4007674.svg)](https://doi.org/10.5281/zenodo.4007674)
10+
511
**Unit tests and coverage**
612

713
[![](https://img.shields.io/badge/Octave-CI-blue?logo=Octave&logoColor=white)](https://github.com/cpp-lln-lab/CPP_BIDS/actions)
@@ -17,34 +23,34 @@
1723

1824
[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors-)
1925

20-
---
26+
* * *
2127

2228
# CPP_BIDS
2329

24-
<!-- vscode-markdown-toc -->
30+
<!-- TOC -->
2531

26-
- 1. [Output format](#Outputformat)
27-
- 1.1. [Modality agnostic aspect](#Modalityagnosticaspect)
28-
- 2. [Documentation](#Documentation)
29-
- 3. [Contributing](#Contributing)
30-
- 3.1. [Guidestyle](#Guidestyle)
31-
- 3.2. [BIDS naming convention](#BIDSnamingconvention)
32-
- 3.3. [Contributors ✨](#Contributors)
32+
- [CPP_BIDS](#cpp_bids)
33+
- [Output format](#output-format)
34+
- [Modality agnostic aspect](#modality-agnostic-aspect)
35+
- [Documentation](#documentation)
36+
- [Contributing](#contributing)
37+
- [Guidestyle](#guidestyle)
38+
- [BIDS naming convention](#bids-naming-convention)
39+
- [Change log](#change-log)
40+
- [Contributors ✨](#contributors-)
3341

34-
<!-- vscode-markdown-toc-config
35-
numbering=true
36-
autoSave=true
37-
/vscode-markdown-toc-config -->
38-
<!-- /vscode-markdown-toc -->
42+
<!-- /TOC -->
43+
44+
<!-- lint enable -->
3945

4046
A set of function for matlab and octave to create
4147
[BIDS-compatible](https://bids-specification.readthedocs.io/en/stable/) folder
4248
structure and filenames for the output of behavioral, EEG, fMRI, eyetracking
4349
studies.
4450

45-
## 1. <a name='Outputformat'></a>Output format
51+
## Output format
4652

47-
### 1.1. <a name='Modalityagnosticaspect'></a>Modality agnostic aspect
53+
### Modality agnostic aspect
4854

4955
Subjects, session and run number labels will be numbers with zero padding up to
5056
3 values (e.g subject 1 will become `sub-001`).
@@ -63,31 +69,33 @@ data set BIDS compliant. See `convertSourceToRaw.m` for more details.
6369

6470
For example:
6571

66-
```
72+
```bash
6773
sub-090/ses-003/sub-090_ses-003_task-auditoryTask_run-023_events_date-202007291536.tsv
6874
```
6975

70-
## 2. <a name='Documentation'></a>Documentation
76+
## Documentation
7177

7278
- [Installation](./docs/installation.md)
7379
- [How to use it: jupyter notebooks](./notebooks)
74-
- [Functions description](./docs/functions_description.md)
80+
- [Functions description](./docs/functions-description.md)
7581

76-
## 3. <a name='Contributing'></a>Contributing
82+
## Contributing
7783

7884
Feel free to open issues to report a bug and ask for improvements.
7985

80-
### 3.1. <a name='Guidestyle'></a>Guidestyle
86+
### Guidestyle
8187

8288
- We use camelCase.
89+
8390
- We keep the McCabe complexity as reported by the
8491
[check_my_code function](https://github.com/Remi-Gau/check_my_code)
8592
below 15.
93+
8694
- We use the
8795
[MISS_HIT linter](https://florianschanda.github.io/miss_hit/style_checker.html)
8896
to automatically fix some linting issues.
8997

90-
### 3.2. <a name='BIDSnamingconvention'></a>BIDS naming convention
98+
### BIDS naming convention
9199

92100
Here are the naming templates used.
93101

@@ -137,18 +145,21 @@ future BEP format in a dedicated eyetracker folder
137145
`<matches>[_recording-<label>]_stim.tsv.gz`
138146
`<matches>[_recording-<label>]_stim.json`
139147

140-
### change log
148+
### Change log
141149

142150
<!-- 93b4c584bf22883a3c4f8b9031b70e381deef272 -->
143151

144-
### 3.3. <a name='Contributors'></a>Contributors ✨
152+
### Contributors ✨
145153

146154
Thanks goes to these wonderful people
147155
([emoji key](https://allcontributors.org/docs/en/emoji-key)):
148156

149157
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
158+
150159
<!-- prettier-ignore-start -->
160+
151161
<!-- markdownlint-disable -->
162+
152163
<table>
153164
<tr>
154165
<td align="center"><a href="https://github.com/CerenB"><img src="https://avatars1.githubusercontent.com/u/10451654?v=4" width="100px;" alt=""/><br /><sub><b>CerenB</b></sub></a><br /><a href="https://github.com/cpp-lln-lab/CPP_BIDS/commits?author=CerenB" title="Code">💻</a> <a href="#design-CerenB" title="Design">🎨</a> <a href="https://github.com/cpp-lln-lab/CPP_BIDS/commits?author=CerenB" title="Documentation">📖</a> <a href="#userTesting-CerenB" title="User Testing">📓</a> <a href="#ideas-CerenB" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/cpp-lln-lab/CPP_BIDS/issues?q=author%3ACerenB" title="Bug reports">🐛</a></td>
@@ -158,6 +169,7 @@ Thanks goes to these wonderful people
158169
</table>
159170

160171
<!-- markdownlint-enable -->
172+
161173
<!-- prettier-ignore-end -->
162174

163175
<!-- ALL-CONTRIBUTORS-LIST:END -->

docs/functions_description.md renamed to docs/functions-description.md

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
# functions description
22

3-
<!-- vscode-markdown-toc -->
3+
<!-- lint disable -->
44

5-
- 1. [userInputs](#userInputs)
6-
- 2. [createFilename](#createFilename)
7-
- 3. [saveEventsFile](#saveEventsFile)
8-
- 4. [checkCFG](#checkCFG)
9-
- 4.1. [CFG content](#CFGcontent)
10-
- 5. [createBoldJson](#createBoldJson)
5+
<!-- TOC -->
116

12-
<!-- vscode-markdown-toc-config
13-
numbering=true
14-
autoSave=true
15-
/vscode-markdown-toc-config -->
16-
<!-- /vscode-markdown-toc -->
7+
- [functions description](#functions-description)
8+
- [userInputs](#userinputs)
9+
- [createFilename](#createfilename)
10+
- [saveEventsFile](#saveeventsfile)
11+
- [checkCFG](#checkcfg)
12+
- [CFG content](#cfg-content)
13+
- [createBoldJson](#createboldjson)
1714

18-
## 1. <a name='userInputs'></a>userInputs
15+
<!-- /TOC -->
16+
17+
<!-- lint enable -->
18+
19+
## userInputs
1920

2021
Get subject, run and session number and make sure they are positive integer
2122
values.
@@ -40,7 +41,7 @@ session
4041
If you use it with `cfg.subject.askGrpSess = [1 1]`, it will ask you about both.
4142
This is the default behavior.
4243

43-
## 2. <a name='createFilename'></a>createFilename
44+
## createFilename
4445

4546
Create the BIDS compliant directories and filenames (but not the files) for the
4647
behavioral output for this subject / session / run.
@@ -56,18 +57,18 @@ For the moment the date of acquisition is appended to the filename
5657
- can work for fMRI experiment if `cfg.testingDevice` is set to `mri`,
5758
- can work for simple eyetracking data if `cfg.eyeTracker.do` is set to 1.
5859

59-
## 3. <a name='saveEventsFile'></a>saveEventsFile
60+
## saveEventsFile
6061

6162
Function to save output files for events that will be BIDS compliant.
6263

6364
If the user DOES NOT provide `onset`, `trial_type`, this events will be skipped.
6465
`duration` will be set to `n/a` if no value is provided.
6566

66-
## 4. <a name='checkCFG'></a>checkCFG
67+
## checkCFG
6768

6869
Check that we have all the fields that we need in the experiment parameters.
6970

70-
### 4.1. <a name='CFGcontent'></a>CFG content
71+
### CFG content
7172

7273
```matlab
7374
% The following can be modified by users but their effect might
@@ -133,9 +134,9 @@ cfg.fileName.datasetDescription
133134
134135
```
135136

136-
## 5. <a name='createBoldJson'></a>createBoldJson
137+
## createBoldJson
137138

138-
```
139+
```bash
139140
createBoldJson(cfg)
140141
```
141142

@@ -148,7 +149,7 @@ complete than the info you could from DICOM conversion.
148149
If you put the following line at the end of your experiment script, it will dump
149150
the content of the `extraInfo` structure in the json file.
150151

151-
```
152+
```bash
152153
createBoldJson(cfg, extraInfo)
153154
```
154155

docs/installation.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
# Installation
22

3-
<!-- vscode-markdown-toc -->
3+
<!-- lint disable -->
44

5-
- 1. [Download with git](#Downloadwithgit)
6-
- 2. [Add as a submodule](#Addasasubmodule)
7-
- 2.1. [Example for submodule usage](#Exampleforsubmoduleusage)
8-
- 3. [Direct download](#Directdownload)
5+
<!-- TOC -->
96

10-
<!-- vscode-markdown-toc-config
11-
numbering=true
12-
autoSave=true
13-
/vscode-markdown-toc-config -->
14-
<!-- /vscode-markdown-toc -->
7+
- [Installation](#installation)
8+
- [Download with git](#download-with-git)
9+
- [Add as a submodule](#add-as-a-submodule)
10+
- [Example for submodule usage](#example-for-submodule-usage)
11+
- [Direct download](#direct-download)
1512

16-
## 1. <a name='Downloadwithgit'></a>Download with git
13+
<!-- /TOC -->
14+
15+
<!-- lint enable -->
16+
17+
## Download with git
1718

1819
```bash
1920
cd fullpath_to_directory_where_to_install
@@ -43,7 +44,7 @@ number
4344
git checkout -b version1 v0.0.1
4445
```
4546

46-
## 2. <a name='Addasasubmodule'></a>Add as a submodule
47+
## Add as a submodule
4748

4849
Add it as a submodule in the repo you are working on.
4950

@@ -69,7 +70,7 @@ git submodule update --remote --merge
6970

7071
Remember that updates to submodules need to be committed as well.
7172

72-
### 2.1. <a name='Exampleforsubmoduleusage'></a>Example for submodule usage
73+
### Example for submodule usage
7374

7475
So say you want to clone a repo that has some nested submodules, then you would
7576
type this to get the content of all the submodules at once (here with assumption
@@ -91,14 +92,13 @@ git submodule foreach --recursive 'git submodule init'
9192
git submodule foreach --recursive 'git submodule update'
9293
```
9394

94-
## 3. <a name='Directdownload'></a>Direct download
95+
## Direct download
9596

9697
Download the code. Unzip. And add to the matlab path.
9798

98-
Pick a specific version:
99-
100-
https://github.com/cpp-lln-lab/CPP_BIDS/releases
101-
102-
Or take the latest commit (NOT RECOMMENDED):
99+
Pick a specific version from
100+
[HERE](https://github.com/cpp-lln-lab/CPP_BIDS/releases)
103101

104-
https://github.com/cpp-lln-lab/CPP_BIDS/archive/master.zip
102+
Or take the
103+
[latest commit](https://github.com/cpp-lln-lab/CPP_BIDS/archive/master.zip) (NOT
104+
RECOMMENDED).

node_modules/.bin/atob

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/esparse

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/esvalidate

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/js-yaml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/json5

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/rc

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)