getData-methods: Fetch data from a remote dataset

Description Usage Arguments Value Examples

Description

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.

Usage

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

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]

sampoll/rhdf5client2 documentation built on May 24, 2019, 2:47 p.m.