1
+ <!-- lint disable -->
2
+
1
3
** Try it**
2
4
3
5
[ ![ Binder] ( https://mybinder.org/badge_logo.svg )] ( https://mybinder.org/v2/gh/cpp-lln-lab/CPP_BIDS/master?filepath=notebooks%2Fbasic_usage.ipynb )
4
6
5
7
** Unit tests and coverage**
6
8
7
9
[ ![ ] ( https://img.shields.io/badge/Octave-CI-blue?logo=Octave&logoColor=white )] ( https://github.com/cpp-lln-lab/CPP_BIDS/actions )
8
- ![ ] ( https://github.com/cpp-lln-lab/CPP_BIDS/workflows/CI/badge.svg )
10
+ ![ ] ( https://github.com/cpp-lln-lab/CPP_BIDS/workflows/CI/badge.svg )
9
11
10
12
[ ![ codecov] ( https://codecov.io/gh/cpp-lln-lab/CPP_BIDS/branch/master/graph/badge.svg )] ( https://codecov.io/gh/cpp-lln-lab/CPP_BIDS )
11
13
15
17
16
18
** Contributors**
17
19
18
- [ ![ All Contributors] ( https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square )] ( #contributors- )
20
+ [ ![ All Contributors] ( https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square )] ( #contributors- )
21
+
22
+ * * *
19
23
20
- ---
21
-
22
24
# CPP_BIDS
23
25
24
- <!-- vscode-markdown-toc -->
25
- * 1 . [ Output format] ( #Outputformat )
26
- * 1.1. [Modality agnostic aspect](#Modalityagnosticaspect)
27
- * 2 . [ Documentation] ( #Documentation )
28
- * 3 . [ Contributing] ( #Contributing )
29
- * 3.1. [Guidestyle](#Guidestyle)
30
- * 3.2. [BIDS naming convention](#BIDSnamingconvention)
31
- * 3.3. [Contributors ✨](#Contributors)
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- )
37
+
38
+ <!-- /TOC -->
32
39
33
- <!-- vscode-markdown-toc-config
34
- numbering=true
35
- autoSave=true
36
- /vscode-markdown-toc-config -->
37
- <!-- /vscode-markdown-toc -->
40
+ <!-- lint enable -->
38
41
39
- A set of function for matlab and octave to create [ BIDS-compatible] ( https://bids-specification.readthedocs.io/en/stable/ ) folder structure and filenames for the output of behavioral, EEG, fMRI, eyetracking studies.
42
+ A set of function for matlab and octave to create
43
+ [ BIDS-compatible] ( https://bids-specification.readthedocs.io/en/stable/ ) folder
44
+ structure and filenames for the output of behavioral, EEG, fMRI, eyetracking
45
+ studies.
40
46
41
- ## 1. < a name = ' Outputformat ' ></ a > Output format
47
+ ## Output format
42
48
43
- ### 1.1. < a name = ' Modalityagnosticaspect ' ></ a > Modality agnostic aspect
49
+ ### Modality agnostic aspect
44
50
45
- Subjects, session and run number labels will be numbers with zero padding up to 3 values (e.g subject 1 will become ` sub-001 ` ).
51
+ Subjects, session and run number labels will be numbers with zero padding up to
52
+ 3 values (e.g subject 1 will become ` sub-001 ` ).
46
53
47
- A session folder will ALWAYS be created even if not requested (default will be ` ses-001 ` ).
54
+ A session folder will ALWAYS be created even if not requested (default will be
55
+ ` ses-001 ` ).
48
56
49
57
Task labels will be printed in camelCase in the filenames.
50
58
51
- Time stamps are added directly in the filename by adding a suffix ` _date-YYYYMMDDHHMM ` which makes the file name non-BIDS compliant. This was added to prevent overwriting files in case a certain run needs to be done a second time because of a crash (Some of us are paranoid about keeping even cancelled runs during my experiments). This suffix should be removed to make the data set BIDS compliant. See ` convertSourceToRaw.m ` for more details.
59
+ Time stamps are added directly in the filename by adding a suffix
60
+ ` _date-YYYYMMDDHHMM ` which makes the file name non-BIDS compliant. This was
61
+ added to prevent overwriting files in case a certain run needs to be done a
62
+ second time because of a crash (Some of us are paranoid about keeping even
63
+ cancelled runs during my experiments). This suffix should be removed to make the
64
+ data set BIDS compliant. See ` convertSourceToRaw.m ` for more details.
52
65
53
66
For example:
54
67
55
- ```
68
+ ``` bash
56
69
sub-090/ses-003/sub-090_ses-003_task-auditoryTask_run-023_events_date-202007291536.tsv
57
70
```
58
71
59
- ## 2. < a name = ' Documentation ' ></ a > Documentation
72
+ ## Documentation
60
73
61
- - [ Installation] ( ./docs/installation.md )
62
- - [ How to use it: jupyter notebooks] ( ./notebooks )
63
- - [ Functions description] ( ./docs/functions_description .md )
74
+ - [ Installation] ( ./docs/installation.md )
75
+ - [ How to use it: jupyter notebooks] ( ./notebooks )
76
+ - [ Functions description] ( ./docs/functions-description .md )
64
77
65
- ## 3. < a name = ' Contributing ' ></ a > Contributing
78
+ ## Contributing
66
79
67
80
Feel free to open issues to report a bug and ask for improvements.
68
81
69
- ### 3.1. < a name = ' Guidestyle ' ></ a > Guidestyle
82
+ ### Guidestyle
70
83
71
84
- We use camelCase.
72
- - We keep the McCabe complexity as reported by the [ check_my_code function] ( https://github.com/Remi-Gau/check_my_code ) below 15.
73
- - We use the [ MISS_HIT linter] ( https://florianschanda.github.io/miss_hit/style_checker.html ) to automatically fix some linting issues.
74
85
75
- ### 3.2. <a name =' BIDSnamingconvention ' ></a >BIDS naming convention
86
+ - We keep the McCabe complexity as reported by the
87
+ [ check_my_code function] ( https://github.com/Remi-Gau/check_my_code )
88
+ below 15.
89
+
90
+ - We use the
91
+ [ MISS_HIT linter] ( https://florianschanda.github.io/miss_hit/style_checker.html )
92
+ to automatically fix some linting issues.
93
+
94
+ ### BIDS naming convention
76
95
77
96
Here are the naming templates used.
78
97
@@ -104,16 +123,13 @@ The format used by the MATLAB toolbox EEGLAB (Each recording consisting of a .se
104
123
105
124
Biosemi data format (Each recording consisting of a .bdf file) -->
106
125
107
-
108
-
109
126
- MEG
110
127
111
128
???
112
129
113
130
- Eyetracker
114
131
115
- current format
116
- ` <matches>_recording-eyetracking_physio.tsv.gz `
132
+ current format ` <matches>_recording-eyetracking_physio.tsv.gz `
117
133
118
134
future BEP format in a dedicated eyetracker folder
119
135
` sub-<participant_label>[_ses-<label>][_acq-<label>]_task-<task_label>_eyetrack.<manufacturer_specific_extension> `
@@ -125,17 +141,21 @@ future BEP format in a dedicated eyetracker folder
125
141
` <matches>[_recording-<label>]_stim.tsv.gz `
126
142
` <matches>[_recording-<label>]_stim.json `
127
143
128
- ### change log
144
+ ### Change log
129
145
130
146
<!-- 93b4c584bf22883a3c4f8b9031b70e381deef272 -->
131
147
132
- ### 3.3. < a name = ' Contributors ' ></ a > Contributors ✨
148
+ ### Contributors ✨
133
149
134
- Thanks goes to these wonderful people ([ emoji key] ( https://allcontributors.org/docs/en/emoji-key ) ):
150
+ Thanks goes to these wonderful people
151
+ ([ emoji key] ( https://allcontributors.org/docs/en/emoji-key ) ):
135
152
136
153
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
154
+
137
155
<!-- prettier-ignore-start -->
156
+
138
157
<!-- markdownlint-disable -->
158
+
139
159
<table >
140
160
<tr >
141
161
<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>
@@ -145,7 +165,11 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
145
165
</table >
146
166
147
167
<!-- markdownlint-enable -->
168
+
148
169
<!-- prettier-ignore-end -->
170
+
149
171
<!-- ALL-CONTRIBUTORS-LIST:END -->
150
172
151
- This project follows the [ all-contributors] ( https://github.com/all-contributors/all-contributors ) specification. Contributions of any kind welcome!
173
+ This project follows the
174
+ [ all-contributors] ( https://github.com/all-contributors/all-contributors )
175
+ specification. Contributions of any kind welcome!
0 commit comments