Skip to content

Commit 92dd809

Browse files
committed
fix markdown
1 parent 48acd6b commit 92dd809

File tree

3 files changed

+56
-47
lines changed

3 files changed

+56
-47
lines changed

README.md

Lines changed: 31 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
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)
@@ -17,34 +19,34 @@
1719

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

20-
---
22+
* * *
2123

2224
# CPP_BIDS
2325

24-
<!-- vscode-markdown-toc -->
26+
<!-- TOC -->
27+
28+
- [CPP_BIDS](#cpp_bids)
29+
- [Output format](#output-format)
30+
- [Modality agnostic aspect](#modality-agnostic-aspect)
31+
- [Documentation](#documentation)
32+
- [Contributing](#contributing)
33+
- [Guidestyle](#guidestyle)
34+
- [BIDS naming convention](#bids-naming-convention)
35+
- [Change log](#change-log)
36+
- [Contributors ✨](#contributors-)
2537

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)
38+
<!-- /TOC -->
3339

34-
<!-- vscode-markdown-toc-config
35-
numbering=true
36-
autoSave=true
37-
/vscode-markdown-toc-config -->
38-
<!-- /vscode-markdown-toc -->
40+
<!-- lint enable -->
3941

4042
A set of function for matlab and octave to create
4143
[BIDS-compatible](https://bids-specification.readthedocs.io/en/stable/) folder
4244
structure and filenames for the output of behavioral, EEG, fMRI, eyetracking
4345
studies.
4446

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

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

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

6466
For example:
6567

66-
```
68+
```bash
6769
sub-090/ses-003/sub-090_ses-003_task-auditoryTask_run-023_events_date-202007291536.tsv
6870
```
6971

70-
## 2. <a name='Documentation'></a>Documentation
72+
## Documentation
7173

7274
- [Installation](./docs/installation.md)
7375
- [How to use it: jupyter notebooks](./notebooks)
7476
- [Functions description](./docs/functions_description.md)
7577

76-
## 3. <a name='Contributing'></a>Contributing
78+
## Contributing
7779

7880
Feel free to open issues to report a bug and ask for improvements.
7981

80-
### 3.1. <a name='Guidestyle'></a>Guidestyle
82+
### Guidestyle
8183

8284
- We use camelCase.
85+
8386
- We keep the McCabe complexity as reported by the
8487
[check_my_code function](https://github.com/Remi-Gau/check_my_code)
8588
below 15.
89+
8690
- We use the
8791
[MISS_HIT linter](https://florianschanda.github.io/miss_hit/style_checker.html)
8892
to automatically fix some linting issues.
8993

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

9296
Here are the naming templates used.
9397

@@ -137,18 +141,21 @@ future BEP format in a dedicated eyetracker folder
137141
`<matches>[_recording-<label>]_stim.tsv.gz`
138142
`<matches>[_recording-<label>]_stim.json`
139143

140-
### change log
144+
### Change log
141145

142146
<!-- 93b4c584bf22883a3c4f8b9031b70e381deef272 -->
143147

144-
### 3.3. <a name='Contributors'></a>Contributors ✨
148+
### Contributors ✨
145149

146150
Thanks goes to these wonderful people
147151
([emoji key](https://allcontributors.org/docs/en/emoji-key)):
148152

149153
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
154+
150155
<!-- prettier-ignore-start -->
156+
151157
<!-- markdownlint-disable -->
158+
152159
<table>
153160
<tr>
154161
<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 +165,7 @@ Thanks goes to these wonderful people
158165
</table>
159166

160167
<!-- markdownlint-enable -->
168+
161169
<!-- prettier-ignore-end -->
162170

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

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

notebooks/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
1. Make sure that you have Octave installed.
44

5-
2. If you have Conda/Jupyter/pip installed, go to step 4. Check if Conda is
5+
1. If you have Conda/Jupyter/pip installed, go to step 4. Check if Conda is
66
installed properly by typing `conda list` into your terminal
77

8-
3. Download the
8+
1. Download the
99
[Anaconda Installer](https://www.anaconda.com/products/individual) and
1010
install it. If using miniconda, run `conda install jupyter` to download and
1111
install the Jupyter Notebook package.
1212

13-
4. Install [Octave kernel](https://pypi.org/project/octave-kernel/):
13+
1. Install [Octave kernel](https://pypi.org/project/octave-kernel/):
1414
`pip install octave_kernel`
1515

16-
5. Run `jupyter notebook` in your terminal. `Octave` should appear on the list
16+
1. Run `jupyter notebook` in your terminal. `Octave` should appear on the list
1717
for creating a new notebook.

0 commit comments

Comments
 (0)