Blockwise Sparse ND-Array Reader
Source:R/SOMASparseNDArrayRead.R
SOMASparseNDArrayBlockwiseRead.RdBlockwise reader for SOMASparseNDArray
Super class
tiledbsoma::SOMASparseNDArrayReadBase -> SOMASparseNDArrayBlockwiseRead
Methods
Method new()
Create
Usage
SOMASparseNDArrayBlockwiseRead$new(
sr,
array,
coords,
axis,
...,
size,
reindex_disable_on_axis = NA
)Arguments
srSOMA read pointer
arrayUnderlying
SOMASparseNDArraycoordsOptional named list of
integer64values; must be named afterarray$dimnames()axisAxis to iterate over in a blockwise manner
...Ignored
sizeThe size of each blockwise chunk to generate
reindex_disable_on_axisAdditional axes that will not be re-indexed; the following values may be used as shorthands for common settings:
“
TRUE”: disable re-indexing on all axes“
NA”: re-index only onaxis, disable re-indexing on all others“
FALSE”: re-index on all axes, do not disable re-indexing
Method tables()
Read as an Arrow::Table
Returns
A blockwise iterator yielding chunks as
Arrow::Tables
Method sparse_matrix()
Read as a sparse matrix
Arguments
reprRepresentation of the sparse matrix to return; choose from:
“
T”: returns aTsparseMatrix“
R”: returns anRsparseMatrix“
C”: returns aCsparseMatrix
Note: passing
reprof “R” or “C” are only available if re-indexing is enabled on axes0or1, respectively