Description Constructing a TileDBArray Available operations Author(s) Examples
The TileDBArray class provides a DelayedArray backend for TileDB arrays (sparse and dense).
TileDBArray(x, attr)
returns a TileDBArray object given:
x
, a URI path to a TileDB backend, most typically a directory.
attr
, a string specifying the attribute to represent in the array.
Defaults to the first attribute.
Alternatively, x
can be a TileDBArraySeed object, in which case attr
is ignored.
TileDBArraySeed(x, attr)
returns a TileDBArraySeed
with the same arguments as described for TileDBArray
.
If x
is already a TileDBArraySeed, it is returned
directly without further modification.
DelayedArray(x)
returns a TileDBArray object
given x
, a TileDBArraySeed.
In all cases, two-dimensional arrays will automatically generate a TileDBMatrix, a subclass of the TileDBArray.
extract_array(x, index)
will return an ordinary
array corresponding to the TileDBArraySeed x
subsetted
to the indices in index
.
The latter should be a list of length equal to the number of
dimensions in x
.
type(x)
will return a string containing the type of the TileDBArraySeed object x
.
Currently, only "integer"
, "logical"
and "double"
-precision is supported.
is_sparse(x)
will return a logical scalar indicating
whether the TileDBArraySeed x
uses a sparse format in the TileDB backend.
All of the operations described above are also equally applicable to TileDBArray objects, as their methods simply delegate to those of the TileDBArraySeed.
All operations supported by DelayedArray objects are also available for TileDBArray objects.
Aaron Lun
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.