High-level wrapper that reads data and parcellation from file paths or vectors, then aggregates vertices into parcels.
Arguments
- data
Numeric vector or file path to a GIFTI/NIfTI brain map.
- parcellation
Integer vector of labels or file path to a GIFTI label file.
- summary_func
Function to summarise each parcel (default: mean).