-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SCHEMA] Define YAML tables for MRI common metadata fields and anatomy data #1017
[SCHEMA] Define YAML tables for MRI common metadata fields and anatomy data #1017
Conversation
@@ -61,21 +63,21 @@ MRISequenceSpecifics: | |||
|
|||
PETMRISequenceSpecifics: | |||
selectors: | |||
- modality == "MRI" | |||
- "PET" in dataset.modalities |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having quotes around PET causes syntax error: expected <block end>, but found '<scalar>' (syntax)
RepetitionTimeExcitation: OPTIONAL | ||
RepetitionTimePreparation: OPTIONAL | ||
|
||
# Entities |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added these because they weren't covered in #1014, but I'm not sure if they should go in this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels like it should be its own file, but it does need to be highest priority.
Only issue I'm seeing is that these will correspond to data files, and not, say, an events.tsv.
src/schema/rules/sidecars.yml
Outdated
selectors: | ||
- modality == "MRI" | ||
# NOTE: This is my idea for "field is defined", but I don't know if it's the best approach. | ||
- sidecar.DelayTime != "n/a" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From today's call, we can create a keyword for "is defined".
src/schema/rules/sidecars.yml
Outdated
- modality == "MRI" | ||
- "PET" in dataset.modalities | ||
- modality == "MRI" | ||
- PET in dataset.modalities |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about the inverse?
- PET in dataset.modalities | |
- dataset.modalities contains "PET" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That works for me.
src/schema/rules/sidecars.yml
Outdated
SliceTimingSparse: | ||
selectors: | ||
- modality == "MRI" | ||
- sidecar.DelayTime isDefined |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a thought:
- sidecar.DelayTime isDefined | |
- sidecar contains "DelayTime" |
Or maybe
- sidecar.DelayTime isDefined | |
- defined(sidecar.DelayTime) |
References #1014 and #1002.
Changes proposed: