fetch_preset_parcel_approach#
- neurocaps.utils.fetch_preset_parcel_approach(name, n_nodes=None)[source]#
Fetches a Preset “Custom” Parcellation Approach.
Creates a directory in the user home directory named “neurocaps_data” and downloads the
parcel_approach(a JSON file) and the associated NifTI image from the Open Science Framework (OSF) if the corresponding files are not present in the directory.- Parameters:
name (
str) – Name of the preset “Custom” parcellation approach to fetch. Options are “HCPex”, “4S”, and “Gordon”.n_nodes (
intorNone, default=None) –Currently only relevant to “4S”. Options for the “4S” are: 156, 256, 356, 456, 556, 656, 757, 956, 1056. Defaults to 456 if None.
Note
The 856 node version of “4S” is currently unavailable.
- Returns:
dict[Literal[“Custom”], CustomParcelApproach] – A dictionary representing the “Custom” parcellation approach.
Note
Region Mapping: The mapping of regions/networks corresponds to the indices in the “nodes” list not its label ID. So, the first non-background index will be 0.
See also
CustomParcelApproachThe type definition for the Custom parcellation approach. (See CustomParcelApproach Documentation)
ParcelApproachType definition representing the structure of the Schaefer, AAL, and Custom parcellation approaches. (See ParcelApproach Documentation)