choose_chunk_size: Select a reasonable chunk size for an HDF5 dataset object

Description Usage Arguments Value

View source: R/write_rna_h5.R

Description

If x has length > 1e6, chunks will be 1e5. If x has length > 1e2, chunks will be one log10 smaller than the length of x. If x has length <= 1e2, chunk size is the length of x.

Usage

1

Arguments

x

A vector to store in an HDF5 file

Value

a numeric value containing a suggested chunk size


AllenInstitute/BarMixer documentation built on Dec. 17, 2021, 8:42 a.m.