rmldj / hcp-utils

Utilities to use HCP and HCP-like data with nilearn and other Python tools
MIT License
41 stars 7 forks source link

add yan 2023 parcellation with kong 17 networks and multiple resolutions. #9

Open GasserElbanna opened 1 year ago

GasserElbanna commented 1 year ago

In this PR, I integrated the yan 2023 homotopic parcellation proposed here with multiple resolutions (from 100 to 1000 parcels) matched with Kong 17 networks.

_prepare_yankong17.py follows similar setup as prepare_mmp.py

To give the user the flexibility to select the resolution desired, I added an argument in the _load_hcpparcellation . However, in this PR, as a consequence, the user needs to load the parcellation using the function instead of the preloaded setup.

yan_kong17 = load_hcp_parcellation('yan_kong17', resolution=1000)
hcp.view_parcellation(hcp.mesh.inflated, yan_kong17)

HTML examples for the loaded parcellations for all resolutions are provided in the _parcellationexamples directory.