Skip to content

Commit e7c9045

Browse files
committed
add some comments
1 parent 076c2e1 commit e7c9045

File tree

2 files changed

+71
-26
lines changed

2 files changed

+71
-26
lines changed

README.md

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -101,23 +101,31 @@ Here are the naming templates used.
101101

102102
- Behavior
103103

104-
`sub-<label>[_ses-<label>]_task-<label>[_acq-<label>][_run-<index>]_events.tsv`
105-
`sub-<label>[_ses-<label>]_task-<label>[_acq-<label>][_run-<index>]_events.json`
106-
`sub-<label>[_ses-<label>]_task-<label>[_acq-<label>][_run-<index>]_beh.tsv`
107-
`sub-<label>[_ses-<label>]_task-<label>[_acq-<label>][_run-<index>]_beh.json`
104+
```
105+
sub-<label>[_ses-<label>]_task-<label>[_acq-<label>][_run-<index>]_events.tsv
106+
sub-<label>[_ses-<label>]_task-<label>[_acq-<label>][_run-<index>]_events.json
107+
sub-<label>[_ses-<label>]_task-<label>[_acq-<label>][_run-<index>]_beh.tsv
108+
sub-<label>[_ses-<label>]_task-<label>[_acq-<label>][_run-<index>]_beh.json
109+
```
108110

109111
- BOLD
110112

111-
`sub-<label>[_ses-<label>]_task-<label>[_acq-<label>][_ce-<label>][_dir-<label>][_rec-<label>][_run-<index>][_echo-<index>]_<contrast_label>.nii[.gz]`
113+
```
114+
sub-<label>[_ses-<label>]_task-<label>[_acq-<label>][_ce-<label>][_dir-<label>][_rec-<label>][_run-<index>][_echo-<index>]_<contrast_label>.nii[.gz]
115+
```
112116

113117
- iEEG
114118

115-
`sub-<label>[_ses-<label>]_task-<task_label>[_run-<index>]_ieeg.json`
119+
```
120+
sub-<label>[_ses-<label>]_task-<task_label>[_run-<index>]_ieeg.json
121+
```
116122

117123
- EEG
118124

119-
`sub-<label>[_ses-<label>]_task-<label>[_run-<index>]_eeg.<manufacturer_specific_extension>`
120-
`sub-<label>[_ses-<label>]_task-<label>[_run-<index>]_eeg.json`
125+
```
126+
sub-<label>[_ses-<label>]_task-<label>[_run-<index>]_eeg.<manufacturer_specific_extension>
127+
sub-<label>[_ses-<label>]_task-<label>[_run-<index>]_eeg.json
128+
```
121129

122130
<!-- European data format (Each recording consisting of a .edf file)
123131
@@ -136,14 +144,19 @@ Biosemi data format (Each recording consisting of a .bdf file) -->
136144
current format `<matches>_recording-eyetracking_physio.tsv.gz`
137145

138146
future BEP format in a dedicated eyetracker folder
139-
`sub-<participant_label>[_ses-<label>][_acq-<label>]_task-<task_label>_eyetrack.<manufacturer_specific_extension>`
147+
148+
```
149+
sub-<participant_label>[_ses-<label>][_acq-<label>]_task-<task_label>_eyetrack.<manufacturer_specific_extension>
150+
```
140151

141152
- Stim and physio
142153

143-
`<matches>[_recording-<label>]_physio.tsv.gz`
144-
`<matches>[_recording-<label>]_physio.json`
145-
`<matches>[_recording-<label>]_stim.tsv.gz`
146-
`<matches>[_recording-<label>]_stim.json`
154+
```
155+
<matches>[_recording-<label>]_physio.tsv.gz
156+
<matches>[_recording-<label>]_physio.json
157+
<matches>[_recording-<label>]_stim.tsv.gz
158+
<matches>[_recording-<label>]_stim.json
159+
```
147160

148161
### Change log
149162

notebooks/using_2_logfiles.ipynb

Lines changed: 45 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# saving two `_events.tsv` for the same run"
7+
"# saving two `_events.tsv` for the same run\n",
8+
"\n",
9+
"This won't create BIDS valid output but this might help you organize some of your output in different TSV files.\n",
10+
"\n"
811
]
912
},
1013
{
1114
"cell_type": "code",
12-
"execution_count": 32,
15+
"execution_count": 1,
1316
"metadata": {},
1417
"outputs": [],
1518
"source": [
@@ -23,7 +26,7 @@
2326
"cfg.subject.subjectNb = 1;\n",
2427
"cfg.subject.runNb = 1;\n",
2528
"\n",
26-
"cfg.testingDevice = 'mri';\n",
29+
"cfg.testingDevice = 'pc';\n",
2730
"\n",
2831
"cfg.verbose = true;"
2932
]
@@ -37,7 +40,7 @@
3740
},
3841
{
3942
"cell_type": "code",
40-
"execution_count": 33,
43+
"execution_count": 2,
4144
"metadata": {
4245
"scrolled": true
4346
},
@@ -48,10 +51,10 @@
4851
"text": [
4952
"\r\n",
5053
"Data will be saved in this directory:\r\n",
51-
"\t/home/remi/github/CPP_BIDS/notebooks/output/source/sub-001/ses-001/func\r\n",
54+
"\t/home/remi/github/CPP_BIDS/notebooks/output/source/sub-001/ses-001/beh\r\n",
5255
"\r\n",
5356
"Data will be saved in this file:\r\n",
54-
"\tsub-001_ses-001_task-testTask_run-001_events_date-202010191333.tsv\r\n"
57+
"\tsub-001_ses-001_task-testTask_run-001_events_date-202010191603.tsv\r\n"
5558
]
5659
}
5760
],
@@ -62,7 +65,7 @@
6265
},
6366
{
6467
"cell_type": "code",
65-
"execution_count": 34,
68+
"execution_count": 3,
6669
"metadata": {},
6770
"outputs": [
6871
{
@@ -86,7 +89,7 @@
8689
},
8790
{
8891
"cell_type": "code",
89-
"execution_count": 35,
92+
"execution_count": 4,
9093
"metadata": {},
9194
"outputs": [
9295
{
@@ -95,10 +98,10 @@
9598
"text": [
9699
"\r\n",
97100
"Data will be saved in this directory:\r\n",
98-
"\t/home/remi/github/CPP_BIDS/notebooks/output/source/sub-001/ses-001/func\r\n",
101+
"\t/home/remi/github/CPP_BIDS/notebooks/output/source/sub-001/ses-001/beh\r\n",
99102
"\r\n",
100103
"Data will be saved in this file:\r\n",
101-
"\tsub-001_ses-001_task-testTask_acq-extraInfo_run-001_events_date-202010191333.tsv\r\n"
104+
"\tsub-001_ses-001_task-testTask_acq-extraInfo_run-001_events_date-202010191603.tsv\r\n"
102105
]
103106
}
104107
],
@@ -113,7 +116,7 @@
113116
},
114117
{
115118
"cell_type": "code",
116-
"execution_count": 36,
119+
"execution_count": 5,
117120
"metadata": {},
118121
"outputs": [
119122
{
@@ -138,8 +141,10 @@
138141
},
139142
{
140143
"cell_type": "code",
141-
"execution_count": 37,
142-
"metadata": {},
144+
"execution_count": 6,
145+
"metadata": {
146+
"scrolled": true
147+
},
143148
"outputs": [
144149
{
145150
"name": "stdout",
@@ -188,6 +193,33 @@
188193
"\n",
189194
"logFile_2 = saveEventsFile('save', cfg, logFile_2);"
190195
]
196+
},
197+
{
198+
"cell_type": "code",
199+
"execution_count": 7,
200+
"metadata": {},
201+
"outputs": [
202+
{
203+
"name": "stdout",
204+
"output_type": "stream",
205+
"text": [
206+
"\n",
207+
"Data were saved in this file:\n",
208+
"\n",
209+
"/home/remi/github/CPP_BIDS/notebooks/output/source/sub-001/ses-001/beh/sub-001_ses-001_task-testTask_run-001_events_date-202010191603.tsv\n",
210+
"\n",
211+
"\n",
212+
"Data were saved in this file:\n",
213+
"\n",
214+
"/home/remi/github/CPP_BIDS/notebooks/output/source/sub-001/ses-001/beh/sub-001_ses-001_task-testTask_acq-extraInfo_run-001_events_date-202010191603.tsv\n",
215+
"\n"
216+
]
217+
}
218+
],
219+
"source": [
220+
"saveEventsFile('close', cfg, logFile);\n",
221+
"saveEventsFile('close', cfg, logFile_2);"
222+
]
191223
}
192224
],
193225
"metadata": {

0 commit comments

Comments
 (0)