Skip to content

Commit

Permalink
ENH: add ElectricalStimulation and *Parameters to MEEG
Browse files Browse the repository at this point in the history
  • Loading branch information
sappelhoff committed Oct 24, 2023
1 parent 8d9c8df commit f7fbbd3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
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 f7fbbd3

Please sign in to comment.