ENH: Find graymid/midthickness surfs #1972
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Surfaces halfway between the pial surface and white/gray boundary are often called either "graymid" or "midthickness" surfaces, and it's reasonably common for people to create them. A lot of FreeSurfer tools like them to be in the
surf
folder, so this adds the ability to pull them intoFreeSurferSource
by either name.In turn, this allows a workflow to make a decision to create such surfaces based on whether they already exist, which will become especially useful once we get conditional nodes.
It requires a slight refactoring of
altkey
/_get_files
to accept multiple keys, sincealtkey='*mid*'
catches?h.area.mid
.