getData {rhdf5client} | R Documentation |
Fetch data from a remote dataset
getData(dataset, indices, transfermode) ## S4 method for signature 'HSDSDataset,character,character' getData(dataset, indices, transfermode) ## S4 method for signature 'HSDSDataset,character,missing' getData(dataset, indices) ## S4 method for signature 'HSDSDataset,list,character' getData(dataset, indices, transfermode) ## S4 method for signature 'HSDSDataset,list,missing' getData(dataset, indices)
dataset |
An object of type HSDSDataset, the dataset to access. |
indices |
The indices of the data to fetch |
transfermode |
Either (default) 'JSON' or 'binary' |
This function is deprecated and will be defunct in the next release.
The servers require data to be fetched in slices, i.e., in sets of for which the indices of each dimension are of the form start:stop:step. More complex sets of indices will be split into slices and fetched in multiple requests. This is opaque to the user, but may enter into considerations of data access patterns, e.g., for performance-tuning.
an Array containing the data fetched from the server
s <- HSDSSource('http://hsdshdflab.hdfgroup.org') f <- HSDSFile(s, '/shared/bioconductor/tenx_full.h5') d <- HSDSDataset(f, '/newassay001') x <- getData(d, c('1:4', '1:27998'), transfermode='JSON') # x <- getData(d, c(1:4, 1:27998), transfermode='JSON') # method missing? x <- d[1:4,1:27998]