tiledbarray package¶
Submodules¶
tiledbarray.TileDBArraySeed module¶
- class tiledbarray.TileDBArraySeed.TileDbArray(path, attribute_name)[source]¶
Bases:
DelayedArray
Sparse or Dense arrays from TileDB file as a
DelayedArray
.This subclass allows developers to implement custom methods for tiledb-backed sparse or dense matrices.
- __init__(path, attribute_name)[source]¶
To construct a
TileDbArray
from an existingTileDbArraySeed
, usewrap()
instead.- Parameters:
path (
Union
[str
,TileDbArraySeed
]) – Path to the TileDB file or aTileDbArraySeed
object.attribute_name (
Optional
[str
]) – Name of the attribute containing the array.
- class tiledbarray.TileDBArraySeed.TileDbArraySeed(path, attribute_name)[source]¶
Bases:
object
TileDB-backed dataset as a
DelayedArray
array seed.- __init__(path, attribute_name)[source]¶
- Parameters:
path (
str
) – Path or URI to the TileDB file.name – Attribute name inside the TileDB file that contains the array.
- tiledbarray.TileDBArraySeed.chunk_grid_TileDbArraySeed(x)[source]¶
See
chunk_grid()
.The cost factor is set to 20 to reflect the computational work involved in extracting data from disk.
- tiledbarray.TileDBArraySeed.extract_dense_array_TileDbArraySeed(x, subset)[source]¶
See
extract_dense_array()
.Subset parameter is passed to tiledb’s multi_index operation.
- Return type:
- tiledbarray.TileDBArraySeed.extract_sparse_array_TileDbArraySeed(x, subset)[source]¶
See
extract_sparse_array()
.Subset parameter is passed to tiledb’s multi_index operation.
- Return type:
SparseNdarray