From 2facc67adc06ce327a46073e5339cbc50f663ec0 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Fri, 14 Jul 2023 09:05:36 -0400 Subject: [PATCH] [SCHEMA] electrodes.tsv is RECOMMENDED if EEGChannelCount > 0 --- src/schema/rules/checks/meg.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/schema/rules/checks/meg.yaml diff --git a/src/schema/rules/checks/meg.yaml b/src/schema/rules/checks/meg.yaml new file mode 100644 index 0000000000..561d66505c --- /dev/null +++ b/src/schema/rules/checks/meg.yaml @@ -0,0 +1,14 @@ +# Rules for MEG data that cannot be defined in tables +--- +MEGElectrodesRecommended: + issue: + code: MEG_EEG_ELECTRODES_RECOMMENDED + message: | + A nonzero EEGChannelCount for MEG datasets indicates the presence of EEG + channels. A corresponding `electrodes.tsv` file should be be added. + level: warning + selectors: + - suffix == "meg" + - sidecar.EEGChannelCount > 0 + checks: + - type(associations.electrodes) != 'null'