Create a minimal HDF5 file suitable for H5ClusterExperiment examples
Source:R/zzz_example_helpers.R
create_minimal_h5_for_H5ClusterExperiment.Rd
This function creates a temporary HDF5 file with a minimal but valid structure for an H5ClusterExperiment, including a master mask, master cluster definitions, one H5ClusterRun, and one H5ClusterRunSummary.
Usage
create_minimal_h5_for_H5ClusterExperiment(
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.