mtx_to_h5: Saves matrix to .h5 format quickly

Description Usage Arguments Value Examples

View source: R/mtx_to_h5.R

Description

Saves matrix to .h5 format quickly

Usage

1
mtx_to_h5(object, filename, datasetname = "counts", ...)

Arguments

object

input matrix (or maybe even data frame) - can be sparse or dense, but this is to sort the problem with dense matrices

filename

name of the h5 object to save to

datasetname

name of dataset

...

pass to rhdf5 associated functions

Value

Save large (dense) matrix to .h5 format

Examples

1
2
mtx_to_h5(matrixA, "matrix.h5")
mtx_to_h5totxt(matrixA, "matrix.h5")

zktuong/kelvinny documentation built on Oct. 22, 2020, 1:27 p.m.