Skip to content

Commit

Permalink
Merge branch 'master' of github.com:bids-standard/bids-specification …
Browse files Browse the repository at this point in the history
…into enh/derivatives
  • Loading branch information
Chris Gorgolewski committed Apr 14, 2019
2 parents 6fac7ec + c4a7358 commit e43e566
Show file tree
Hide file tree
Showing 7 changed files with 89 additions and 102 deletions.
2 changes: 2 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@
/src/05-derivatives/03-structural-derivatives.md @edickie @ahoopes
/src/05-derivatives/04-functional-derivatives.md @effigies
/src/05-derivatives/05-diffusion-derivatives.md @francopestilli @oesteban
/src/04-modality-specific-files/03-electroencephalography.md @sappelhoff @ezemikulan
/src/04-modality-specific-files/04-intracranial-electroencephalography.md @ezemikulan
33 changes: 17 additions & 16 deletions src/04-modality-specific-files/02-magnetoencephalography.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ For more information on typical coordinate systems for MEG-MRI coregistration:
or:
[http://neuroimage.usc.edu/brainstorm/CoordinateSystems](http://neuroimage.usc.edu/brainstorm/CoordinateSystems)

### Landmark photos (`*_photo.jpg`)
## Landmark photos (`*_photo.jpg`)

Photos of the anatomical landmarks and/or head localization coils
(`*_photo.jpg`)
Expand All @@ -378,7 +378,7 @@ actual anatomical nasion: `sub-0001_ses-001_acq-NAS_photo.jpg`

![placement of NAS fiducial](images/sub-0001_ses-001_acq-NAS_photo.jpg "placement of NAS fiducial")

### 3-D head point /electrode locations
## Head shape and electrode description (`*_headshape.<ext>`)

Template:

Expand All @@ -391,12 +391,12 @@ sub-<label>/

This file is RECOMMENDED.

The 3-D locations of head points and/or EEG electrode locations can be digitized
and stored in separate files. The `*_acq-<label>` can be used when more than one
type of digitization in done for a session, for example when the head points are
in a separate file from the EEG locations. These files are stored in the
specific format of the 3-D digitizer’s manufacturer (see
[Appendix VI](../99-appendices/06-meg-file-formats.md)).
The 3-D locations of points that describe the head shape and/or EEG
electrode locations can be digitized and stored in separate files. The
`*_acq-<label>` can be used when more than one type of digitization in done for
a session, for example when the head points are in a separate file from the EEG
locations. These files are stored in the specific format of the 3-D digitizer’s
manufacturer (see [Appendix VI](../99-appendices/06-meg-file-formats.md)).

Example:

Expand All @@ -411,15 +411,16 @@ Note that the `*_headshape` file(s) is shared by all the runs and tasks in a
session. If the subject needs to be taken out of the scanner and the head-shape
has to be updated, then for MEG it could be considered to be a new session.

### Empty-room files (`sub-emptyroom`)
## Empty-room MEG recordings

Empty-room MEG files capture the environment and system noise. Their collection
is RECOMMENDED, before/during/after each session. This data is stored inside a
subject folder named `sub-emptyroom`. The `session label` SHOULD be that of the
date of the empty-room recording (e.g. `ses-YYYYMMDD`). The `scans.tsv` file
containing the date/time of the acquisition SHOULD also be included. Hence,
users will be able to retrieve the empty-room recording that best matches a
particular session with a participant, based on date/time of recording.
Empty-room MEG recordings capture the environment and system noise. Their
collection is RECOMMENDED, before/during/after each session. This data is stored
inside a subject folder named `sub-emptyroom`. The `session label` SHOULD be
that of the date of the empty-room recording (e.g. `ses-YYYYMMDD`). The
`scans.tsv` file containing the date/time of the acquisition SHOULD also be
included. Hence, users will be able to retrieve the empty-room recording that
best matches a particular session with a participant, based on date/time of
recording.

Example:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ stored in one of the following formats:

- [European data format](https://www.edfplus.info/) (`.edf`)

- [BrainVision data format](https://www.brainproducts.com/productdetails.php?id=21&tab=5)
- [BrainVision Core Data Format](https://www.brainproducts.com/productdetails.php?id=21&tab=5)
(`.vhdr`, `.vmrk`, `.eeg`) by Brain Products GmbH

- The format used by the MATLAB toolbox [EEGLAB](https://sccn.ucsd.edu/eeglab)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ stored in one of the following formats:

- [European Data Format](https://www.edfplus.info/) (`.edf`)

- [BrainVision data format](https://www.brainproducts.com/productdetails.php?id=21&tab=5)
- [BrainVision Core Data Format](https://www.brainproducts.com/productdetails.php?id=21&tab=5)
(`.vhdr`, `.eeg`, `.vmrk`) by Brain Products GmbH

- The format used by the MATLAB toolbox [EEGLAB](https://sccn.ucsd.edu/eeglab)
Expand Down Expand Up @@ -231,7 +231,7 @@ MUST be present:

| Column name | Definition |
| :----------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| name | REQUIRED. Label of the channel, only contains letters and numbers. The label must correspond to \_electrodes.tsv name and all ieeg type channels are required to have a position. The reference channel name MUST be provided in the reference column. |
| name | REQUIRED. Label of the channel. The label must correspond to \_electrodes.tsv name and all ieeg type channels are required to have a position. The reference channel name MAY be provided in the reference column. |
| type | REQUIRED. Type of channel, see below for adequate keywords in this field. |
| units | REQUIRED. Physical unit of the value represented in this channel, e.g., V for Volt, specified according to the [SI unit symbol](https://en.wikipedia.org/wiki/International_System_of_Units#Base_units) and possibly prefix symbol (e.g., mV, μV). For guidelines for Units and Prefixes see [Appendix V](../99-appendices/05-units.md). |
| low_cutoff | REQUIRED. Frequencies used for the low pass filter applied to the channel in Hz. If no low pass filter was applied, use `n/a`. Note that anti-alias is a low pass filter, specify its frequencies here if applicable. |
Expand Down Expand Up @@ -262,34 +262,34 @@ TR1 TRIG n/a n/a n/a good n/a
Restricted keyword list for field type in alphabetic order (shared with the MEG
and EEG modality; however, only types that are common in iEEG data are listed here):

| Keyword | Description |
| :------- | :---------------------------------------------------------------- |
| EEG | Electrode channel from electroencephalogram |
| ECOG | Electrode channel from electrocorticogram (intracranial) |
| SEEG | Electrode channel from stereo-electroencephalogram (intracranial) |
| DBS | Electrode channel from deep brain stimulation (intracranial) |
| VEOG | Vertical EOG (electrooculogram) |
| HEOG | Horizontal EOG |
| EOG | Generic EOG channel if HEOG or VEOG information not available |
| ECG | ElectroCardioGram (heart) |
| EMG | ElectroMyoGram (muscle) |
| TRIG | System Triggers |
| AUDIO | Audio signal |
| PD | Photodiode |
| EYEGAZE | Eye Tracker gaze |
| PUPIL | Eye Tracker pupil diameter |
| MISC | Miscellaneous |
| SYSCLOCK | System time showing elapsed time since trial started |
| ADC | Analog to Digital input |
| DAC | Digital to Analog output |
| REF | Reference channel |
| OTHER | Any other type of channel |
| Keyword | Description |
| :------- | :--------------------------------------------------------------------- |
| EEG | Electrode channel from electroencephalogram |
| ECOG | Electrode channel from electrocorticogram (intracranial) |
| SEEG | Electrode channel from stereo-electroencephalogram (intracranial) |
| DBS | Electrode channel from deep brain stimulation electrode (intracranial) |
| VEOG | Vertical EOG (electrooculogram) |
| HEOG | Horizontal EOG |
| EOG | Generic EOG channel if HEOG or VEOG information not available |
| ECG | ElectroCardioGram (heart) |
| EMG | ElectroMyoGram (muscle) |
| TRIG | System Triggers |
| AUDIO | Audio signal |
| PD | Photodiode |
| EYEGAZE | Eye Tracker gaze |
| PUPIL | Eye Tracker pupil diameter |
| MISC | Miscellaneous |
| SYSCLOCK | System time showing elapsed time since trial started |
| ADC | Analog to Digital input |
| DAC | Digital to Analog output |
| REF | Reference channel |
| OTHER | Any other type of channel |

The free text field for the channel description can for example be specified as
intracranial, stimulus, response, vertical EOG, horizontal EOG, skin
conductance, eyetracker, etc.

## Electrode description (`*[_space-<label>]_electrodes.tsv`)
## Electrode description (`*_electrodes.tsv`)

Template:

Expand All @@ -303,12 +303,13 @@ sub-<label>/
File that gives the location, size and other properties of iEEG electrodes. Note
that coordinates are expected in cartesian coordinates according to the
`iEEGCoordinateSystem` and `iEEGCoordinateSystemUnits` fields in
`*_coordsystem.json`. **If an `*_electrodes.tsv` file is specified, a
`*_coordsystem.json` file MUST be specified as well**.
`*_coordsystem.json`. If an `*_electrodes.tsv` file is specified, a
`*_coordsystem.json` file MUST be specified as well.

The optional space label (`*[_space-<label>]_electrodes.tsv`) can be used to
indicate the way in which electrode positions are interpreted. Potential labels
need to be taken from the list in [Appendix VIII](../99-appendices/08-coordinate-systems.md)
indicate the way in which electrode positions are interpreted. The space label
needs to be taken from the list in
[Appendix VIII](../99-appendices/08-coordinate-systems.md)

For examples:

Expand Down Expand Up @@ -351,11 +352,11 @@ SHOULD be present:

MAY be present:

| Column name | Definition |
| :---------- | :------------------------------------------------------------------------------------------------------------------------------------------------ |
| type | OPTIONAL. Optional type of the electrode, e.g., cup, ring, clip-on, wire, needle, ... |
| impedance | OPTIONAL. Impedance of the electrode in kOhm. |
| dimension | OPTIONAL. Size of the grid/strip/probe that this electrode belongs to. Must be of form `[AxB]` with the smallest dimension first (e.g., `[1x8]`). |
| Column name | Definition |
| :---------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------- |
| type | OPTIONAL. Optional type of the electrode, e.g., cup, ring, clip-on, wire, needle, ... |
| impedance | OPTIONAL. Impedance of the electrode in kOhm. |
| dimension | OPTIONAL. Size of the group (grid/strip/probe) that this electrode belongs to. Must be of form `[AxB]` with the smallest dimension first (e.g., `[1x8]`). |

Example:

Expand All @@ -366,7 +367,7 @@ LT02 23 -40 -19 2.3 Integra
H01 27 -42 -21 5 AdTech
```

## Coordinate System JSON (`*[_space-<label>]_coordsystem.json`)
## Coordinate System JSON (`*_coordsystem.json`)

Template:

Expand Down Expand Up @@ -483,7 +484,7 @@ EEG technician and provided to the epileptologists (e.g., see Burneo JG et al.
2014 [https://doi.org/10.1016/j.clineuro.2014.03.020](https://doi.org/10.1016/j.clineuro.2014.03.020)).

```Text
sub-0002_ses-001_acq-render_photo.jpg (for volume rendering)
sub-0002_ses-01_acq-render_photo.jpg
```

![volume rendering of the cortical surface](images/ieeg_electrodes2.png "volume rendering of the cortical surface")
Expand All @@ -496,7 +497,7 @@ onset, duration), the `_events.tsv` file can contain the electrical stimulation
parameters in addition to other events. Note that these can be intermixed with
other task events. Electrical stimulation parameters can be described in columns
called `electrical_stimulation_<label>`, with labels chosen by the researcher and
optionally defined in more detail in an accompanying `_electrodes.json` file (as
optionally defined in more detail in an accompanying `_events.json` file (as
per the main BIDS spec). Functions for complex stimulation patterns can, similar
as when a video is presented, be stored in a folder in the `/stimuli/` folder.
For example: `/stimuli/electrical_stimulation_functions/biphasic.tsv`
Expand Down
Loading

0 comments on commit e43e566

Please sign in to comment.