-
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] add physio to schema or EEG, MEG, iEEG, PET, ASL, DWI #894
[SCHEMA] add physio to schema or EEG, MEG, iEEG, PET, ASL, DWI #894
Conversation
pinging our schema master @tsalo & BEP lead @mnoergaard @melanieganz @patsycle @HenkMutsaerts |
Nice, the only response I can think of, is why we don't declare this once in the code if this should be the same across all scantypes? Would that be more readable? |
I think we can definitely think of different ways the schema could be "refactored" (and I usually am not a big fan of duplications) but I am not sure we are there yet in terms . Though we could easily get there if we apply to this But whatever is decided should be done in a separate PR IMHO |
@HenkMutsaerts at the moment, the valid entities for physio files are not the same across datatypes. If we can figure out how to implement a "match" (see #620), then it would definitely be feasible to define them once. Unfortunately, we have no explicit link between associated files like physio acquired with imaging data and their "target" files within the schema, so we need to define all of the entities applicable to each datatype's physio files separately. |
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.
The only problem I see is that the new files are missing from the new datatypes' filename templates throughout the specification. I think the associated macro calls need to be updated to include the physio
and stim
suffixes.
EDIT: Also, if we do end up supporting anat physio, we'll be looking at a bunch of new groups- one for each of the existing anatomical MRI suffix groups for which concurrent physio would be possible.
EDIT 2: Although... physio files shouldn't include entities like echo
or part
, unless they come from different acquisitions, which can happen with qMRI file collections... this is a confusing one.
Ha indeed. Will update those as well.
I would suggest applying this to anat in another PR: because a) this will be trickier, b) this is rare use-case (or maybe I am missing something). |
The filename template creation is failing for MEG. The
This seems because @tsalo any reason this should NOT be the case ? |
@Remi-Gau It looks like It does seem strange that Also, should |
yes that was exactly my thought too.
Tempted to say that if we have For Pinging several of the people discussing these types simultaneous recording in issues #86 |
if |
You mean simultaneous for EEG and fMRI for example, right? For |
yes physio is assumed to be .. but does not have to .. |
Pros of matching the file name fully:
Cons:
Am I missing something? As a bids maintainer I tend to prefer full matching. But it is not a hill I would die on. |
I think it really comes down to whether we can consider the entity "within-acquisition" or "between-acquisition". Entities denoting data from the same recording, like Based on the following line from the Scans file section of the spec, I'd assume that
|
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.
Conceptually this PR LGTM, didn't dive too deep into the discussion on simultaneous recordings. Once the merge conflict is resolved, I think this PR is mergeable.
I am still unsure about what how to deal with this People having to split their acquired physio data in 2 to match the content of the MEG feels like an extra curation step and potential source of error. Also as mentioned by @tsalo the This is template for MEG that would come out of merging this PR as is.
|
Right - I agree with @tsalo opinion from #894 (comment)
He points out two issues:
re: 1) --> no idea re: 2) --> Just looked into this ... are we being inconsistent in the spec? 😬
|
or am I misunderstanding the above ☝️ This part from scans.tsv
I am confused now whether "a recording" is the combination of all splits ... OR each split file. |
@sappelhoff the recording is the combination of all splits, but you must log each file separately within the scans.tsv file. |
suggestion for this PR: we get all the non MEG related things in with version 1.7 and we have an open PR left to only deal with the MEG physio aspect of this. |
Coming back to this ...
generally I agree. BUT: is the only "MEG related thing" that is open the question of what to do with the If yes, the I think @tsalo's comment from #894 (comment) is valid (now that also my misunderstanding above was cleared up, thanks btw):
|
I think this is the only MEG specific issue. Happy to make |
Codecov Report
@@ Coverage Diff @@
## master bids-standard/bids-specification#894 +/- ##
=======================================
Coverage 36.16% 36.16%
=======================================
Files 8 8
Lines 788 788
=======================================
Hits 285 285
Misses 503 503 Continue to review full report at Codecov.
|
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.
LGTM!
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.
task not supported
Fixes bids-standard/bids-validator#1412
This updates the schema so that all modalities support the physio and stim suffixes.
This might need an update counterpart on the validator side.