Skip to content

Commit

Permalink
[FIX] Clarify that electrodes.tsv is optional for MEG, for use with s…
Browse files Browse the repository at this point in the history
…imultaneous (i)EEG (#1555)

* [FIX] Clarify that electrodes.tsv is permissible for simultaneous MEG/EEG

* [SCHEMA] Permit electrodes.tsv for MEG

* [SCHEMA] electrodes.tsv is RECOMMENDED if EEGChannelCount > 0

* Address review
  • Loading branch information
effigies authored Aug 24, 2023
1 parent a98160a commit 02d97b0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/modality-specific-files/magnetoencephalography.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,20 @@ which some installations impose to be run on raw data prior to analysis.
Such processing steps are needed for example because of active shielding software corrections
that have to be performed to before the MEG data can actually be exploited.

### Recording EEG simultaneously with MEG
### Recording (i)EEG simultaneously with MEG

Note that if EEG is recorded with a separate amplifier,
Note that if (i)EEG is recorded with a separate amplifier,
it SHOULD be stored separately under a new `/eeg` data type
(see [the EEG specification](electroencephalography.md)).
(see the [EEG](electroencephalography.md) and
[iEEG](intracranial-electroencephalography.md) specifications).

If however EEG is recorded simultaneously **with the same MEG system**,
If however (i)EEG is recorded simultaneously **with the same MEG system**,
it MAY be stored under the `/meg` data type.
In that case, it SHOULD have the same sampling frequency as MEG (see `SamplingFrequency` field below).
Furthermore, the EEG sensor coordinates SHOULD be specified using MEG-specific coordinate
systems (see [coordinates section](#coordinate-system-json-_coordsystemjson) below and
Furthermore, (i)EEG sensor coordinates MAY be recorded in an
[`electrodes.tsv`](electroencephalography.md#electrodes-description-_electrodestsv)
file using MEG-specific coordinate systems
(see [Coordinate System JSON](#coordinate-system-json-_coordsystemjson) below and
the [Coordinate Systems Appendix](../appendices/coordinate-systems.md)).

### Sidecar JSON (`*_meg.json`)
Expand Down
9 changes: 9 additions & 0 deletions src/schema/rules/files/raw/channels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@ electrodes:
acquisition: optional
space: optional

# MEG has an additional entity available
electrodes__meg:
$ref: rules.files.raw.channels.electrodes
datatypes:
- meg
entities:
$ref: rules.files.raw.channels.electrodes.entities
processing: optional

optodes:
suffixes:
- optodes
Expand Down

0 comments on commit 02d97b0

Please sign in to comment.