Skip to content

Commit

Permalink
Merge pull request #1638 from sappelhoff/elec_stim_meeg
Browse files Browse the repository at this point in the history
[ENH] add `ElectricalStimulation` and `*Parameters` metadata to MEEG jsons
  • Loading branch information
sappelhoff authored Nov 2, 2023
2 parents 0fc6c58 + 4ddf09f commit ce1e2bc
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/modality-specific-files/electroencephalography.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,18 @@ A guide for using macros can be found at
-->
{{ MACROS___make_sidecar_table("eeg.EEGRecommended") }}

These fields MAY be present:

<!-- This block generates a metadata table.
These tables are defined in
src/schema/rules/sidecars
The definitions of the fields specified in these tables may be found in
src/schema/objects/metadata.yaml
A guide for using macros can be found at
https://github.com/bids-standard/bids-specification/blob/master/macros_doc.md
-->
{{ MACROS___make_sidecar_table("eeg.EEGOptional") }}

#### Hardware information

<!-- This block generates a metadata table.
Expand Down
12 changes: 12 additions & 0 deletions src/modality-specific-files/magnetoencephalography.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,18 @@ A guide for using macros can be found at
-->
{{ MACROS___make_sidecar_table("meg.MEGRecommended") }}

These fields MAY be present:

<!-- This block generates a metadata table.
These tables are defined in
src/schema/rules/sidecars
The definitions of the fields specified in these tables may be found in
src/schema/objects/metadata.yaml
A guide for using macros can be found at
https://github.com/bids-standard/bids-specification/blob/master/macros_doc.md
-->
{{ MACROS___make_sidecar_table("meg.MEGOptional") }}

#### Hardware information

<!-- This block generates a metadata table.
Expand Down
2 changes: 1 addition & 1 deletion src/schema/objects/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ ElectricalStimulationParameters:
display_name: Electrical Stimulation Parameters
description: |
Free form description of stimulation parameters, such as frequency or shape.
Specific onsets can be specified in the events.tsv file.
Specific onsets can be specified in the `events.tsv` file.
Specific shapes can be described here in freeform text.
type: string
ElectrodeManufacturer:
Expand Down
11 changes: 11 additions & 0 deletions src/schema/rules/sidecars/eeg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ EEGInstitutionInformation:
InstitutionAddress: recommended
InstitutionalDepartmentName: recommended

# Specific EEG fields MUST be present
EEGRequired:
selectors:
- datatype == "eeg"
Expand All @@ -57,6 +58,7 @@ EEGRequired:
PowerLineFrequency: required
SoftwareFilters: required

# Specific EEG fields SHOULD be present
EEGRecommended:
selectors:
- datatype == "eeg"
Expand All @@ -79,6 +81,15 @@ EEGRecommended:
HardwareFilters: recommended
SubjectArtefactDescription: recommended

# Specific EEG fields MAY be present
EEGOptional:
selectors:
- datatype == "eeg"
- suffix == "eeg"
fields:
ElectricalStimulation: optional
ElectricalStimulationParameters: optional

# General fields
EEGCoordsystemGeneral:
selectors:
Expand Down
9 changes: 9 additions & 0 deletions src/schema/rules/sidecars/meg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,15 @@ MEGRecommended:
AssociatedEmptyRoom: recommended
HardwareFilters: recommended

# Specific MEG fields MAY be present
MEGOptional:
selectors:
- datatype == "meg"
- suffix == "meg"
fields:
ElectricalStimulation: optional
ElectricalStimulationParameters: optional

# Specific EEG fields
# NOTE: I'm not sure if "EEG is present" is enough to indicate simultaneous EEG/MEG.
MEGwithEEG:
Expand Down

0 comments on commit ce1e2bc

Please sign in to comment.