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
57** Unit tests and coverage**
68
79[ ![ ] ( 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 )
911
1012[ ![ codecov] ( https://codecov.io/gh/cpp-lln-lab/CPP_BIDS/branch/master/graph/badge.svg )] ( https://codecov.io/gh/cpp-lln-lab/CPP_BIDS )
1113
1517
1618** Contributors**
1719
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+ * * *
1923
20- ---
21-
2224# CPP_BIDS
2325
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 -->
3239
33- <!-- vscode-markdown-toc-config
34- numbering=true
35- autoSave=true
36- /vscode-markdown-toc-config -->
37- <!-- /vscode-markdown-toc -->
40+ <!-- lint enable -->
3841
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.
4046
41- ## 1. < a name = ' Outputformat ' ></ a > Output format
47+ ## Output format
4248
43- ### 1.1. < a name = ' Modalityagnosticaspect ' ></ a > Modality agnostic aspect
49+ ### Modality agnostic aspect
4450
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 ` ).
4653
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 ` ).
4856
4957Task labels will be printed in camelCase in the filenames.
5058
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.
5265
5366For example:
5467
55- ```
68+ ``` bash
5669sub-090/ses-003/sub-090_ses-003_task-auditoryTask_run-023_events_date-202007291536.tsv
5770```
5871
59- ## 2. < a name = ' Documentation ' ></ a > Documentation
72+ ## Documentation
6073
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 )
6477
65- ## 3. < a name = ' Contributing ' ></ a > Contributing
78+ ## Contributing
6679
6780Feel free to open issues to report a bug and ask for improvements.
6881
69- ### 3.1. < a name = ' Guidestyle ' ></ a > Guidestyle
82+ ### Guidestyle
7083
7184- 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.
7485
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
7695
7796Here are the naming templates used.
7897
@@ -104,16 +123,13 @@ The format used by the MATLAB toolbox EEGLAB (Each recording consisting of a .se
104123
105124Biosemi data format (Each recording consisting of a .bdf file) -->
106125
107-
108-
109126- MEG
110127
111128???
112129
113130- Eyetracker
114131
115- current format
116- ` <matches>_recording-eyetracking_physio.tsv.gz `
132+ current format ` <matches>_recording-eyetracking_physio.tsv.gz `
117133
118134future BEP format in a dedicated eyetracker folder
119135` 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
125141` <matches>[_recording-<label>]_stim.tsv.gz `
126142` <matches>[_recording-<label>]_stim.json `
127143
128- ### change log
144+ ### Change log
129145
130146 <!-- 93b4c584bf22883a3c4f8b9031b70e381deef272 -->
131147
132- ### 3.3. < a name = ' Contributors ' ></ a > Contributors ✨
148+ ### Contributors ✨
133149
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 ) ):
135152
136153<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
154+
137155<!-- prettier-ignore-start -->
156+
138157<!-- markdownlint-disable -->
158+
139159<table >
140160 <tr >
141161 <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
145165</table >
146166
147167<!-- markdownlint-enable -->
168+
148169<!-- prettier-ignore-end -->
170+
149171<!-- ALL-CONTRIBUTORS-LIST:END -->
150172
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