HDF5ArraySeed: Save HDF5-based seeds

saveDelayedObject,HDF5ArraySeed-methodR Documentation

Save HDF5-based seeds

Description

Save HDF5ArraySeed or H5SparseMatrix objects or their subclasses. See “External HDF5 arrays” at https://ltla.github.io/chihaya for more details.

Usage

## S4 method for signature 'HDF5ArraySeed'
saveDelayedObject(x, file, name)

## S4 method for signature 'H5SparseMatrixSeed'
saveDelayedObject(x, file, name)

Arguments

x

A HDF5ArraySeed or H5SparseMatrix object or subclass thereof.

file

String containing the path to a HDF5 file.

name

String containing the name of the group to save into.

Value

A NULL, invisibly. A group is created at name containing the contents of the HDF5-based seed.

Author(s)

Aaron Lun

Examples

library(HDF5Array)
X <- writeHDF5Array(matrix(runif(100), ncol=20))
Y <- X + 1
temp <- tempfile(fileext=".h5")
saveDelayed(Y, temp)
rhdf5::h5ls(temp)
loadDelayed(temp)


LTLA/DelayedArraySaver documentation built on Oct. 11, 2023, 1:33 p.m.