From f6cd503c488875c1c34d40896b66957c7584f7ab Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Tue, 21 May 2024 17:51:20 -0400 Subject: [PATCH] SCHEMA: Add check for consistency between MRS header and sidecar --- src/schema/rules/checks/mrs.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/schema/rules/checks/mrs.yaml diff --git a/src/schema/rules/checks/mrs.yaml b/src/schema/rules/checks/mrs.yaml new file mode 100644 index 0000000000..a38a3007c6 --- /dev/null +++ b/src/schema/rules/checks/mrs.yaml @@ -0,0 +1,14 @@ +--- +MRSNiftiConsistency: + issue: + code: MRS_NIFTI_CONSISTENCY + message: | + ResonantNucleus and/or SpectrometerFrequency fields are inconsistent + between the NIfTI-MRS header extension and the BIDS sidecar. + level: error + selectors: + - datatype == "mrs" + - nifti_header.mrs + checks: + - sidecar.ResonantNucleus == nifti_header.mrs.ResonantNucleus + - sidecar.SpectrometerFrequency == nifti_header.mrs.SpectrometerFrequency