-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1830 from effigies/schema/mrs_header
[SCHEMA] MRS schema updates
- Loading branch information
Showing
6 changed files
with
108 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
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" | ||
- type(nifti_header.mrs) != "null" | ||
checks: | ||
- sidecar.ResonantNucleus == nifti_header.mrs.ResonantNucleus | ||
- sidecar.SpectrometerFrequency == nifti_header.mrs.SpectrometerFrequency | ||
|
||
MRSMatrixSize: | ||
issue: | ||
code: MRS_MATRIX_SIZE | ||
message: | | ||
MatrixSize metadata must match NIfTI header field `dim[1:4]`. | ||
level: error | ||
selectors: | ||
- datatype == "mrs" | ||
- type(nifti_header) != "null" | ||
- type(sidecar.MatrixSize) != "null" | ||
checks: | ||
- sidecar.MatrixSize[0] == nifti_header.dim[1] | ||
- sidecar.MatrixSize[1] == nifti_header.dim[2] | ||
- sidecar.MatrixSize[2] == nifti_header.dim[3] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters