Skip to contents

Intermediate type to choose result format when reading a sparse array

Super class

tiledbsoma::SOMASparseNDArrayReadBase -> SOMASparseNDArrayRead

Methods

Inherited methods


Method sparse_matrix()

Read as a sparse matrix (lifecycle: experimental). Returns an iterator of Matrix::dgTMatrix-class or matrixZeroBasedView of it.

Usage

SOMASparseNDArrayRead$sparse_matrix(zero_based = FALSE)

Arguments

zero_based

Logical, if TRUE returns iterator of matrixZeroBasedView if FALSE returns iterator of Matrix::dgTMatrix-class.

Returns

SparseReadIter


Method tables()

Read as a arrow::Table (lifecycle: experimental). Returns an iterator of arrow::Table.

Usage

SOMASparseNDArrayRead$tables()

Returns

TableReadIter


Method blockwise()

Read in a blockwise fashion

Usage

SOMASparseNDArrayRead$blockwise(
  axis,
  ...,
  size = NULL,
  reindex_disable_on_axis = NULL
)

Arguments

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; currently not yet implemented

Returns

A SOMASparseNDArrayBlockwiseRead iterated reader