Repository navigation
Conversation
plot_group_gradients_brain_atlas.py paints a gradient CSV on any surface using an atlas annotation (.annot or GIFTI labels) supplied by the caller, so the render is no longer limited to Desikan-Killiany on fsaverage5. Region names are matched after normalising case and hemisphere tokens, with a name-map override, a per-hemisphere matching report, and explicit errors when nothing matches or the annotation and surface meshes differ. Checked against ENIGMA's parcel_to_surface on DK-68 (identical values on all 20484 vertices) and on Schaefer-200 with synthetic coordinate-based values. nibabel and VTK are imported lazily so the matching logic is unit tested in CI; the file readers are tested in a separate module that skips when nibabel is absent.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
plot_group_gradients_brain_atlas.py paints a gradient CSV on any surface using an atlas annotation (.annot or GIFTI labels) supplied by the caller, so the render is no longer limited to Desikan-Killiany on fsaverage5. Region names are matched after normalising case and hemisphere tokens, with a name-map override, a per-hemisphere matching report, and explicit errors when nothing matches or the annotation and surface meshes differ.
Checked against ENIGMA's parcel_to_surface on DK-68 (identical values on all 20484 vertices) and on Schaefer-200 with synthetic coordinate-based values. nibabel and VTK are imported lazily so the matching logic is unit tested in CI; the file readers are tested in a separate module that skips when nibabel is absent.