From a3e3d25c02ded298d1c009e133e882486176256b Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Tue, 2 May 2023 07:52:43 -0400 Subject: [PATCH] ENH: Define a channel column for events --- src/schema/objects/columns.yaml | 8 ++++++++ src/schema/rules/tabular_data/task.yaml | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/src/schema/objects/columns.yaml b/src/schema/objects/columns.yaml index 89d28a5f09..77d997e071 100644 --- a/src/schema/objects/columns.yaml +++ b/src/schema/objects/columns.yaml @@ -48,6 +48,14 @@ cardiac: description: | continuous pulse measurement type: number +channel: + name: channel + display_name: Channel + description: | + Channel(s) associated with an event. + If multiple channels are specified, separate with commas (`,`) or a + delimiter specified in the `"Delimiter"` field describing the `channel` + column. color: name: color display_name: Color label diff --git a/src/schema/rules/tabular_data/task.yaml b/src/schema/rules/tabular_data/task.yaml index 1b07b24936..0ca01afe25 100644 --- a/src/schema/rules/tabular_data/task.yaml +++ b/src/schema/rules/tabular_data/task.yaml @@ -10,6 +10,11 @@ TaskEvents: response_time: optional HED: optional stim_file: optional + channel: + level: optional + description_addendum: | + Note that this column only applies to data types where + channels are specified, such as EEG, iEEG, MEG or NIRS. additional_columns: allowed initial_columns: - onset