Write Single Parcellated Scan to HDF5
Source:R/write_parcellated_scan_h5.R
write_parcellated_scan_h5.RdWrites a single parcellated/clustered scan to an HDF5 file. Unlike
write_parcellated_experiment_h5 which creates a multi-scan container,
this function creates a file optimized for a single scan.
Arguments
- filepath
Path to the output HDF5 file
- mask
A
LogicalNeuroVolobject defining the brain mask- clusters
A
ClusteredNeuroVolobject defining the parcellation- scan_data
Either a named list (for full data) or matrix (for summary data): - For full data: list with cluster names as keys, each containing a voxels x time matrix - For summary data: time x clusters matrix
- scan_name
Name for the scan (default: "scan_001")
- data_type
Type of data: "full" for voxel-level, "summary" for cluster means
- scan_metadata
Optional list of metadata for the scan
- cluster_metadata
Optional data.frame with cluster information
- compress
Logical, whether to compress the data (default: TRUE)
- verbose
Logical, whether to print progress messages (default: FALSE)