SOMASparseNDArray
is a sparse, N-dimensional array with offset
(zero-based) integer indexing on each dimension. The SOMASparseNDArray
has
a user-defined schema, which includes:
type - a
primitive
type, expressed as an Arrow type (e.g.,int64
,float32
, etc)shape - the shape of the array, i.e., number and length of each dimension
All dimensions must have a positive, non-zero length.
Note - on TileDB this is an sparse array with N
int64 dimensions of
domain [0, maxInt64), and a single attribute.
Super classes
tiledbsoma::TileDBObject
-> tiledbsoma::TileDBArray
-> tiledbsoma::SOMAArrayBase
-> tiledbsoma::SOMANDArrayBase
-> SOMASparseNDArray
Methods
Inherited methods
tiledbsoma::TileDBObject$class()
tiledbsoma::TileDBObject$exists()
tiledbsoma::TileDBObject$initialize()
tiledbsoma::TileDBObject$is_open()
tiledbsoma::TileDBObject$mode()
tiledbsoma::TileDBObject$reopen()
tiledbsoma::TileDBArray$attributes()
tiledbsoma::TileDBArray$attrnames()
tiledbsoma::TileDBArray$close()
tiledbsoma::TileDBArray$colnames()
tiledbsoma::TileDBArray$dimensions()
tiledbsoma::TileDBArray$dimnames()
tiledbsoma::TileDBArray$get_metadata()
tiledbsoma::TileDBArray$index_column_names()
tiledbsoma::TileDBArray$maxshape()
tiledbsoma::TileDBArray$ndim()
tiledbsoma::TileDBArray$non_empty_domain()
tiledbsoma::TileDBArray$open()
tiledbsoma::TileDBArray$print()
tiledbsoma::TileDBArray$schema()
tiledbsoma::TileDBArray$set_metadata()
tiledbsoma::TileDBArray$shape()
tiledbsoma::TileDBArray$tiledb_array()
tiledbsoma::TileDBArray$tiledb_schema()
tiledbsoma::TileDBArray$used_shape()
tiledbsoma::SOMANDArrayBase$create()
tiledbsoma::SOMANDArrayBase$resize()
tiledbsoma::SOMANDArrayBase$set_data_type()
tiledbsoma::SOMANDArrayBase$tiledbsoma_has_upgraded_shape()
tiledbsoma::SOMANDArrayBase$tiledbsoma_upgrade_shape()
Method read()
Reads a user-defined slice of the SOMASparseNDArray
Arguments
coords
Optional
list
of integer vectors, one for each dimension, with a length equal to the number of values to read. IfNULL
, all values are read. List elements can be named when specifying a subset of dimensions.result_order
Optional order of read results. This can be one of either
"ROW_MAJOR,
"COL_MAJOR", or
"auto"` (default).log_level
Optional logging level with default value of
"warn"
.iterated
Option boolean indicated whether data is read in call (when
FALSE
, the default value) or in several iterated steps.
Method write()
Write matrix-like data to the array. (lifecycle: maturing)
Arguments
values
Any
matrix
-like object coercible to aTsparseMatrix
. Character dimension names are ignored becauseSOMANDArray
's use integer indexing.bbox
A vector of integers describing the upper bounds of each dimension of
values
. Generally should beNULL
.
Method .write_coordinates()
Write a COO table to the array
Arguments
values
A
data.frame
orArrow::Table
with data in COO format; must be named with the dimension and attribute labels of the array