suppressPackageStartupMessages({ suppressMessages({ library(rhdf5client2) library(DelayedArray) }) })
A remote dataset is accessed by giving the URL of the server, the
type of the server (either hsds
or h5serv
), the file domain (path
to the HDF5 file) and the full path to the dataset inside the HDF5 file.
da <- HSDSArray('http://h5s.channingremotedata.org:5000', 'h5serv', 'tenx_full.h5s.channingremotedata.org', '/newassay001') da
Here we have defined the R image of the data to be the transpose of the image in HDF5. So neurons are columns.
apply(da[,1:4],2,sum)
da <- HSDSArray('http://hsdshdflab.hdfgroup.org', 'hsds', '/shared/bioconductor/tenx_full.h5', '/newassay001') da
Again we have DelayedArray capabilities.
apply(da[,1:4],2,sum)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.