I implemented some functions based on block processing, referring to the write_block
documentation.
https://rdrr.io/bioc/DelayedArray/man/write_block.html
However, since there is a limit to the capacity of /tmp
directory, there is a risk of running out of disk space when handling large data.
Therefore, I would like to know if there is a way to optionally set the directory globally in advance and not let /tmp
be used.
It seems that the writeHDF5Array
can be specified with the filepath option, but is there any way to specify the filepath in the DelayedArray
's functions such as setAutoRealizationBackend("HDF5Array")
and AutoRealizationSink
?
For example, I thought I could use the path
function to change the directory, but I couldn't.
library("DelayedArray")
library("HDF5Array")
B3 <- array(runif(2*3*4), dim=c(2,3,4))
B3 <- as(B3, "HDF5Array")
path(B3) <- "temp.h5" # Error
I imagined the change of
tempdir
will change the temporal directory insideDelayedArray
so I installedunixtools
package and used theset.tempdir
function but it didn't work.