Constructs a FileBackedNeuroVec
instance, which represents a file-backed
neuroimaging vector object. This constructor provides memory-efficient access to large
neuroimaging datasets by keeping the data on disk until needed.
Usage
FileBackedNeuroVec(file_name, label = basename(file_name))
Value
A new instance of class FileBackedNeuroVec
.
Details
Create a FileBackedNeuroVec Object
The function performs the following operations:
Reads the header information from the specified file
Validates the dimensionality (must be 4D data)
Creates a
NeuroSpace
object with appropriate metadataInitializes the file-backed vector with minimal memory footprint
See also
NeuroSpace
for spatial metadata management,
read_header
for header information extraction,
sub_vector
for data access methods
Examples
if (FALSE) { # \dontrun{
# Create a file-backed vector from a NIFTI file
fbvec <- FileBackedNeuroVec("path/to/fmri_data.nii")
# Access specific volumes without loading entire dataset
first_vol <- sub_vector(fbvec, 1)
} # }