Wraps wb_command -cifti-parcellate to create parcellated data from
a dense CIFTI file using a label parcellation.
Usage
cifti_parcellate(
cifti_in,
cifti_label,
direction = c("COLUMN", "ROW"),
cifti_out,
spatial_weights = NULL,
method = NULL,
only_numeric = FALSE,
verbose = get_wb_verbosity()
)Arguments
- cifti_in
Path to the input CIFTI file.
- cifti_label
Path to the parcellation label file (
.dlabel.nii).- direction
Direction to parcellate along. One of
"COLUMN"or"ROW".- cifti_out
Path for the output parcellated CIFTI file.
- spatial_weights
Optional spatial weights specification. A list with one element: either
left_area_surfandright_area_surfpaths, orcifti_weightspath.- method
Parcellation method. One of
"MEAN"(default),"MAX","MIN","INDEXMAX","INDEXMIN","MEDIAN","MODE","COUNT_NONZERO","SUM","STDEV","SAMPSTDEV","PERCENTILE".- only_numeric
Logical; exclude non-numeric values?
- verbose
Logical; print command output?
Value
The result of the underlying wb_cmd() call.