getData {rhdf5client} | R Documentation

## extract elements of a one or two-dimensional HSDSDataset

### Description

Fetch data from a remote dataset

### Usage

    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

    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]

[Package rhdf5client version 1.8.0 Index]