library(rhdf5)
library(HDF5Array)
exMatrix <- matrix(rnorm(10e4), ncol = 20)
rownames(exMatrix) <- paste0("GENE", seq_len(nrow(exMatrix)))
colnames(exMatrix) <- paste0("SampleID", seq_len(ncol(exMatrix)))
format(object.size(exMatrix), unit = "Mb")
head(exMatrix)
h5save(exMatrix,
file =
"inst/extdata/exMatrix.h5")
H5close()
fpath <- "inst/extdata/"
DelayedArray(HDF5Dataset(file = file.path(fpath, "exMatrix.h5"),
name = "exMatrix"))
# file.remove(file.path(fpath, "exMatrix.h5"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.