Skip to content

Commit

Permalink
Some further changes
Browse files Browse the repository at this point in the history
- Reordered recommended MRS-relevant fields
- Some rearranging of src/schema/rules/sidecars/mrs.yaml
  • Loading branch information
markmikkelsen committed May 8, 2024
1 parent 533194e commit 30aab9a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,11 @@ A guide for using macros can be found at
https://github.com/bids-standard/bids-specification/blob/master/macros_doc.md
-->
{{ MACROS___make_sidecar_table([
"mrs.MRSRecommendedFields",
"mrs.MRSRecommendedFieldsNumTransients",
"mrs.MRSRecommendedFieldsAnatomicalImage",
"mrs.MRSIRecommendedFields"
"mrs.MRSRecommendedFields",
"mrs.MRSIRecommendedFields",
"mrs.MRSRecommendedFieldsRefSignal",
"mrs.MRSRecommendedFieldsAnatomicalImage"
])
}}

Expand Down
21 changes: 16 additions & 5 deletions src/schema/rules/sidecars/mrs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ MRSSequenceSpecifics:
ScanningSequence__mrs: recommended
SequenceName: recommended
PulseSequenceDetails: recommended
MRAcquisitionType: optional, but recommended for MRSI
WaterSuppression: recommended
WaterSuppressionTechnique: optional
OuterVolumeSuppression: optional
Expand Down Expand Up @@ -74,14 +73,15 @@ MRSRecommendedFields:
MatrixSize: recommended for MRSI
VolumeAffineMatrix: recommended for MRSI
EncodingTechnique: recommended for MRSI
ReferenceSignal: recommended if MRS reference data are present

MRSRecommendedFieldsAnatomicalImage:
selectors:
- modality == "mrs"
- '"anat" in dataset.datatypes'
- intersects(dataset.datatypes, ["anat"])
fields:
AnatomicalImage: recommended
AnatomicalImage:
level: recommended
level_addendum: if anatomical MRI data are present

MRSRecommendedFieldsNumTransients:
selectors:
Expand All @@ -90,12 +90,23 @@ MRSRecommendedFieldsNumTransients:
fields:
NumberOfTransients: recommended

MRSRecommendedFieldsRefSignal:
selectors:
- modality == "mrs"
- intersects([suffix], ["mrsref"])
fields:
ReferenceSignal:
level: recommended
level_addendum: if MRS reference data are present

MRSIRecommendedFields:
selectors:
- modality == "mrs"
- suffix == "mrsi"
fields:
MRAcquisitionType: recommended
MRAcquisitionType:
level: recommended
level_addendum: for MRSI

MRSOptionalFields:
selectors:
Expand Down

0 comments on commit 30aab9a

Please sign in to comment.