getData-methods: extract elements of a one or two-dimensional HSDSDataset

Description Usage Arguments Details Value Examples

Description

Fetch data from a remote dataset

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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)

Arguments

dataset

An object of type HSDSDataset, the dataset to access.

indices

The indices of the data to fetch

transfermode

Either (default) 'JSON' or 'binary'

Details

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.

Value

an Array containing the data fetched from the server

Examples

1
2
3
4
5
6
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]

rhdf5client documentation built on Nov. 8, 2020, 5:55 p.m.