dot-h5read: Read data from an HDF5 file "with caution"

Description Usage

Description

This is a simple wrapper to rhdf5::h5read() which returns a default value if the "data element" (specified by name) does not exists within file. We use this file to read from ARCHS4 hdf5 files when we want to provide a little insurance to the evoling nature of their data formats.

For instance this function is used when we try to read somethign like "meta/reads_aligned" because this information was not provided in earlier versions of these datasets, however "meta/genes" may use rhdf5::h5read() directly because this has been around since "the beginning"

Usage

1
2
3
4
.h5read(file, name, index = NULL, start = NULL, stride = NULL,
  block = NULL, count = NULL, compoundAsDataFrame = TRUE,
  callGeneric = TRUE, read.attributes = FALSE, drop = FALSE, ...,
  native = FALSE, default_value = NA, default_dim = 1L)

denalitherapeutics/archs4 documentation built on May 17, 2019, 1:29 p.m.