Skip to content

[ENH] Add plot_parcellated_data function#175

Open
VinceBaz wants to merge 3 commits intonetneurolab:mainfrom
VinceBaz:plot_parcellated
Open

[ENH] Add plot_parcellated_data function#175
VinceBaz wants to merge 3 commits intonetneurolab:mainfrom
VinceBaz:plot_parcellated

Conversation

@VinceBaz
Copy link
Member

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 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`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant