Blockwise Sparse ND-Array Reader
Source:R/SOMASparseNDArrayRead.R
SOMASparseNDArrayBlockwiseRead.Rd
Blockwise 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
sr
SOMA read pointer
array
Underlying
SOMASparseNDArray
coords
Optional named list of
integer64
values; must be named afterarray$dimnames()
axis
Axis to iterate over in a blockwise manner
...
Ignored
size
The size of each blockwise chunk to generate
reindex_disable_on_axis
Additional 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 sparse_matrix()
Read as a sparse matrix
Arguments
repr
Representation of the sparse matrix to return; choose from:
“
T
”: returns aTsparseMatrix
“
R
”: returns anRsparseMatrix
“
C
”: returns aCsparseMatrix
Note: passing
repr
of “R
” or “C
” are only available if re-indexing is enabled on axes0
or1
, respectively