hread: Query and store an HDF5 dataset on row and column indices.

Description Usage Arguments Value See Also Examples

View source: R/accessors.R

Description

Connect to an HDF5 database h5 file with rhdf5::h5read(). Returns the subsetted data.

Usage

1
hread(ri, ci, dsn = "redsignal", dbn = "remethdb2.h5")

Arguments

ri

Row indices in dataset.

ci

Column indices in dataset.

dsn

Name of dataset or group of dataset to connect with.

dbn

Path to h5 database file.

Value

HDF5 database connection object.

See Also

h5read()

Examples

1
2
3
4
5
6
7
# Get tests data pointer
path <- system.file("extdata", "h5test", package = "recountmethylation")
fn <- list.files(path)
dbpath <- file.path(path, fn)
# red signal, first 2 assay addr, 3 samples
reds <- hread(1:2, 1:3, d = "redsignal", dbn = dbpath)
dim(reds) # [1] 2 3

recountmethylation documentation built on Nov. 8, 2020, 4:59 p.m.