Skip to contents

This function creates a temporary HDF5 file with a minimal but valid structure for an H5ParcellatedMultiScan, including a master mask, master cluster definitions, one H5ParcellatedScan, and one H5ParcellatedScanSummary.

Usage

create_minimal_h5_for_H5ParcellatedMultiScan(
  file_path = NULL,
  master_mask_dims = c(5L, 5L, 4L),
  num_master_clusters = 3L,
  n_time_run1 = 10L,
  n_time_run2 = 12L
)

Arguments

file_path

Optional: path to HDF5 file. If NULL, a temp file is created.

master_mask_dims

3D dimensions for the master mask, e.g., c(5L, 5L, 4L).

num_master_clusters

Integer, number of clusters in the master cluster map.

n_time_run1

Integer, n_time for the first (full) run.

n_time_run2

Integer, n_time for the second (summary) run.

Value

Path to the created HDF5 file.