-
Notifications
You must be signed in to change notification settings - Fork 301
[ENH] Initial adoption of templateflow #1334
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
Conversation
fmriprep/cli/run.py
Outdated
help="""\ | ||
volume and surface spaces to resample functional series into | ||
- T1w: subject anatomical volume | ||
- MNI: spatial normalization using the target MNI template specified by --template |
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.
Could you talk about this decision to change template
to MNI
? Are we refusing to support templates in non-MNI space (except FreeSurfer)? How will this affect attempts to support developmental and/or non-human populations? If this is a move to be more in line with derivatives discussion of templates/spaces should we be changing the FreeSurfer options to --output-space FS
and use --template fsaverage{,5,6}
?
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.
Yes, I'm inclined to think that --output-space
and --template
will be merged in one argument (something like --output-reference
) that will take values like orig
, T1w
, MNI152{Lin,NlinAsym2009c}
, fsaverage{,5,6}
and probably custom
so then the template may be passed by path.
In the contrary to my views in the realm of BEP014 as regards space/coordinates/templates definitions, I believe that here we must be explicit about the reference (i.e. prefer just MNI<mni-id>
over the combination of --output-space MNI --template MNI<mni-id>
). However this seemed like a larger change that will also require arranging more templates in templateflow (and also the archive to keep it in sync since we are not yet accessing the templates through datalad).
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.
@effigies should we go for it in this PR? Do you even like the idea? WDYT?
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.
9d043bb
to
e4023a9
Compare
This is ready for review. When niworkflows 0.5.0 is released, I'll pin it and this can be merged. |
Concerns against merging this? |
Ah sorry. There are more comments on my earlier question than I realized. Part of the reason I haven't commented more (apart from that) is that I'm having trouble thinking clearly about the end goal of what we want space/template specification to be. I think if we're going to change the CLI, we should be fairly confident that we'll be sticking with those options for a while. So my questions are really:
Just as a reminder for any other participants, the reason we pulled |
@effigies could you give me more detail about point 1? Is the potential concern that
I personally find it more clear to have |
I don't think this would be against BEP 014. On the contrary, the metadata of the transform files will need to include a key indicating the image that was used as reference in registration. So, changing the name from
I agree this is mostly a renaming, however it makes conceptually easier the implementation of the various behaviors we want to see. Additionally, the PR will not remove the old command line arguments as they will go through a deprecation cycle that we can make as long as we consider necessary. I am a bit undecided about |
Okay. I'm not really trying to argue this out. I don't really understand how spaces and references and coordinate systems are supposed to work, but I'll assume you do. |
I honestly don't know how much I understand about it either. |
I also will defer to your judgement @oesteban -- both for this CLI and for its alignment with BEP014 ! I did want to add, though, the fact that this is confusing to other maintainers does raise a bit of a concern for me. Could we add any additional documentation here, outside of just the CLI rendering ? I'm thinking in particular that it could go in the processing pipeline details. |
@oesteban Are you okay with pushing this off until the next release? I'd like to get a release ASAP so we can start producing RC-conformant derivatives. |
Yep, let's cut a new release. |
Large chunks of this were incorporated into #1373. Please merge master before continuing. |
This PR has gone stale. Most of the functionality will be covered by the sMRIPrep merge, and the only open issue would be the new command line interface and how to handle output spaces. I'll submit a PR with a new proposal when sMRIPrep is merged. |
Changes proposed in this pull request
--template
and--output-spaces
in favor of the new--output-references
Documentation that should be reviewed