-
Notifications
You must be signed in to change notification settings - Fork 298
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
ENH: Add a --skull-strip-t1w
argument to skip brain extraction
#2039
ENH: Add a --skull-strip-t1w
argument to skip brain extraction
#2039
Conversation
This comment has been minimized.
This comment has been minimized.
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
Why is the default not "auto"? |
I'd think Will try this out soon |
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.
Some alternative wordings, if we do switch to auto
as default (which I think we should).
@@ -439,6 +439,9 @@ class workflow(_Config): | |||
"""Fix a seed for skull-stripping.""" | |||
skull_strip_template = "OASIS30ANTs" | |||
"""Change default brain extraction template.""" | |||
skull_strip_t1w = "force" |
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.
skull_strip_t1w = "force" | |
skull_strip_t1w = "auto" |
@@ -209,6 +209,11 @@ def _bids_filter(value): | |||
g_ants.add_argument('--skull-strip-fixed-seed', action='store_true', | |||
help='do not use a random seed for skull-stripping - will ensure ' | |||
'run-to-run replicability when used with --omp-nthreads 1') | |||
g_ants.add_argument( | |||
'--skull-strip-t1w', action='store', choices=('auto', 'skip', 'force'), default='force', |
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.
'--skull-strip-t1w', action='store', choices=('auto', 'skip', 'force'), default='force', | |
'--skull-strip-t1w', action='store', choices=('auto', 'skip', 'force'), default='auto', |
Co-Authored-By: Chris Markiewicz <effigies@gmail.com>
I'd rather keep the Finally, this feature should be superseded by evolutions of nipreps/smriprep#107 (and #2036) where one can feed fMRIPrep with subsets of precalculated anatomical derivatives. Is that convincing? |
I don't see the point of having auto at all, then. The idea was to have something that didn't require using a CLI flag most of the time. |
Removing Without a benchmark that says the heuristic works with very high sensitivity and specificity, I feel resistant to making it the default. |
For instance @nicholst et al., are processing ds001 and have found fMRIPrep gives them very bad results for sub-04. Looking at the reports, they discovered that the T1w is skull-stripped. I think having an implicit option would have been potentially dangerous to their type of analysis because it would have been really easy to miss that fMRIPrep actually ran different workflows for that subject w.r.t. the others (and this is assuming Setting the default to |
Setting |
Works for me. FWIW I just tested in on |
Thanks for the fast check and your patience, @adelavega. This took a lot longer than we would've liked (for the most part, because of me) - many thanks. |
Supersedes #1829.
@adelavega can you check locally this works for you?