-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ENH] Render code blocks with language "tsv" as tables #1794
Changes from all commits
c813a92
cb42cf1
61d10bb
350be4f
ebb56de
a0fd643
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ and the exact volume_type series should be specified in the `*_aslcontext.tsv`. | |
|
||
Example of `*_aslcontext.tsv`: | ||
|
||
```Text | ||
```tsv | ||
volume_type | ||
control | ||
label | ||
Comment on lines
+29
to
32
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
@@ -44,7 +44,7 @@ In this case, the `deltam` should be included in the `*_asl.nii[.gz]` and specif | |
|
||
Example of `*_aslcontext.tsv`: | ||
|
||
```Text | ||
```tsv | ||
volume_type | ||
deltam | ||
m0scan | ||
Comment on lines
+47
to
50
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
@@ -58,7 +58,7 @@ the `cbf` should be included in the `*_asl.nii[.gz]` and specified in the `*_asl | |
|
||
Example of `*_aslcontext.tsv`: | ||
|
||
```Text | ||
```tsv | ||
volume_type | ||
cbf | ||
m0scan | ||
Comment on lines
+61
to
64
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,10 +44,10 @@ meanings in associated JSON sidecar files (`events.json`). | |
(`trial_type`, `response_time`, and `stim_file`) in addition to | ||
the required `onset` and `duration` columns. | ||
|
||
```Text | ||
onset duration trial_type response_time stim_file | ||
1.2 0.6 go 1.435 images/red_square.jpg | ||
5.6 0.6 stop n/a images/blue_square.jpg | ||
```tsv | ||
onset duration trial_type response_time stim_file | ||
1.2 0.6 go 1.435 images/red_square.jpg | ||
5.6 0.6 stop n/a images/blue_square.jpg | ||
``` | ||
Comment on lines
+47
to
51
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
The `trial_type` column in the above example contains a limited number of distinct | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -328,11 +328,12 @@ A guide for using macros can be found at | |
|
||
Contents of the `descriptions.tsv` file: | ||
|
||
| desc_id | description | | ||
| ------- | ----------------------------------------------------------------------------------------------- | | ||
| Filt | low-pass filtered at 30Hz | | ||
| FiltDs | low-pass filtered at 30Hz, downsampled to 250Hz | | ||
| preproc | low-pass filtered at 30Hz, downsampled to 250Hz, and rereferenced to a common average reference | | ||
```tsv | ||
desc_id description | ||
Filt low-pass filtered at 30Hz | ||
FiltDs low-pass filtered at 30Hz, downsampled to 250Hz | ||
preproc low-pass filtered at 30Hz, downsampled to 250Hz, and rereferenced to a common average reference | ||
``` | ||
Comment on lines
+331
to
+336
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
<!-- Link Definitions --> | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,7 +65,7 @@ A guide for using macros can be found at | |
|
||
`sub-control01_sessions.tsv` content: | ||
|
||
```Text | ||
```tsv | ||
session_id acq_time systolic_blood_pressure | ||
ses-predrug 2009-06-15T13:45:30 120 | ||
ses-postdrug 2009-06-16T13:45:30 100 | ||
Comment on lines
+68
to
71
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -246,11 +246,11 @@ available"). | |
|
||
`participants.tsv` example: | ||
|
||
```Text | ||
participant_id age sex handedness group | ||
sub-01 34 M right read | ||
sub-02 12 F right write | ||
sub-03 33 F n/a read | ||
```tsv | ||
participant_id age sex handedness group | ||
sub-01 34 M right read | ||
sub-02 12 F right write | ||
sub-03 33 F n/a read | ||
``` | ||
Comment on lines
+249
to
254
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
It is RECOMMENDED to accompany each `participants.tsv` file with a sidecar | ||
|
@@ -320,13 +320,13 @@ and a guide for using macros can be found at | |
|
||
`samples.tsv` example: | ||
|
||
```Text | ||
sample_id participant_id sample_type derived_from | ||
sample-01 sub-01 tissue n/a | ||
sample-02 sub-01 tissue sample-01 | ||
sample-03 sub-01 tissue sample-01 | ||
sample-04 sub-02 tissue n/a | ||
sample-05 sub-02 tissue n/a | ||
```tsv | ||
sample_id participant_id sample_type derived_from | ||
sample-01 sub-01 tissue n/a | ||
sample-02 sub-01 tissue sample-01 | ||
sample-03 sub-01 tissue sample-01 | ||
sample-04 sub-02 tissue n/a | ||
sample-05 sub-02 tissue n/a | ||
``` | ||
Comment on lines
+323
to
330
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
It is RECOMMENDED to accompany each `samples.tsv` file with a sidecar | ||
|
@@ -486,7 +486,7 @@ All such included additional fields SHOULD be documented in an accompanying | |
|
||
Example `_scans.tsv`: | ||
|
||
```Text | ||
```tsv | ||
filename acq_time | ||
func/sub-control01_task-nback_bold.nii.gz 1877-06-15T13:45:30 | ||
func/sub-control01_task-motor_bold.nii.gz 1877-06-15T13:55:33 | ||
Comment on lines
+489
to
492
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
@@ -522,7 +522,7 @@ and a guide for using macros can be found at | |
|
||
`_sessions.tsv` example: | ||
|
||
```Text | ||
```tsv | ||
session_id acq_time systolic_blood_pressure | ||
ses-predrug 2009-06-15T13:45:30 120 | ||
ses-postdrug 2009-06-16T13:45:30 100 | ||
Comment on lines
+525
to
528
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,7 +78,7 @@ A guide for using macros can be found at | |
|
||
## Example `_beh.tsv` | ||
|
||
```Text | ||
```tsv | ||
trial response response_time stim_file | ||
congruent red 1.435 images/word-red_color-red.jpg | ||
incongruent red 1.739 images/word-red_color-blue.jpg | ||
Comment on lines
+81
to
84
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -274,12 +274,12 @@ Examples of free-form text for field `description` | |
|
||
See also the corresponding [`electrodes.tsv` example](#example-_electrodestsv). | ||
|
||
```Text | ||
name type units description reference status status_description | ||
VEOG VEOG uV left eye VEOG-, VEOG+ good n/a | ||
FDI EMG uV left first dorsal interosseous FDI-, FDI+ good n/a | ||
Cz EEG uV n/a REF bad high frequency noise | ||
UADC001 MISC n/a envelope of audio signal n/a good n/a | ||
```tsv | ||
name type units description reference status status_description | ||
VEOG VEOG uV left eye VEOG-, VEOG+ good n/a | ||
FDI EMG uV left first dorsal interosseous FDI-, FDI+ good n/a | ||
Cz EEG uV n/a REF bad high frequency noise | ||
UADC001 MISC n/a envelope of audio signal n/a good n/a | ||
``` | ||
Comment on lines
+277
to
283
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
## Electrodes description (`*_electrodes.tsv`) | ||
|
@@ -318,15 +318,15 @@ If electrodes are repositioned, it is RECOMMENDED to use multiple sessions to in | |
|
||
See also the corresponding [`channels.tsv` example](#example-_channelstsv). | ||
|
||
```Text | ||
name x y z type material | ||
VEOG+ n/a n/a n/a cup Ag/AgCl | ||
VEOG- n/a n/a n/a cup Ag/AgCl | ||
FDI+ n/a n/a n/a cup Ag/AgCl | ||
FDI- n/a n/a n/a cup Ag/AgCl | ||
GND -0.0707 0.0000 -0.0707 clip-on Ag/AgCl | ||
Cz 0.0000 0.0714 0.0699 cup Ag/AgCl | ||
REF -0.0742 -0.0200 -0.0100 cup Ag/AgCl | ||
```tsv | ||
name x y z type material | ||
VEOG+ n/a n/a n/a cup Ag/AgCl | ||
VEOG- n/a n/a n/a cup Ag/AgCl | ||
FDI+ n/a n/a n/a cup Ag/AgCl | ||
FDI- n/a n/a n/a cup Ag/AgCl | ||
GND -0.0707 0.0000 -0.0707 clip-on Ag/AgCl | ||
Cz 0.0000 0.0714 0.0699 cup Ag/AgCl | ||
REF -0.0742 -0.0200 -0.0100 cup Ag/AgCl | ||
``` | ||
Comment on lines
+321
to
330
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
The [`acq-<label>`](../appendices/entities.md#acq) entity can be used to | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,7 +70,7 @@ Note that optional columns MUST be further described in an accompanying | |
|
||
`participants.tsv` example: | ||
|
||
```Text | ||
```tsv | ||
participant_id age sex group genetic_id idh_mutation | ||
sub-control01 34 M control 124587 yes | ||
sub-control02 12 F control 548936 yes | ||
Comment on lines
+73
to
76
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -276,13 +276,13 @@ Examples of free-form text for field `description`: | |
|
||
### Example `*_channels.tsv` | ||
|
||
```Text | ||
name type units low_cutoff high_cutoff status status_description | ||
LT01 ECOG uV 300 0.11 good n/a | ||
LT02 ECOG uV 300 0.11 bad broken | ||
H01 SEEG uV 300 0.11 bad line_noise | ||
ECG1 ECG uV n/a 0.11 good n/a | ||
TR1 TRIG n/a n/a n/a good n/a | ||
```tsv | ||
name type units low_cutoff high_cutoff status status_description | ||
LT01 ECOG uV 300 0.11 good n/a | ||
LT02 ECOG uV 300 0.11 bad broken | ||
H01 SEEG uV 300 0.11 bad line_noise | ||
ECG1 ECG uV n/a 0.11 good n/a | ||
TR1 TRIG n/a n/a n/a good n/a | ||
Comment on lines
+279
to
+285
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
``` | ||
|
||
## Electrode description (`*_electrodes.tsv`) | ||
|
@@ -358,11 +358,11 @@ If electrodes are repositioned, it is RECOMMENDED to use multiple sessions to in | |
|
||
### Example `*_electrodes.tsv` | ||
|
||
```Text | ||
name x y z size manufacturer | ||
LT01 19 -39 -16 2.3 Integra | ||
LT02 23 -40 -19 2.3 Integra | ||
H01 27 -42 -21 5 AdTech | ||
```tsv | ||
name x y z size manufacturer | ||
LT01 19 -39 -16 2.3 Integra | ||
LT02 23 -40 -19 2.3 Integra | ||
H01 27 -42 -21 5 AdTech | ||
``` | ||
Comment on lines
+361
to
366
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
## Coordinate System JSON (`*_coordsystem.json`) | ||
|
@@ -534,13 +534,13 @@ For example: `/stimuli/electrical_stimulation_functions/biphasic.tsv` | |
|
||
### Example `*_events.tsv` | ||
|
||
```Text | ||
onset duration trial_type electrical_stimulation_type electrical_stimulation_site electrical_stimulation_current | ||
1.2 0.001 electrical_stimulation biphasic LT01-LT02 0.005 | ||
1.3 0.001 electrical_stimulation biphasic LT01-LT02 0.005 | ||
2.2 0.001 electrical_stimulation biphasic LT02-LT03 0.005 | ||
4.2 1 electrical_stimulation complex LT02-LT03 n/a | ||
15.2 3 auditory_stimulus n/a n/a n/a | ||
```tsv | ||
onset duration trial_type electrical_stimulation_type electrical_stimulation_site electrical_stimulation_current | ||
1.2 0.001 electrical_stimulation biphasic LT01-LT02 0.005 | ||
1.3 0.001 electrical_stimulation biphasic LT01-LT02 0.005 | ||
2.2 0.001 electrical_stimulation biphasic LT02-LT03 0.005 | ||
4.2 1 electrical_stimulation complex LT02-LT03 n/a | ||
15.2 3 auditory_stimulus n/a n/a n/a | ||
``` | ||
Comment on lines
+537
to
544
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
<!-- Link Definitions --> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -311,12 +311,12 @@ Examples of free text for field `description`: | |
|
||
### Example `*_channels.tsv` | ||
|
||
```Text | ||
name type units description | ||
VEOG VEOG V vertical EOG | ||
FDI EMG V left first dorsal interosseous | ||
UDIO001 TRIG V analog trigger signal | ||
UADC001 AUDIO V envelope of audio signal presented to participant | ||
```tsv | ||
name type units description | ||
VEOG VEOG V vertical EOG | ||
FDI EMG V left first dorsal interosseous | ||
UDIO001 TRIG V analog trigger signal | ||
UADC001 AUDIO V envelope of audio signal presented to participant | ||
``` | ||
Comment on lines
+314
to
320
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
## Coordinate System JSON (`*_coordsystem.json`) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -185,21 +185,21 @@ Note that upper-case is REQUIRED: | |
|
||
### Example `*_channels.tsv` | ||
|
||
```Text | ||
name component type tracked_point units reference_frame | ||
t1_acc_x x ACCEL LeftFoot m/s^2 global | ||
t1_acc_y y ACCEL LeftFoot m/s^2 global | ||
t1_acc_z z ACCEL LeftFoot m/s^2 global | ||
t1_gyro_x x GYRO LeftFoot rad/s global | ||
t1_gyro_y y GYRO LeftFoot rad/s global | ||
t1_gyro_z z GYRO LeftFoot rad/s global | ||
```tsv | ||
name component type tracked_point units reference_frame | ||
t1_acc_x x ACCEL LeftFoot m/s^2 global | ||
t1_acc_y y ACCEL LeftFoot m/s^2 global | ||
t1_acc_z z ACCEL LeftFoot m/s^2 global | ||
t1_gyro_x x GYRO LeftFoot rad/s global | ||
t1_gyro_y y GYRO LeftFoot rad/s global | ||
t1_gyro_z z GYRO LeftFoot rad/s global | ||
… | ||
t2_acc_x x ACCEL RightWrist m/s^2 global | ||
t2_acc_y y ACCEL RightWrist m/s^2 global | ||
t2_acc_z z ACCEL RightWrist m/s^2 global | ||
t2_gyro_x x GYRO RightWrist rad/s global | ||
t2_gyro_y y GYRO RightWrist rad/s global | ||
t2_gyro_z z GYRO RightWrist rad/s global | ||
t2_acc_x x ACCEL RightWrist m/s^2 global | ||
t2_acc_y y ACCEL RightWrist m/s^2 global | ||
t2_acc_z z ACCEL RightWrist m/s^2 global | ||
t2_gyro_x x GYRO RightWrist rad/s global | ||
t2_gyro_y y GYRO RightWrist rad/s global | ||
t2_gyro_z z GYRO RightWrist rad/s global | ||
``` | ||
Comment on lines
+188
to
203
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
## Reference frame description (`*_channels.json`) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -293,13 +293,13 @@ Note that upper-case is REQUIRED. | |
|
||
### Example `*_channels.tsv` | ||
|
||
```Text | ||
Name type source detector wavelength_nominal units | ||
S1-D1 NIRSCWAMPLITUDE A1 Fz 760 V | ||
S1-D1 NIRSCWAMPLITUDE A1 Fz 850 V | ||
S1-D2 NIRSCWAMPLITUDE A1 Cz 760 V | ||
S2-D1 NIRSCWAMPLITUDE A2 Fz 760 V | ||
S3-D4 NIRSCWAMPLITUDE VisS2 VisD4 760 V | ||
```tsv | ||
Name type source detector wavelength_nominal units | ||
S1-D1 NIRSCWAMPLITUDE A1 Fz 760 V | ||
S1-D1 NIRSCWAMPLITUDE A1 Fz 850 V | ||
S1-D2 NIRSCWAMPLITUDE A1 Cz 760 V | ||
S2-D1 NIRSCWAMPLITUDE A2 Fz 760 V | ||
S3-D4 NIRSCWAMPLITUDE VisS2 VisD4 760 V | ||
``` | ||
|
||
Comment on lines
+296
to
304
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
## Optode description (`*_optodes.tsv`) | ||
|
@@ -337,14 +337,14 @@ The columns of the optodes description table stored in `*_optodes.tsv` are: | |
|
||
### Example `*_optodes.tsv` | ||
|
||
```Text | ||
name type x y z template_x template_y template_z | ||
A1 source -0.0707 0.0000 -0.0707 -0.07 0.00 0.07 | ||
Fz detector 0.0000 0.0714 0.0699 0.0 0.07 0.07 | ||
S1 source -0.2707 0.0200 -0.1707 -0.03 0.02 -0.2 | ||
D2 detector 0.0022 0.1214 0.0299 0.0 0.12 0.03 | ||
VisS2 source -0.1707 0.1200 -0.3707 -0.1 0.1 -0.4 | ||
VisD4 detector 0.0322 0.2214 0.2299 0.02 0.22 0.23 | ||
```tsv | ||
name type x y z template_x template_y template_z | ||
A1 source -0.0707 0.0000 -0.0707 -0.07 0.00 0.07 | ||
Fz detector 0.0000 0.0714 0.0699 0.0 0.07 0.07 | ||
S1 source -0.2707 0.0200 -0.1707 -0.03 0.02 -0.2 | ||
D2 detector 0.0022 0.1214 0.0299 0.0 0.12 0.03 | ||
VisS2 source -0.1707 0.1200 -0.3707 -0.1 0.1 -0.4 | ||
VisD4 detector 0.0322 0.2214 0.2299 0.02 0.22 0.23 | ||
``` | ||
Comment on lines
+340
to
348
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
## Coordinate System JSON (`*_coordsystem.json`) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,10 +94,10 @@ A guide for using macros can be found at | |
|
||
(after decompression) | ||
|
||
```Text | ||
34 110 0 | ||
44 112 0 | ||
23 100 1 | ||
```tsv | ||
34 110 0 | ||
44 112 0 | ||
23 100 1 | ||
``` | ||
Comment on lines
+97
to
101
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
Example `*_physio.json`: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.