[ENH] Add plot_parcellated_data function#175
Open
VinceBaz wants to merge 3 commits intonetneurolab:mainfrom
Open
[ENH] Add plot_parcellated_data function#175VinceBaz wants to merge 3 commits intonetneurolab:mainfrom
plot_parcellated_data function#175VinceBaz wants to merge 3 commits intonetneurolab:mainfrom
Conversation
This commit adds the `pv_plot_parcellated_data` function. It take as input a parcellated brain map and a parcellation, then plots the parcellated data on the surface of the cortex. To allow the `data` parameters to be either a single array (with left then right hemisphere data) or a tuple/list (left data, right data), I modified `parcels_to_vertices` as well. This is inspired from `pv_plot_surface` which allows `vertex_data` to be either a tuple of two arrays or a single concatenated array.
This commit adds a `_resolve_parcellation` function that automatically fetches the paths to specified parcellations. This simplifies the plotting of parcellated data. This commit also modified functions in the interfacet module to allow the input of pre-loaded images. For example in: `load_surf_parc_file` and `extract_gifti_labels`
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.
This commit adds the
pv_plot_parcellated_datafunction. It take as input a parcellated brain map and a parcellation, then plots the parcellated data on the surface of the cortex.To allow the
dataparameters to be either a single array (with left then right hemisphere data) or a tuple/list (left data, right data), I modifiedparcels_to_verticesas well. This is inspired frompv_plot_surfacewhich allowsvertex_datato be either a tuple of two arrays or a single concatenated array.