-
Notifications
You must be signed in to change notification settings - Fork 52
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
MAINT: Select magnitude images in collect_data for BIDS 1.5.0 #594
Conversation
@tsalo can you merge/rebase master? The CI failure may have already been fixed. |
Done! |
BTW would it be reasonable to select T1w and T1map instead of just T1w? Same for T2w. |
Because we haven't tested fMRIPrep on I'm currently imagining a new section to the docs with "Advanced and experimental use cases" where we explain how to do things that are possible but not (yet) supported. Open to other ideas. |
RE the current failure, I think we need to update https://github.com/nipreps/niworkflows/blob/master/niworkflows/data/nipreps.json to include |
That makes sense. Thanks for the clarification.
That sounds awesome!
Done. I also added the rest of the new entities. LMK if that's a problem. |
I think this may require a new pybids release. I could pin to a commit in the setup.cfg though? |
Ah, you're right. We're using a vanilla BIDSLayout, not passing our own. I think it's fine to leave the new entities in our JSON. @tyarkoni Any objections to a PyBIDS release with entities that precede the BIDS spec release that makes them official? They're already merged into |
None objection! |
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.
We will need to also update the default_path_patterns
in nipreps.json
if we want to generate derivatives of these data types.
@oesteban that's a good point. I know where |
I know I'd use |
I've updated the default path patterns to include part. I don't think the other ones are necessary just yet, and I'm reticent to try incorporating all of qMRI in this PR. |
9aeaa92
to
523de7f
Compare
This will depend on bids-standard/pybids#826. |
8d4f157
to
81c1378
Compare
Closes #591.
In BIDS 1.5.0, the
part
entity will be released.part
can have a value ofmag
,phase
,real
, orimag
, of which onlymag
is used for most preprocessing pipelines. Whenpart
is not provided, the data are assumed to be magnitude.Changes proposed:
part
==mag
orNone
to filters incollect_data()
for T1w, T2w, FLAIR, and BOLD data.part
,inv
,flip
, andmt
) to config file.